[Scummvm-cvs-logs] SF.net SVN: scummvm: [22295] scummvm/trunk/engines/simon/vga.cpp
kirben at users.sourceforge.net
kirben at users.sourceforge.net
Wed May 3 02:34:35 CEST 2006
Revision: 22295
Author: kirben
Date: 2006-05-03 02:33:41 -0700 (Wed, 03 May 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22295&view=rev
Log Message:
-----------
Write results to correct locations in setRandom and getPathValue video opcodes of FF
Modified Paths:
--------------
scummvm/trunk/engines/simon/vga.cpp
Modified: scummvm/trunk/engines/simon/vga.cpp
===================================================================
--- scummvm/trunk/engines/simon/vga.cpp 2006-05-03 06:07:26 UTC (rev 22294)
+++ scummvm/trunk/engines/simon/vga.cpp 2006-05-03 09:33:41 UTC (rev 22295)
@@ -2520,7 +2520,8 @@
void SimonEngine::vc81_setRandom() {
uint16 var = vcReadNextWord();
uint16 value = vcReadNextWord();
- writeVariable(var, _rnd.getRandomNumber(value - 1));
+
+ _variableArray[var] = _rnd.getRandomNumber(value - 1);
}
void SimonEngine::vc82_getPathValue() {
@@ -2534,7 +2535,7 @@
val = _pathValues[_GPVCount++];
}
- writeVariable(var, val);
+ vcWriteVar(var, val);
}
void SimonEngine::vc83_playSoundLoop() {
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