diff options
author | Florian Kagerer | 2009-10-08 20:37:10 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-10-08 20:37:10 +0000 |
commit | 64c4a8f901a1ac8a08c38225915577835a06f8bd (patch) | |
tree | b82e4af84a60b775b39217107212f8a4e3ccb7c1 | |
parent | f8cdacdeeacd722031a1ce8d9426b7e1059e24c9 (diff) | |
download | scummvm-rg350-64c4a8f901a1ac8a08c38225915577835a06f8bd.tar.gz scummvm-rg350-64c4a8f901a1ac8a08c38225915577835a06f8bd.tar.bz2 scummvm-rg350-64c4a8f901a1ac8a08c38225915577835a06f8bd.zip |
LOL/PC-98: fixed lightning spell
svn-id: r44798
-rw-r--r-- | engines/kyra/lol.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp index 3fe04268d2..8f1e9d40a2 100644 --- a/engines/kyra/lol.cpp +++ b/engines/kyra/lol.cpp @@ -2947,7 +2947,15 @@ void LoLEngine::callbackProcessMagicLightning(WSAMovie_v2 *mov, int x, int y) { Palette tpal(p1.getNumColors()); tpal.copy(p1); - for (int i = 6; i < 384; i++) { + int start = 6; + int end = 384; + + if (_flags.use16ColorMode) { + start = 3; + end = 48; + } + + for (int i = start; i < end; i++) { uint16 v = (tpal[i] * 120) / 64; tpal[i] = (v < 64) ? v : 63; } |