[Scummvm-cvs-logs] CVS: scummvm/sword1 logic.cpp,1.9,1.10
Robert G?ffringmann
lavosspawn at users.sourceforge.net
Wed Dec 17 15:50:03 CET 2003
Update of /cvsroot/scummvm/scummvm/sword1
In directory sc8-pr-cvs1:/tmp/cvs-serv16107/sword1
Modified Files:
logic.cpp
Log Message:
changed fnEnterSection to fix crash at startup.
Index: logic.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword1/logic.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- logic.cpp 17 Dec 2003 11:23:12 -0000 1.9
+++ logic.cpp 17 Dec 2003 23:49:26 -0000 1.10
@@ -1283,7 +1283,10 @@
if (screen >= TOTAL_SECTIONS)
error("mega %d tried entering section %d", id, screen);
- if (cpt->o_type == TYPE_PLAYER)
+ /* if (cpt->o_type == TYPE_PLAYER)
+ ^= this was the original condition from the game sourcecode.
+ not sure why it doesn't work*/
+ if (id == PLAYER)
_scriptVars[NEW_SCREEN] = screen;
else
cpt->o_screen = screen; // move the mega
More information about the Scummvm-git-logs
mailing list