projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
346cfaf
)
Just added more info to warning.
author
Ricardo Cruz
<rick2@aeiou.pt>
Mon, 16 Aug 2004 12:13:00 +0000
(12:13 +0000)
committer
Ricardo Cruz
<rick2@aeiou.pt>
Mon, 16 Aug 2004 12:13:00 +0000
(12:13 +0000)
SVN-Revision: 1780
lib/special/sprite.cpp
patch
|
blob
|
history
diff --git
a/lib/special/sprite.cpp
b/lib/special/sprite.cpp
index
8fe622c
..
cc94821
100644
(file)
--- a/
lib/special/sprite.cpp
+++ b/
lib/special/sprite.cpp
@@
-185,7
+185,8
@@
Sprite::draw(DrawingContext& context, const Vector& pos, int layer,
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);