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/parole2.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/parole2.cpp')
-rw-r--r-- | engines/mortevielle/parole2.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/mortevielle/parole2.cpp b/engines/mortevielle/parole2.cpp index be8c17bf3b..cba5588ffc 100644 --- a/engines/mortevielle/parole2.cpp +++ b/engines/mortevielle/parole2.cpp @@ -25,6 +25,7 @@ * Copyright (c) 1988-1989 Lankhor */ +#include "common/endian.h" #include "mortevielle/level15.h" #include "mortevielle/parole2.h" #include "mortevielle/parole.h" @@ -62,7 +63,7 @@ void trait_ph() { ptr_tcph = (uint)ledeb >> 1; ptr_word = 0; do { - memw[adword + ptr_word] = t_cph[ptr_tcph]; + WRITE_LE_UINT16(&mem[adword + ptr_word], t_cph[ptr_tcph]); ptr_word = ptr_word + 2; ptr_tcph = ptr_tcph + 1; } while (!(ptr_tcph >= (int)((uint)lefin >> 1))); |