From ec36d39f250de646a90ab4f8cb7f4350b04e4f0c Mon Sep 17 00:00:00 2001 From: Sylvain Dupont Date: Fri, 4 Feb 2011 19:02:40 +0000 Subject: TOON: Fix Amiga compile svn-id: r55773 --- engines/toon/toon.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'engines/toon') diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp index 298ecd0ad2..eb4120123d 100644 --- a/engines/toon/toon.cpp +++ b/engines/toon/toon.cpp @@ -210,7 +210,7 @@ void ToonEngine::parseInput() { } if (event.kbd.flags & Common::KBD_ALT) { - int32 slotNum = event.kbd.ascii - '0'; + int slotNum = event.kbd.ascii - '0'; if (slotNum >= 0 && slotNum <= 9 && canSaveGameStateCurrently()) { if (saveGame(slotNum, Common::String())) { // ok @@ -229,7 +229,7 @@ void ToonEngine::parseInput() { } if (event.kbd.flags & Common::KBD_CTRL) { - int32 slotNum = event.kbd.ascii - '0'; + int slotNum = event.kbd.ascii - '0'; if (slotNum >= 0 && slotNum <= 9 && canLoadGameStateCurrently()) { if (loadGame(slotNum)) { // ok @@ -369,7 +369,7 @@ void ToonEngine::update(int32 timeIncrement) { void ToonEngine::updateTimer(int32 timeIncrement) { if (_gameState->_gameTimer > 0) { - debugC(0, 0xfff, "updateTimer(%d)", timeIncrement); + debugC(0, 0xfff, "updateTimer(%d)", (int)timeIncrement); _gameState->_gameTimer -= timeIncrement; if (_gameState->_gameTimer < 0) _gameState->_gameTimer = 0; @@ -1819,8 +1819,8 @@ int32 ToonEngine::getScaleAtPoint(int32 x, int32 y) { return 1024; // clamp values - x = MIN(1279, MAX(0, x)); - y = MIN(399, MAX(0, y)); + x = MIN(1279, MAX(0, x)); + y = MIN(399, MAX(0, y)); int32 maskData = _currentMask->getData(x, y) & 0x1f; return _roomScaleData[maskData+2] * 1024 / 100; @@ -1831,8 +1831,8 @@ int32 ToonEngine::getLayerAtPoint(int32 x, int32 y) { return 0; // clamp values - x = MIN(1279, MAX(0, x)); - y = MIN(399, MAX(0, y)); + x = MIN(1279, MAX(0, x)); + y = MIN(399, MAX(0, y)); int32 maskData = _currentMask->getData(x, y) & 0x1f; return _roomScaleData[maskData+130] << 5; @@ -2088,7 +2088,7 @@ int32 ToonEngine::characterTalk(int32 dialogid, bool blocking) { character->stopSpecialAnim(); } - debugC(0, 0xfff, "Talker = %d (num participants : %d) will say '%s'", talkerId , numParticipants, myLine); + debugC(0, 0xfff, "Talker = %d (num participants : %d) will say '%s'", (int)talkerId , (int)numParticipants, myLine); getTextPosition(talkerId, &_currentTextLineX, &_currentTextLineY); @@ -2974,7 +2974,7 @@ bool ToonEngine::saveGame(int32 slot, Common::String saveGameDesc) { if (!saveGameDesc.empty()) { savegameDescription = saveGameDesc; } else { - savegameDescription = Common::String::format("Quick save #%d", slot); + savegameDescription = Common::String::format("Quick save #%d", (int)slot); } } -- cgit v1.2.3