summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-27 18:39:04 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-27 18:39:04 +0200
commitd4ae40ae99ff189e0caa6f5db2285f6bed51e80a (patch)
treede5d6c77ea1f129cc8d82fe93615fadf449008eb /src/control
parentRwCameraGetCurrentCamera (diff)
downloadre3-d4ae40ae99ff189e0caa6f5db2285f6bed51e80a.tar
re3-d4ae40ae99ff189e0caa6f5db2285f6bed51e80a.tar.gz
re3-d4ae40ae99ff189e0caa6f5db2285f6bed51e80a.tar.bz2
re3-d4ae40ae99ff189e0caa6f5db2285f6bed51e80a.tar.lz
re3-d4ae40ae99ff189e0caa6f5db2285f6bed51e80a.tar.xz
re3-d4ae40ae99ff189e0caa6f5db2285f6bed51e80a.tar.zst
re3-d4ae40ae99ff189e0caa6f5db2285f6bed51e80a.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Pickups.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/control/Pickups.cpp b/src/control/Pickups.cpp
index 1d2d06f7..3ac1bb4a 100644
--- a/src/control/Pickups.cpp
+++ b/src/control/Pickups.cpp
@@ -840,6 +840,7 @@ CPickups::RenderPickUpText()
if (aMessages[i].m_weaponType == WEAPONTYPE_TOTALWEAPONS) { // unreachable code?
// what is this??
sprintf(gString, "%d/%d", CWorld::Players[CWorld::PlayerInFocus].m_nCollectedPackages, 2903);
+ strToPrint = nil;
} else {
if (aMessages[i].m_bOutOfStock)
strToPrint = TheText.Get("STOCK");
@@ -971,6 +972,8 @@ CPickups::RenderPickUpText()
break;
}
}
+ if (strToPrint == nil)
+ continue;
CFont::SetPropOn();
CFont::SetBackgroundOff();