diff options
author | Fire_Head <Fire-Head@users.noreply.github.com> | 2020-05-27 20:51:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-27 20:51:40 +0200 |
commit | e4649b41e1acf07d7cdcae867acdc7b3eb25c82b (patch) | |
tree | 9914753482fb7cd3d0eb0efad6a058e54850db0f /src/control/Pickups.cpp | |
parent | VC Water (diff) | |
parent | librw update (diff) | |
download | re3-e4649b41e1acf07d7cdcae867acdc7b3eb25c82b.tar re3-e4649b41e1acf07d7cdcae867acdc7b3eb25c82b.tar.gz re3-e4649b41e1acf07d7cdcae867acdc7b3eb25c82b.tar.bz2 re3-e4649b41e1acf07d7cdcae867acdc7b3eb25c82b.tar.lz re3-e4649b41e1acf07d7cdcae867acdc7b3eb25c82b.tar.xz re3-e4649b41e1acf07d7cdcae867acdc7b3eb25c82b.tar.zst re3-e4649b41e1acf07d7cdcae867acdc7b3eb25c82b.zip |
Diffstat (limited to 'src/control/Pickups.cpp')
-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(); |