Update of /cvsroot/super-tux/supertux/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11732
Modified Files:
leveleditor.cpp
Log Message:
- removed static_cast hack
Index: leveleditor.cpp
===================================================================
RCS file: /cvsroot/super-tux/supertux/src/leveleditor.cpp,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- leveleditor.cpp 18 Apr 2004 12:03:06 -0000 1.50
+++ leveleditor.cpp 18 Apr 2004 21:45:13 -0000 1.51
@@ -1139,7 +1139,7 @@
/* if there is a bad guy over there, remove it */
for(i = 0; i < le_world.bad_guys.size(); ++i)
if(xx == le_world.bad_guys[i].base.x/32 && yy == le_world.bad_guys[i].base.y/32)
- le_world.bad_guys.erase(static_cast<std::vector<BadGuy>::iterator>(&le_world.bad_guys[i]));
+ le_world.bad_guys.erase(le_world.bad_guys.begin() + i);
if(c == '0') /* if it's a bad guy */
le_world.add_bad_guy(xx*32, yy*32, BAD_BSOD);
|