From d10f81372bafe4af7ed94162570e1c55be3ae4e1 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 12 Mar 2013 23:03:18 -0400 Subject: HOPKINS: Endian fix for playing Breakout game --- engines/hopkins/computer.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'engines/hopkins') diff --git a/engines/hopkins/computer.cpp b/engines/hopkins/computer.cpp index 2a882a9a53..7b881211d6 100644 --- a/engines/hopkins/computer.cpp +++ b/engines/hopkins/computer.cpp @@ -669,11 +669,11 @@ void ComputerManager::displayBricks() { int cellTop; int cellType; for (int levelIdx = 0; ; levelIdx += 6) { - cellLeft = level[levelIdx]; + cellLeft = (int16)FROM_LE_16(level[levelIdx]); if (cellLeft == -1) break; - cellTop = level[levelIdx + 1]; - cellType = level[levelIdx + 4]; + cellTop = FROM_LE_16(level[levelIdx + 1]); + cellType = FROM_LE_16(level[levelIdx + 4]); if (cellType <= 6) ++_breakoutBrickNbr; @@ -701,8 +701,6 @@ void ComputerManager::displayBricks() { _vm->_graphicsManager.AFFICHE_SPEEDVGA(_breakoutSpr, cellLeft, cellTop, 23); break; } - - levelIdx += 6; } displayScore(); -- cgit v1.2.3