[Scummvm-cvs-logs] CVS: residual model.cpp,1.7,1.8
James Brown
ender at users.sourceforge.net
Mon Sep 1 10:10:02 CEST 2003
Update of /cvsroot/scummvm/residual
In directory sc8-pr-cvs1:/tmp/cvs-serv20263
Modified Files:
model.cpp
Log Message:
Headcrash is a great book by Bruce Bethke. This however is a nasty hack to prevent memory corruption when computing Mannys Head's bounding box
Index: model.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/model.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- model.cpp 31 Aug 2003 13:20:28 -0000 1.7
+++ model.cpp 1 Sep 2003 17:07:31 -0000 1.8
@@ -647,6 +647,12 @@
glPopMatrix();
glEnable(GL_TEXTURE_2D ); */
+ // Ender: HACK HACK HACK
+ // Mannys head isn't computed correctly, so bail out to prevent memory corruption.
+ // .. at least until it IS computed, or the DirtyScreen code has bounds checking :)
+ if (strstr(name_, "m_head_1"))
+ return;
+
// Yaz: debug
// this compute the dirty rect for the mesh
More information about the Scummvm-git-logs
mailing list