summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-06-30 22:49:32 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-06-30 22:49:32 +0200
commit3a763cc6e703eef5761b964cd495d41585897c9c (patch)
treeeef126f29722cd2a533da1f77627ebb8766c61f0
parentAdded camera funcs to Replay (diff)
downloadre3-3a763cc6e703eef5761b964cd495d41585897c9c.tar
re3-3a763cc6e703eef5761b964cd495d41585897c9c.tar.gz
re3-3a763cc6e703eef5761b964cd495d41585897c9c.tar.bz2
re3-3a763cc6e703eef5761b964cd495d41585897c9c.tar.lz
re3-3a763cc6e703eef5761b964cd495d41585897c9c.tar.xz
re3-3a763cc6e703eef5761b964cd495d41585897c9c.tar.zst
re3-3a763cc6e703eef5761b964cd495d41585897c9c.zip
Diffstat (limited to '')
-rw-r--r--src/control/Replay.cpp21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/control/Replay.cpp b/src/control/Replay.cpp
index 8d59f3ce..ce2a9bd4 100644
--- a/src/control/Replay.cpp
+++ b/src/control/Replay.cpp
@@ -1533,15 +1533,20 @@ WRAPPER void CReplay::Display(void) { EAXJMP(0x595EE0); }
#else
void CReplay::Display()
{
- if (CReplay::IsPlayingBack() && CTimer::GetFrameCounter() + 1 & 0x20) {
- CFont::SetPropOn();
- CFont::SetBackgroundOff();
- CFont::SetScale(SCREEN_SCALE_X(1.5f), SCREEN_SCALE_Y(1.5f));
- CFont::SetAlignment(ALIGN_LEFT);
- CFont::SetColor(CRGBA(255, 255, 200, 200));
- CFont::SetFontStyle(FONT_BANK);
+ static int counter = 0;
+ if (Mode == MODE_RECORD)
+ return;
+ counter = (counter + 1) % 65536;
+ if (counter & 0x20 == 0)
+ return;
+ CFont::SetPropOn();
+ CFont::SetBackgroundOff();
+ CFont::SetScale(SCREEN_SCALE_X(1.5f), SCREEN_SCALE_Y(1.5f));
+ CFont::SetAlignment(ALIGN_LEFT);
+ CFont::SetColor(CRGBA(255, 255, 200, 200));
+ CFont::SetFontStyle(FONT_BANK);
+ if (Mode == MODE_PLAYBACK)
CFont::PrintString(SCREEN_SCALE_X(63.5f), SCREEN_SCALE_Y(30.0f), TheText.Get("REPLAY"));
- }
}
#endif