mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-18 07:39:08 +00:00
HOPKINS: Endian fix for playing Breakout game
This commit is contained in:
parent
3a48420c90
commit
d10f81372b
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user