diff options
author | Travis Howell | 2006-10-13 07:23:34 +0000 |
---|---|---|
committer | Travis Howell | 2006-10-13 07:23:34 +0000 |
commit | 1564b76e1e79e86010b1828d58dcb7626ecbc145 (patch) | |
tree | 35dee28820aa19d64fadccc35be1b0d41e35c296 /engines/agos | |
parent | 02fb079d0b511d06c8689e0712d7f3779657075b (diff) | |
download | scummvm-rg350-1564b76e1e79e86010b1828d58dcb7626ecbc145.tar.gz scummvm-rg350-1564b76e1e79e86010b1828d58dcb7626ecbc145.tar.bz2 scummvm-rg350-1564b76e1e79e86010b1828d58dcb7626ecbc145.zip |
Fix position of descriptions in WW
svn-id: r24289
Diffstat (limited to 'engines/agos')
-rw-r--r-- | engines/agos/verb.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/agos/verb.cpp b/engines/agos/verb.cpp index ec94790791..b21cfcbdbf 100644 --- a/engines/agos/verb.cpp +++ b/engines/agos/verb.cpp @@ -274,14 +274,15 @@ void AGOSEngine::printVerbOf(uint hitarea_id) { void AGOSEngine::showActionString(const byte *string) { WindowBlock *window; uint x; + const uint len = (getGameType() == GType_WW) ? 29 : 53; window = _windowArray[1]; if (window == NULL || window->text_color == 0) return; // Arisme : hack for long strings in the French version - if ((strlen((const char*)string) - 1) <= 53) - x = (53 - (strlen((const char *)string) - 1)) * 3; + if ((strlen((const char*)string) - 1) <= len) + x = (len - (strlen((const char *)string) - 1)) * 3; else x = 0; |