[Scummvm-cvs-logs] SF.net SVN: scummvm: [32371] scummvm/trunk/engines/cine/object.cpp
buddha_ at users.sourceforge.net
buddha_ at users.sourceforge.net
Fri May 30 00:07:26 CEST 2008
Revision: 32371
http://scummvm.svn.sourceforge.net/scummvm/?rev=32371&view=rev
Author: buddha_
Date: 2008-05-29 15:07:25 -0700 (Thu, 29 May 2008)
Log Message:
-----------
Added check in modifyObjectParam's start (Verified with FW & OS PC versions' disassemblies). Also removed superfluous default-case, hopefully no compiler will complain about this :).
Modified Paths:
--------------
scummvm/trunk/engines/cine/object.cpp
Modified: scummvm/trunk/engines/cine/object.cpp
===================================================================
--- scummvm/trunk/engines/cine/object.cpp 2008-05-29 20:35:15 UTC (rev 32370)
+++ scummvm/trunk/engines/cine/object.cpp 2008-05-29 22:07:25 UTC (rev 32371)
@@ -185,6 +185,10 @@
}
void modifyObjectParam(byte objIdx, byte paramIdx, int16 newValue) {
+ // Operation Stealth checks object index range, Future Wars doesn't.
+ if (g_cine->getGameType() == Cine::GType_OS && objIdx >= NUM_MAX_OBJECT)
+ return;
+
switch (paramIdx) {
case 1:
objectTable[objIdx].x = newValue;
@@ -214,8 +218,6 @@
case 6:
objectTable[objIdx].part = newValue;
break;
- default: // No-operation
- break;
}
}
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