aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2010-01-07 23:32:45 +0000
committerMartin Kiewitz2010-01-07 23:32:45 +0000
commit2aca490e131bad1a2b199d3077f5c2f8ab8c58a8 (patch)
treef5a3c23b98fa9b46cab06a8018dab28c09ae5399 /engines
parent8a1583da9b2b6f545da2ab3f52fbffd7187b5505 (diff)
downloadscummvm-rg350-2aca490e131bad1a2b199d3077f5c2f8ab8c58a8.tar.gz
scummvm-rg350-2aca490e131bad1a2b199d3077f5c2f8ab8c58a8.tar.bz2
scummvm-rg350-2aca490e131bad1a2b199d3077f5c2f8ab8c58a8.zip
SCI: remove displaying tag in menu of some games (e.g. qfg1ega)
svn-id: r47143
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/menu.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/graphics/menu.cpp b/engines/sci/graphics/menu.cpp
index 219e5018f5..20252db133 100644
--- a/engines/sci/graphics/menu.cpp
+++ b/engines/sci/graphics/menu.cpp
@@ -187,10 +187,10 @@ void Menu::add(Common::String title, Common::String content, reg_t contentVmPtr)
if (rightAlignedPos) {
rightAlignedPos++;
tempPos = endPos;
- // Shouldnt be needed at all, cause right aligned occurs after tag (hopefully)
- // If no game is found that causes problems, remove this line (29.11.2009)
- //if (tagPos && tagPos >= rightAlignedPos)
- // tempPos = tagPos;
+ // some games have tagPos in front of right rightAlignedPos
+ // some have it the other way... (qfg1ega)
+ if (tagPos && tagPos >= rightAlignedPos)
+ tempPos = tagPos;
itemEntry->textRightAligned = Common::String(content.c_str() + rightAlignedPos, tempPos - rightAlignedPos);
}