[Scummvm-cvs-logs] CVS: scummvm/scumm script.cpp,1.162,1.163
Max Horn
fingolfin at users.sourceforge.net
Sat Jul 31 16:35:01 CEST 2004
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/saga actionmap.cpp,1.8,1.9 actionmap.h,1.4,1.5 actor.cpp,1.12,1.13 actor.h,1.4,1.5 animation.cpp,1.10,1.11 animation.h,1.7,1.8 cvar.cpp,1.6,1.7 cvar.h,1.4,1.5 cvar_mod.h,1.4,1.5 objectmap.cpp,1.9,1.10 objectmap.h,1.4,1.5 render.cpp,1.14,1.15 saga.cpp,1.23,1.24 scene.cpp,1.13,1.14 scene.h,1.4,1.5 script.cpp,1.8,1.9 script.h,1.5,1.6
- Next message: [Scummvm-cvs-logs] CVS: scummvm/saga actionmap.cpp,1.9,1.10 actionmap.h,1.5,1.6 render.cpp,1.15,1.16 render.h,1.9,1.10 saga.cpp,1.24,1.25 saga.h,1.17,1.18 scene.cpp,1.14,1.15 actionmap_mod.h,1.3,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13397
Modified Files:
script.cpp
Log Message:
Fix for bug #941275 (FOA: Game crashes when clicking statue part (Sentry Statue))
Index: script.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script.cpp,v
retrieving revision 1.162
retrieving revision 1.163
diff -u -d -r1.162 -r1.163
--- script.cpp 24 Jul 2004 07:18:18 -0000 1.162
+++ script.cpp 31 Jul 2004 23:34:07 -0000 1.163
@@ -843,10 +843,23 @@
/* Nuke local object names */
if (_newNames) {
for (i = 0; i < _numNewNames; i++) {
- int j = _newNames[i];
- if (j && getOwner(j) == 0) {
- _newNames[i] = 0;
- nukeResource(rtObjectName, i);
+ const int obj = _newNames[i];
+ if (obj) {
+ const int owner = getOwner(obj);
+ // We can delete custom name resources if either the object is
+ // no longer in use (i.e. not owned by anyone anymore); or if
+ // it is an object which is owned by a room.
+ if (owner == 0 || owner == OF_OWNER_ROOM) {
+ // WORKAROUND for a problem mentioned in bug report #941275:
+ // In FOA in the sentry room, in the chest plate of the statue,
+ // the pegs may be renamed to mouth: this custom name is lost
+ // when leaving the room; this hack prevents this).
+ if (owner == OF_OWNER_ROOM && _gameId == GID_INDY4 && 336 <= obj && obj <= 340)
+ continue;
+
+ _newNames[i] = 0;
+ nukeResource(rtObjectName, i);
+ }
}
}
}
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/saga actionmap.cpp,1.8,1.9 actionmap.h,1.4,1.5 actor.cpp,1.12,1.13 actor.h,1.4,1.5 animation.cpp,1.10,1.11 animation.h,1.7,1.8 cvar.cpp,1.6,1.7 cvar.h,1.4,1.5 cvar_mod.h,1.4,1.5 objectmap.cpp,1.9,1.10 objectmap.h,1.4,1.5 render.cpp,1.14,1.15 saga.cpp,1.23,1.24 scene.cpp,1.13,1.14 scene.h,1.4,1.5 script.cpp,1.8,1.9 script.h,1.5,1.6
- Next message: [Scummvm-cvs-logs] CVS: scummvm/saga actionmap.cpp,1.9,1.10 actionmap.h,1.5,1.6 render.cpp,1.15,1.16 render.h,1.9,1.10 saga.cpp,1.24,1.25 saga.h,1.17,1.18 scene.cpp,1.14,1.15 actionmap_mod.h,1.3,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list