aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2013-03-12 23:03:18 -0400
committerPaul Gilbert2013-03-12 23:03:18 -0400
commitd10f81372bafe4af7ed94162570e1c55be3ae4e1 (patch)
treef4bddf92275d1269b96d6c29c000fa182e9899d8 /engines
parent3a48420c90605eecbd820c61468bbc508f7d50e2 (diff)
downloadscummvm-rg350-d10f81372bafe4af7ed94162570e1c55be3ae4e1.tar.gz
scummvm-rg350-d10f81372bafe4af7ed94162570e1c55be3ae4e1.tar.bz2
scummvm-rg350-d10f81372bafe4af7ed94162570e1c55be3ae4e1.zip
HOPKINS: Endian fix for playing Breakout game
Diffstat (limited to 'engines')
-rw-r--r--engines/hopkins/computer.cpp8
1 files changed, 3 insertions, 5 deletions
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();