From 037e545dc1589504fc21f3fe5e5fc3c09feaa2ca Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sat, 9 Jun 2007 07:48:27 +0000 Subject: [PATCH] Fix gltich when listing saved games in Hebrew versions. svn-id: r27229 --- engines/agos/saveload.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/engines/agos/saveload.cpp b/engines/agos/saveload.cpp index c90ffc223c4..1b68fefa7ab 100644 --- a/engines/agos/saveload.cpp +++ b/engines/agos/saveload.cpp @@ -542,20 +542,23 @@ void AGOSEngine_Simon1::listSaveGames(char *dst) { lastSlot = slot; if (slot < 10) { showMessageFormat(" "); + } else if (_language == Common::HB_ISR) { + lastSlot = (slot % 10) * 10; + lastSlot += slot / 10; } + showMessageFormat("%d", lastSlot); if (_language == Common::HB_ISR && !(slot % 10)) showMessageFormat("0"); - showMessageFormat("%d", lastSlot); showMessageFormat(".%s\n", dst); dst += 18; slot++; } if (!_saveOrLoad) { - if (_saveLoadRowCurPos + 6 == slot) + if (_saveLoadRowCurPos + 6 == slot) { slot++; - else { + } else { if (slot < 10) showMessageFormat(" "); showMessageFormat("%d.\n", slot);