From: Ricardo Cruz Date: Mon, 16 Aug 2004 12:13:00 +0000 (+0000) Subject: Just added more info to warning. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=07bd6d0ebe6c773f36d973b01871e5380ffa6026;p=supertux.git Just added more info to warning. SVN-Revision: 1780 --- 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);