From 07bd6d0ebe6c773f36d973b01871e5380ffa6026 Mon Sep 17 00:00:00 2001 From: Ricardo Cruz Date: Mon, 16 Aug 2004 12:13:00 +0000 Subject: [PATCH] Just added more info to warning. SVN-Revision: 1780 --- lib/special/sprite.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/special/sprite.cpp b/lib/special/sprite.cpp index 8fe622c19..cc9482195 100644 --- 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); -- 2.11.0