diff options
author | Strangerke | 2013-02-18 01:37:21 +0100 |
---|---|---|
committer | Strangerke | 2013-02-18 01:37:21 +0100 |
commit | 7428af9a4c612b59cee7f55d867a00464b3dae64 (patch) | |
tree | bc72860f5075ff5c5bb755cea9b2b1584db51a5a /engines/hopkins/globals.cpp | |
parent | ccf07b8956aa6865f4b8c0ff52cbb89d50e0421f (diff) | |
download | scummvm-rg350-7428af9a4c612b59cee7f55d867a00464b3dae64.tar.gz scummvm-rg350-7428af9a4c612b59cee7f55d867a00464b3dae64.tar.bz2 scummvm-rg350-7428af9a4c612b59cee7f55d867a00464b3dae64.zip |
HOPKINS: Replace casted READ_LE_UINT16 by the equivalent macro to improve readability
Diffstat (limited to 'engines/hopkins/globals.cpp')
-rw-r--r-- | engines/hopkins/globals.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/hopkins/globals.cpp b/engines/hopkins/globals.cpp index ac903ddd00..633f222092 100644 --- a/engines/hopkins/globals.cpp +++ b/engines/hopkins/globals.cpp @@ -412,10 +412,10 @@ void Globals::loadCache(const Common::String &file) { CACHE_BANQUE[1] = spriteData; int curBufIdx = 60; for (int i = 0; i <= 21; i++) { - Cache[i]._spriteIndex = (int16)READ_LE_UINT16((uint16 *)ptr + curBufIdx); - Cache[i]._x = (int16)READ_LE_UINT16((uint16 *)ptr + curBufIdx + 1); - Cache[i]._y = (int16)READ_LE_UINT16((uint16 *)ptr + curBufIdx + 2); - Cache[i].field14 = (int16)READ_LE_UINT16((uint16 *)ptr + curBufIdx + 4); + Cache[i]._spriteIndex = READ_LE_INT16((uint16 *)ptr + curBufIdx); + Cache[i]._x = READ_LE_INT16((uint16 *)ptr + curBufIdx + 1); + Cache[i]._y = READ_LE_INT16((uint16 *)ptr + curBufIdx + 2); + Cache[i].field14 = READ_LE_INT16((uint16 *)ptr + curBufIdx + 4); if (spriteData == g_PTRNUL) { Cache[i]._useCount = 0; } else { |