X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame_sp%2FMurphy.c;h=bcd61200f89d6973bab19df1fdf29d10ea7d16fa;hp=bfe6854a6264ffac33e667d0b9f2da128b2b6e5a;hb=148d0ad7e7ac1a97eb50de7ecbb642f36c877311;hpb=026c569fc47fbe95d8cb131442a4e04610f27f05 diff --git a/src/game_sp/Murphy.c b/src/game_sp/Murphy.c index bfe6854a..bcd61200 100644 --- a/src/game_sp/Murphy.c +++ b/src/game_sp/Murphy.c @@ -2333,8 +2333,14 @@ int subSpPortTest(int si) for (i = 0; i < cx; i++) { +#if 1 + /* this assumes that PortLocation is stored as big endian */ + bx = LInfo.SpecialPort[i].PortLocation; +#else + /* this assumes that PortLocation is stored as little endian */ bx = HighByte(LInfo.SpecialPort[i].PortLocation); MovHighByte(&bx, LowByte(LInfo.SpecialPort[i].PortLocation)); +#endif if (bx / 2 == si) {