diff options
author | lukaslw | 2014-07-26 20:07:12 +0200 |
---|---|---|
committer | lukaslw | 2014-07-26 20:07:12 +0200 |
commit | 58ce087e8010bf656ff4321f24d1fe80f93c6e41 (patch) | |
tree | e22e88ceb3fe81a6aaf9cfc77e504f179c0948fa /engines | |
parent | 9ea766ce2bc5c1ed7c2382021d2e2635a236d7f4 (diff) | |
download | scummvm-rg350-58ce087e8010bf656ff4321f24d1fe80f93c6e41.tar.gz scummvm-rg350-58ce087e8010bf656ff4321f24d1fe80f93c6e41.tar.bz2 scummvm-rg350-58ce087e8010bf656ff4321f24d1fe80f93c6e41.zip |
PRINCE: showTexts() update - inventory texts
Diffstat (limited to 'engines')
-rw-r--r-- | engines/prince/prince.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp index dee52f7634..ab774c1abe 100644 --- a/engines/prince/prince.cpp +++ b/engines/prince/prince.cpp @@ -1145,6 +1145,12 @@ uint32 PrinceEngine::getTextWidth(const char *s) { void PrinceEngine::showTexts(Graphics::Surface *screen) { for (uint32 slot = 0; slot < kMaxTexts; slot++) { + + if (_showInventoryFlag && slot) { + // only slot 0 for inventory + break; + } + Text& text = _textSlots[slot]; if (!text._str && !text._time) { continue; |