diff options
author | Johannes Schickel | 2005-11-13 19:35:01 +0000 |
---|---|---|
committer | Johannes Schickel | 2005-11-13 19:35:01 +0000 |
commit | e0aef914fd2ef0eb852ea325028d29991e2f9a62 (patch) | |
tree | 6bd811f691d029666f1d0f5880f67ef1b0cd0268 /kyra/staticres.cpp | |
parent | 267fc7e2f652feaf6168d65ccf2916e09fe12edb (diff) | |
download | scummvm-rg350-e0aef914fd2ef0eb852ea325028d29991e2f9a62.tar.gz scummvm-rg350-e0aef914fd2ef0eb852ea325028d29991e2f9a62.tar.bz2 scummvm-rg350-e0aef914fd2ef0eb852ea325028d29991e2f9a62.zip |
Fixed a bug with the sprite loader and various things related to
the scene switching code. Now the intro works correctly with a minor graphics glitch.
svn-id: r19588
Diffstat (limited to 'kyra/staticres.cpp')
-rw-r--r-- | kyra/staticres.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kyra/staticres.cpp b/kyra/staticres.cpp index ac7bf0189b..3882c74b77 100644 --- a/kyra/staticres.cpp +++ b/kyra/staticres.cpp @@ -312,10 +312,10 @@ void KyraEngine::res_loadRoomTable(const byte *src, Room **loadTo, int *size) { for (uint32 i = 0; i < count; ++i) { (*loadTo)[i].nameIndex = *src++; - (*loadTo)[i].northExit = READ_LE_UINT16(src); src += 2; - (*loadTo)[i].eastExit = READ_LE_UINT16(src); src += 2; - (*loadTo)[i].southExit = READ_LE_UINT16(src); src += 2; - (*loadTo)[i].westExit = READ_LE_UINT16(src); src += 2; + (*loadTo)[i].northExit = READ_BE_UINT16(src); src += 2; + (*loadTo)[i].eastExit = READ_BE_UINT16(src); src += 2; + (*loadTo)[i].southExit = READ_BE_UINT16(src); src += 2; + (*loadTo)[i].westExit = READ_BE_UINT16(src); src += 2; memset(&(*loadTo)[i].itemsTable[0], 0xFF, sizeof(byte)*6); memset(&(*loadTo)[i].itemsTable[6], 0, sizeof(byte)*6); memset((*loadTo)[i].itemsXPos, 0, sizeof(uint16)*12); |