[Scummvm-cvs-logs] CVS: residual scene.cpp,1.1,1.2
James Brown
ender at users.sourceforge.net
Fri Aug 15 13:51:09 CEST 2003
- Previous message: [Scummvm-cvs-logs] CVS: residual bits.h,1.1,1.2 engine.h,1.1,1.2 grimdialog.htm,1.2,1.3 mixer.h,1.1,1.2
- Next message: [Scummvm-cvs-logs] CVS: residual TODO,1.1.1.1,1.2 textsplit.cpp,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/residual
In directory sc8-pr-cvs1:/tmp/cvs-serv2739
Modified Files:
scene.cpp
Log Message:
Cope with rooms containing no sectors. Now I'm really going to bed :)
Index: scene.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/scene.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- scene.cpp 15 Aug 2003 19:41:26 -0000 1.1
+++ scene.cpp 15 Aug 2003 20:47:16 -0000 1.2
@@ -55,10 +55,11 @@
// Calculate the number of sectors
ts.expectString("section: sectors");
+ if (ts.eof()) // Sometimes there ARE no sectors (eg, inv room)
+ return;
ts.scanString(" sector %256s", 1, tempBuf);
ts.scanString(" id %d", 1, &numSectors_);
sectors_ = new Sector[numSectors_];
-
// FIXME: This would be nicer if we could rewind the textsplitter
// stream...
sectors_[0].load0(ts, tempBuf, numSectors_);
- Previous message: [Scummvm-cvs-logs] CVS: residual bits.h,1.1,1.2 engine.h,1.1,1.2 grimdialog.htm,1.2,1.3 mixer.h,1.1,1.2
- Next message: [Scummvm-cvs-logs] CVS: residual TODO,1.1.1.1,1.2 textsplit.cpp,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list