Fix incorrect image path function name in ~CROP() diagnostics

The error messages generated by using ~CROP() with negative coordinates
referred to the function's original name, ~SECTION().
This commit is contained in:
Ignacio R. Morelle 2013-06-08 19:28:33 -04:00
parent 88e2040204
commit 0e92c59803
2 changed files with 4 additions and 2 deletions

View file

@ -31,6 +31,8 @@ Version 1.11.4+dev:
tells the AI to what unit a given unit should advance to.
* Fix "Shuffle sides" incorrect behaviour: children inside [side] were also
swapped.
* Fixed incorrect image path function name in error messages generated by
using ~CROP() with negative coordinates.
* Miscellaneous and bug fixes
* Fixed minor issue with Drake Clasher animations
* Added a new playlist FULL_MUSIC_PLAYLIST, which contains all Wesnoth tracks

View file

@ -210,11 +210,11 @@ surface crop_modification::operator()(const surface& src) const
area.h = src->h;
}
if(area.x < 0) {
ERR_DP << "start X coordinate of SECTION modification is negative - truncating to zero\n";
ERR_DP << "start X coordinate of CROP modification is negative - truncating to zero\n";
area.x = 0;
}
if(area.y < 0) {
ERR_DP << "start Y coordinate of SECTION modification is negative - truncating to zero\n";
ERR_DP << "start Y coordinate of CROP modification is negative - truncating to zero\n";
area.y = 0;
}
return cut_surface(src, area);