[Scummvm-cvs-logs] CVS: scummvm/scumm object.cpp,1.103,1.104
Max Horn
fingolfin at users.sourceforge.net
Thu May 22 08:31:16 CEST 2003
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm object.cpp,1.102,1.103 script.cpp,1.100,1.101 script_v2.cpp,2.110,2.111
- Next message: [Scummvm-cvs-logs] CVS: scummvm/sound midiparser.cpp,1.4,1.5 midiparser.h,1.9,1.10 midiparser_smf.cpp,1.9,1.10 midiparser_xmidi.cpp,1.8,1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv21449
Modified Files:
object.cpp
Log Message:
not needed anymore since we read the preposition flag directly from the obcd data again
Index: object.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/object.cpp,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -d -r1.103 -r1.104
--- object.cpp 22 May 2003 15:27:44 -0000 1.103
+++ object.cpp 22 May 2003 15:30:27 -0000 1.104
@@ -240,9 +240,6 @@
x = od->x_pos + (int16)READ_LE_UINT16(&imhd->old.hotspot[state].x);
y = od->y_pos + (int16)READ_LE_UINT16(&imhd->old.hotspot[state].y);
}
- } else if (_features & GF_AFTER_V2){
- x = od->walk_x * 8;
- y = (od->walk_y & 0x1f) * 8;
} else {
x = od->walk_x;
y = od->walk_y;
@@ -696,11 +693,8 @@
od->parent = *(ptr + 12);
if (_features & GF_AFTER_V2) {
- od->walk_x = *(ptr + 13);
- // V2 stores an as of now unknown value in the upper 3 bits of the Y coordinate.
- // Maybe we shoudl add an entry for it to ObjectData. That would be cleaner,
- // but requires us to inc the savegame format version.
- od->walk_y = *(ptr + 14);
+ od->walk_x = *(ptr + 13) * 8;
+ od->walk_y = (*(ptr + 14) & 0x1f) * 8;
od->actordir = (*(ptr + 15)) & 7;
od->height = *(ptr + 15) & 0xf8;
} else {
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm object.cpp,1.102,1.103 script.cpp,1.100,1.101 script_v2.cpp,2.110,2.111
- Next message: [Scummvm-cvs-logs] CVS: scummvm/sound midiparser.cpp,1.4,1.5 midiparser.h,1.9,1.10 midiparser_smf.cpp,1.9,1.10 midiparser_xmidi.cpp,1.8,1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list