diff options
author | Paul Gilbert | 2012-01-08 11:21:11 +1100 |
---|---|---|
committer | Strangerke | 2012-04-06 08:19:30 +0200 |
commit | c72eed79806b0dca804b7cea6ae2ae73d6069ccd (patch) | |
tree | 711567349c03116cef44c2a8c18cf9c696f0cc9c /engines/mortevielle/taffich.cpp | |
parent | c45e7c5d94fc5bee5b638029470aedd4b8f7eaf3 (diff) | |
download | scummvm-rg350-c72eed79806b0dca804b7cea6ae2ae73d6069ccd.tar.gz scummvm-rg350-c72eed79806b0dca804b7cea6ae2ae73d6069ccd.tar.bz2 scummvm-rg350-c72eed79806b0dca804b7cea6ae2ae73d6069ccd.zip |
MORTEVIELLE: Converted memw[] usage to use mem[] array with endian macros
This is better for now, since mem and memw share the same memory space.
Diffstat (limited to 'engines/mortevielle/taffich.cpp')
-rw-r--r-- | engines/mortevielle/taffich.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mortevielle/taffich.cpp b/engines/mortevielle/taffich.cpp index 449e003394..1cb0f76325 100644 --- a/engines/mortevielle/taffich.cpp +++ b/engines/mortevielle/taffich.cpp @@ -182,7 +182,7 @@ void taffich() { chardes(nom, lgt, handle); if (gd == her) { for (i = 0; i <= 15; i ++) { - palh = memw[0x7000 + (succ(int, i) << 1)]; + palh = READ_LE_UINT16(&mem[0x7000 + (succ(int, i) << 1)]); alllum[i] = (palh & 15) + (((uint)palh >> 12) & 15) + (((uint)palh >> 8) & 15); } for (i = 0; i <= 15; i ++) { @@ -221,7 +221,7 @@ void taffich() { /* begin for i:=0 to 15 do begin - PalH:=memw[$7000:succ(i) shl 1]; + PalH:=WRITE_LE_UINT16(&mem[$7000:succ(i) shl 1]; Alllum[i]:=PalH and 15 + PalH shr 4 and 15 + PalH shr 8 and 15; end; for i:=0 to 15 do |