diff options
author | Max Horn | 2004-09-26 18:08:51 +0000 |
---|---|---|
committer | Max Horn | 2004-09-26 18:08:51 +0000 |
commit | 59fb1a53cfe17c020b9d7268dcd19ac5fb7a5dc6 (patch) | |
tree | daf46d335a8d72ad3176da5c474793d7ff8e4a51 /scumm/smush | |
parent | f3fe01fa6703476ba06742305dcf8a25ea39e03f (diff) | |
download | scummvm-rg350-59fb1a53cfe17c020b9d7268dcd19ac5fb7a5dc6.tar.gz scummvm-rg350-59fb1a53cfe17c020b9d7268dcd19ac5fb7a5dc6.tar.bz2 scummvm-rg350-59fb1a53cfe17c020b9d7268dcd19ac5fb7a5dc6.zip |
enums are more efficient than static const ints :-)
svn-id: r15299
Diffstat (limited to 'scumm/smush')
-rw-r--r-- | scumm/smush/smush_player.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scumm/smush/smush_player.cpp b/scumm/smush/smush_player.cpp index 344ba0127d..e919859954 100644 --- a/scumm/smush/smush_player.cpp +++ b/scumm/smush/smush_player.cpp @@ -186,7 +186,9 @@ static StringResource *getStrings(const char *file, bool is_encoded) { filebuffer[length] = 0; if (is_encoded) { - static const int32 ETRS_HEADER_LENGTH = 16; + enum { + ETRS_HEADER_LENGTH = 16 + }; assert(length > ETRS_HEADER_LENGTH); Chunk::type type = READ_BE_UINT32(filebuffer); |