From 1564b76e1e79e86010b1828d58dcb7626ecbc145 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Fri, 13 Oct 2006 07:23:34 +0000 Subject: Fix position of descriptions in WW svn-id: r24289 --- engines/agos/verb.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/agos/verb.cpp') 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; -- cgit v1.2.3