Update of /cvsroot/super-tux/supertux/lib/special
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26781/lib/special
Modified Files:
sprite.cpp
Log Message:
Just added more info to warning.
Index: sprite.cpp
===================================================================
RCS file: /cvsroot/super-tux/supertux/lib/special/sprite.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- sprite.cpp 16 Aug 2004 11:53:34 -0000 1.11
+++ sprite.cpp 16 Aug 2004 12:13:00 -0000 1.12
@@ -185,7 +185,8 @@
if((int)frame >= get_frames() || (int)frame < 0)
std::cerr << "Warning: frame out of range: " << (int)frame
- << "/" << get_frames() << std::endl;
+ << "/" << get_frames() << " at sprite: " << get_name()
+ << "/" << get_action_name() << std::endl;
else
context.draw_surface(action->surfaces[(int)frame],
pos - Vector(action->x_hotspot, action->y_hotspot), layer, drawing_effect);
|