summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-01 12:53:20 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-01 12:53:20 +0100
commit9fd93e8e5792781b1bce0eb5d75aa6eff00d9f69 (patch)
tree49f4d64c4ee48b03e9ac032fca6b97259d181935 /src/render
parentMerge branch 'miami' of github.com:GTAmodding/re3 into miami (diff)
parentactual struct name (diff)
downloadre3-9fd93e8e5792781b1bce0eb5d75aa6eff00d9f69.tar
re3-9fd93e8e5792781b1bce0eb5d75aa6eff00d9f69.tar.gz
re3-9fd93e8e5792781b1bce0eb5d75aa6eff00d9f69.tar.bz2
re3-9fd93e8e5792781b1bce0eb5d75aa6eff00d9f69.tar.lz
re3-9fd93e8e5792781b1bce0eb5d75aa6eff00d9f69.tar.xz
re3-9fd93e8e5792781b1bce0eb5d75aa6eff00d9f69.tar.zst
re3-9fd93e8e5792781b1bce0eb5d75aa6eff00d9f69.zip
Diffstat (limited to 'src/render')
-rw-r--r--src/render/Credits.cpp6
-rw-r--r--src/render/SpecialFX.cpp11
2 files changed, 14 insertions, 3 deletions
diff --git a/src/render/Credits.cpp b/src/render/Credits.cpp
index f45c0aee..6c811b7f 100644
--- a/src/render/Credits.cpp
+++ b/src/render/Credits.cpp
@@ -803,8 +803,14 @@ CCredits::Render(void)
if(TheCamera.m_WideScreenOn)
TheCamera.DrawBordersForWideScreen();
+#ifdef FIX_BUGS
if(lineoffset + DEFAULT_SCREEN_HEIGHT - scrolloffset < -10.0f)
+#else
+ if(lineoffset + SCREEN_HEIGHT - scrolloffset < -10.0f)
+#endif
+ {
bCreditsGoing = false;
+ }
}
bool CCredits::AreCreditsDone(void)
diff --git a/src/render/SpecialFX.cpp b/src/render/SpecialFX.cpp
index e17caa97..d1f7e4a0 100644
--- a/src/render/SpecialFX.cpp
+++ b/src/render/SpecialFX.cpp
@@ -1347,13 +1347,18 @@ CMoneyMessage::Render()
RwV3d vecOut;
float fDistX, fDistY;
if (CSprite::CalcScreenCoors(m_vecPosition + CVector(0.0f, 0.0f, fLifeTime), &vecOut, &fDistX, &fDistY, true)) {
- fDistX *= (0.7 * fLifeTime + 2.0) * m_fSize;
- fDistY *= (0.7 * fLifeTime + 2.0) * m_fSize;
+ fDistX *= (0.7f * fLifeTime + 2.0f) * m_fSize;
+ fDistY *= (0.7f * fLifeTime + 2.0f) * m_fSize;
CFont::SetPropOn();
CFont::SetBackgroundOff();
float fScaleY = Min(fDistY / 100.0f, MAX_SCALE);
float fScaleX = Min(fDistX / 100.0f, MAX_SCALE);
- CFont::SetScale(fScaleX, fScaleY); // maybe use SCREEN_SCALE_X and SCREEN_SCALE_Y here?
+
+#ifdef FIX_BUGS
+ CFont::SetScale(SCREEN_SCALE_X(fScaleX), SCREEN_SCALE_Y(fScaleY));
+#else
+ CFont::SetScale(fScaleX, fScaleY);
+#endif
CFont::SetCentreOn();
CFont::SetCentreSize(SCREEN_WIDTH);
CFont::SetJustifyOff();