diff options
Diffstat (limited to 'engines/kyra/resource_intern.cpp')
-rw-r--r-- | engines/kyra/resource_intern.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/kyra/resource_intern.cpp b/engines/kyra/resource_intern.cpp index 3e8a3fd9c7..fd97a168e6 100644 --- a/engines/kyra/resource_intern.cpp +++ b/engines/kyra/resource_intern.cpp @@ -678,7 +678,7 @@ bool FileExpander::process(uint8 *dst, const uint8 *src, uint32 outsize, uint32 int16 cmd = 0; do { - cmd = ((int16*) _tables[2])[_src->getKeyLower()]; + cmd = ((int16*)_tables[2])[_src->getKeyLower()]; _src->advSrcBitsByIndex(cmd < 0 ? calcCmdAndIndex(_tables[3], cmd) : _tables[0][cmd]); if (cmd == 0x11d) { @@ -691,7 +691,7 @@ bool FileExpander::process(uint8 *dst, const uint8 *src, uint32 outsize, uint32 *d++ = cmd & 0xff; } else if (cmd != 0x100) { cmd -= 0xfe; - int16 offset = ((int16*) _tables[4])[_src->getKeyLower()]; + int16 offset = ((int16*)_tables[4])[_src->getKeyLower()]; _src->advSrcBitsByIndex(offset < 0 ? calcCmdAndIndex(_tables[5], offset) : _tables[1][offset]); if ((offset & 0xff) >= 4) { uint8 newIndex = ((offset & 0xff) >> 1) - 1; @@ -798,13 +798,13 @@ void FileExpander::generateTables(uint8 srcIndex, uint8 dstIndex, uint8 dstIndex cnt--; s = tbl1 + cnt; d = &_tables16[2][cnt]; - uint16 * bt = (uint16*) tbl3; + uint16 * bt = (uint16*)tbl3; uint16 inc = 0; uint16 cnt2 = 0; do { uint8 t = *s--; - uint16 *s2 = (uint16*) tbl2; + uint16 *s2 = (uint16*)tbl2; if (t && t < 9) { inc = 1 << t; @@ -822,7 +822,7 @@ void FileExpander::generateTables(uint8 srcIndex, uint8 dstIndex, uint8 dstIndex t -= 8; uint8 shiftCnt = 1; uint8 v = (*d) >> 8; - s2 = &((uint16*) tbl2)[*d & 0xff]; + s2 = &((uint16*)tbl2)[*d & 0xff]; do { if (!*s2) { |