diff options
author | erorcun <erayorcunus@gmail.com> | 2020-10-04 21:18:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-04 21:18:33 +0200 |
commit | ea4007a13c844007b5b5ad06b6e01941cbd66e10 (patch) | |
tree | 32195602f9ba72f90ff2dbe4a2a1447f339012e1 /src/render | |
parent | small fix (diff) | |
parent | Merge branch 'master' into master (diff) | |
download | re3-ea4007a13c844007b5b5ad06b6e01941cbd66e10.tar re3-ea4007a13c844007b5b5ad06b6e01941cbd66e10.tar.gz re3-ea4007a13c844007b5b5ad06b6e01941cbd66e10.tar.bz2 re3-ea4007a13c844007b5b5ad06b6e01941cbd66e10.tar.lz re3-ea4007a13c844007b5b5ad06b6e01941cbd66e10.tar.xz re3-ea4007a13c844007b5b5ad06b6e01941cbd66e10.tar.zst re3-ea4007a13c844007b5b5ad06b6e01941cbd66e10.zip |
Diffstat (limited to '')
-rw-r--r-- | src/render/Hud.cpp | 8 |
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; } } |