[Scummvm-cvs-logs] SF.net SVN: scummvm:[46979] scummvm/trunk/engines/teenagent/teenagent.cpp
megath at users.sourceforge.net
megath at users.sourceforge.net
Mon Jan 4 19:07:00 CET 2010
Revision: 46979
http://scummvm.svn.sourceforge.net/scummvm/?rev=46979&view=rev
Author: megath
Date: 2010-01-04 18:06:59 +0000 (Mon, 04 Jan 2010)
Log Message:
-----------
fixed flame effect
Modified Paths:
--------------
scummvm/trunk/engines/teenagent/teenagent.cpp
Modified: scummvm/trunk/engines/teenagent/teenagent.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/teenagent.cpp 2010-01-04 17:37:25 UTC (rev 46978)
+++ scummvm/trunk/engines/teenagent/teenagent.cpp 2010-01-04 18:06:59 UTC (rev 46979)
@@ -363,8 +363,10 @@
//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) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list