From: Holger Schemel Date: Wed, 14 Sep 2016 15:07:15 +0000 (+0200) Subject: fixed error output for out-of-bounds graphic definitions X-Git-Tag: 4.0.0.0~43 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=c8a4b929719715737c9180a3ea831b4019e9e1fe;p=rocksndiamonds.git fixed error output for out-of-bounds graphic definitions --- diff --git a/src/init.c b/src/init.c index 8dd33fdc..ccdda8e8 100644 --- a/src/init.c +++ b/src/init.c @@ -1706,6 +1706,7 @@ static void InitGraphicInfo() Error(ERR_INFO, "- config file: '%s'", getImageConfigFilename()); Error(ERR_INFO, "- config token: '%s'", getTokenFromImageID(i)); Error(ERR_INFO, "- image file: '%s'", src_bitmap->source_filename); + Error(ERR_INFO, "- frame size: %d, %d", width, height); Error(ERR_INFO, "error: first animation frame out of bounds (%d, %d) [%d, %d]", src_x, src_y, src_bitmap_width, src_bitmap_height); @@ -1734,10 +1735,10 @@ static void InitGraphicInfo() Error(ERR_INFO, "- config file: '%s'", getImageConfigFilename()); Error(ERR_INFO, "- config token: '%s'", getTokenFromImageID(i)); Error(ERR_INFO, "- image file: '%s'", src_bitmap->source_filename); + Error(ERR_INFO, "- frame size: %d, %d", width, height); Error(ERR_INFO, "error: last animation frame (%d) out of bounds (%d, %d) [%d, %d]", last_frame, src_x, src_y, src_bitmap_width, src_bitmap_height); - Error(ERR_INFO, "::: %d, %d", width, height); Error(ERR_INFO, "custom graphic rejected for this element/action"); if (i == fallback_graphic)