diff options
author | Vladimir Menshakov | 2010-01-04 18:06:59 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2010-01-04 18:06:59 +0000 |
commit | fe2529ce172730da239cc11846592cbc74fe9fbb (patch) | |
tree | 7c906cb12fe9b195841c39929b32313d0fcf4619 | |
parent | 8cc208ba2e7d1f4b67d368b8aacfad3905d45eb6 (diff) | |
download | scummvm-rg350-fe2529ce172730da239cc11846592cbc74fe9fbb.tar.gz scummvm-rg350-fe2529ce172730da239cc11846592cbc74fe9fbb.tar.bz2 scummvm-rg350-fe2529ce172730da239cc11846592cbc74fe9fbb.zip |
fixed flame effect
svn-id: r46979
-rw-r--r-- | engines/teenagent/teenagent.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/teenagent/teenagent.cpp b/engines/teenagent/teenagent.cpp index d8a3c86eae..bd08a27e1f 100644 --- a/engines/teenagent/teenagent.cpp +++ b/engines/teenagent/teenagent.cpp @@ -363,8 +363,10 @@ bool TeenAgentEngine::showMetropolis() { //generate colors matrix memmove(colors + 320, colors + 480, 8480); for(uint c = 0; c < 17; ++c) { - byte x = (random.getRandomNumber(185) + 5) & 0xf; - colors[8800 + random.getRandomNumber(159)] = x | (x << 4); //last line + byte x = (random.getRandomNumber(185) + 5) & 0xff; + uint offset = 8800 + random.getRandomNumber(159); + colors[offset++] = x; + colors[offset++] = x; } for(uint y = 1; y < 56; ++y) { for(uint x = 1; x < 160; ++x) { |