diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-27 18:39:04 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-27 18:39:04 +0200 |
commit | d4ae40ae99ff189e0caa6f5db2285f6bed51e80a (patch) | |
tree | de5d6c77ea1f129cc8d82fe93615fadf449008eb /src/control/Pickups.cpp | |
parent | RwCameraGetCurrentCamera (diff) | |
download | re3-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 '')
-rw-r--r-- | src/control/Pickups.cpp | 3 |
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(); |