summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-09-30 19:02:47 +0200
committereray orçunus <erayorcunus@gmail.com>2020-09-30 19:03:01 +0200
commit595421da3908a2d3e7a1b063605bb3f2a3adb65b (patch)
tree1fe2f8eb9da450d5f8efdb27f1b9cbd8d541e01c /src/render
parentFix more (diff)
downloadre3-595421da3908a2d3e7a1b063605bb3f2a3adb65b.tar
re3-595421da3908a2d3e7a1b063605bb3f2a3adb65b.tar.gz
re3-595421da3908a2d3e7a1b063605bb3f2a3adb65b.tar.bz2
re3-595421da3908a2d3e7a1b063605bb3f2a3adb65b.tar.lz
re3-595421da3908a2d3e7a1b063605bb3f2a3adb65b.tar.xz
re3-595421da3908a2d3e7a1b063605bb3f2a3adb65b.tar.zst
re3-595421da3908a2d3e7a1b063605bb3f2a3adb65b.zip
Diffstat (limited to 'src/render')
-rw-r--r--src/render/Hud.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/render/Hud.cpp b/src/render/Hud.cpp
index 5c0dd86e..63bf0b06 100644
--- a/src/render/Hud.cpp
+++ b/src/render/Hud.cpp
@@ -997,7 +997,7 @@ void CHud::Draw()
}
else {
BigMessageAlpha[0] = 0.0f;
- BigMessageX[0] = SCALE_AND_CENTER_X(-60.0f);
+ BigMessageX[0] = SCREEN_SCALE_FROM_RIGHT(DEFAULT_SCREEN_WIDTH + 60.0f);
BigMessageInUse[0] = 1.0f;
}
}
@@ -1008,7 +1008,7 @@ void CHud::Draw()
// WastedBustedText
if (m_BigMessage[2][0]) {
if (BigMessageInUse[2] != 0.0f) {
- BigMessageAlpha[2] += (CTimer::GetTimeStepInSeconds() * 255.0f);
+ BigMessageAlpha[2] += (CTimer::GetTimeStepInMilliseconds() * 0.4f);
if (BigMessageAlpha[2] > 255.0f)
BigMessageAlpha[2] = 255.0f;
@@ -1261,7 +1261,7 @@ void CHud::DrawAfterFade()
}
break;
case 2:
- OddJob2Timer += (20.0f * CTimer::GetTimeStep());
+ OddJob2Timer += CTimer::GetTimeStepInMilliseconds();
if (OddJob2Timer > 1500) {
OddJob2On = 3;
}
@@ -1355,7 +1355,7 @@ void CHud::DrawAfterFade()
}
else {
BigMessageAlpha[1] = 0.0f;
- BigMessageX[1] = SCALE_AND_CENTER_X(-60.0f);
+ BigMessageX[1] = SCREEN_SCALE_FROM_RIGHT(DEFAULT_SCREEN_WIDTH + 60.0f);
BigMessageInUse[1] = 1.0f;
}
}