summaryrefslogtreecommitdiffstats
path: root/src/render/Hud.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-07-07 18:00:02 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-07-07 18:00:02 +0200
commitee0494b2d86aef799177cc0b80383a29ceee441b (patch)
tree83f8f1f29cafd639000461559f249a7b42d032cd /src/render/Hud.cpp
parentthe great reorganization (diff)
downloadre3-ee0494b2d86aef799177cc0b80383a29ceee441b.tar
re3-ee0494b2d86aef799177cc0b80383a29ceee441b.tar.gz
re3-ee0494b2d86aef799177cc0b80383a29ceee441b.tar.bz2
re3-ee0494b2d86aef799177cc0b80383a29ceee441b.tar.lz
re3-ee0494b2d86aef799177cc0b80383a29ceee441b.tar.xz
re3-ee0494b2d86aef799177cc0b80383a29ceee441b.tar.zst
re3-ee0494b2d86aef799177cc0b80383a29ceee441b.zip
Diffstat (limited to '')
-rw-r--r--src/render/Hud.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/render/Hud.cpp b/src/render/Hud.cpp
index 680720e0..754f4b85 100644
--- a/src/render/Hud.cpp
+++ b/src/render/Hud.cpp
@@ -814,8 +814,8 @@ void CHud::Draw()
if (!CTimer::GetIsUserPaused()) {
CTextLine* IntroText = CTheScripts::IntroTextLines;
- for (int i = 0; i < 2; i++) {
- if (CTheScripts::IntroTextLines[i].m_awText[0] && CTheScripts::IntroTextLines[i].field_29) {
+ for (int i = 0; i < MAX_NUM_INTRO_TEXT_LINES; i++) {
+ if (CTheScripts::IntroTextLines[i].m_Text[0] && CTheScripts::IntroTextLines[i].m_bTextBeforeFade) {
CFont::SetScale(SCREEN_SCALE_X(CTheScripts::IntroTextLines[i].m_fScaleX), SCREEN_SCALE_Y(CTheScripts::IntroTextLines[i].m_fScaleY * 0.5f));
CFont::SetColor(CTheScripts::IntroTextLines[i].m_sColor);
@@ -855,7 +855,7 @@ void CHud::Draw()
CFont::SetPropOff();
CFont::SetFontStyle(CTheScripts::IntroTextLines[i].m_nFont);
- CFont::PrintString(SCREEN_SCALE_X(640.0f - CTheScripts::IntroTextLines[i].field_36), SCREEN_SCALE_Y(448.0f - CTheScripts::IntroTextLines[i].field_40), IntroText->m_awText);
+ CFont::PrintString(SCREEN_SCALE_X(640.0f - CTheScripts::IntroTextLines[i].m_fAtX), SCREEN_SCALE_Y(448.0f - CTheScripts::IntroTextLines[i].m_fAtY), IntroText->m_Text);
}
}
@@ -863,14 +863,14 @@ void CHud::Draw()
for (int i = 0; i < 16; i++) {
if (CTheScripts::IntroRectangles[i].m_bIsUsed && CTheScripts::IntroRectangles[i].m_bIsAntialiased) {
- if (CTheScripts::IntroRectangles[i].m_wTextureId >= 0) {
+ if (CTheScripts::IntroRectangles[i].m_nTextureId >= 0) {
CRect rect = {
CTheScripts::IntroRectangles[i].m_sRect.left,
CTheScripts::IntroRectangles[i].m_sRect.bottom,
CTheScripts::IntroRectangles[i].m_sRect.right,
CTheScripts::IntroRectangles[i].m_sRect.bottom };
- CTheScripts::ScriptSprites[CTheScripts::IntroRectangles[i].m_wTextureId].Draw(rect, IntroRect->m_sColor);
+ CTheScripts::ScriptSprites[CTheScripts::IntroRectangles[i].m_nTextureId].Draw(rect, IntroRect->m_sColor);
}
else {
CRect rect = {