diff options
author | Florian Kagerer | 2009-02-15 03:36:30 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-02-15 03:36:30 +0000 |
commit | 16a57f299cdad82a87c1d397b56b663a9426c38e (patch) | |
tree | 21fcc6ac31586e322840be55c4dc052654c0b385 /tools/create_kyradat | |
parent | 36767120e1d3553217809af262d844474f926c03 (diff) | |
download | scummvm-rg350-16a57f299cdad82a87c1d397b56b663a9426c38e.tar.gz scummvm-rg350-16a57f299cdad82a87c1d397b56b663a9426c38e.tar.bz2 scummvm-rg350-16a57f299cdad82a87c1d397b56b663a9426c38e.zip |
LOL: - implemented proper button processing (works exactly as in Kyra 2 and 3, so we do have some code duplication atm, I just fixed right mouse button support for LOL)
- keyboard control now works
svn-id: r38190
Diffstat (limited to 'tools/create_kyradat')
-rw-r--r-- | tools/create_kyradat/create_kyradat.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/create_kyradat/create_kyradat.cpp b/tools/create_kyradat/create_kyradat.cpp index 8705ccfeb8..0f3342ad00 100644 --- a/tools/create_kyradat/create_kyradat.cpp +++ b/tools/create_kyradat/create_kyradat.cpp @@ -31,7 +31,7 @@ #include "md5.h" enum { - kKyraDatVersion = 36, + kKyraDatVersion = 37, kIndexSize = 12 }; @@ -1093,8 +1093,8 @@ bool extractLolButtonDefs(PAKFile &out, const Game *g, const byte *data, const u for (int i = 0; i < num; i++) { WRITE_BE_UINT16(dst, READ_LE_UINT16(src)); src += 2; dst += 2; - *dst++ = *src++; - *dst++ = *src++; + WRITE_BE_UINT16(dst, READ_LE_UINT16(src)); + src += 2; dst += 2; WRITE_BE_UINT16(dst, READ_LE_UINT16(src)); src += 6; dst += 2; WRITE_BE_UINT16(dst, READ_LE_UINT16(src)); |