Author: boucman
Date: Mon Jun 16 20:15:17 2008
New Revision: 27229
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27229&view=rev
Log:
fix a forgoten debug code and a slight bug in my previous commit
Modified:
trunk/src/display.cpp
Modified: trunk/src/display.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/display.cpp?rev=27229&r1=27228&r2=27229&view=diff
==============================================================================
--- trunk/src/display.cpp (original)
+++ trunk/src/display.cpp Mon Jun 16 20:15:17 2008
@@ -2022,7 +2022,6 @@
reportSurfaces_[report_num].assign(NULL);
}
}
-extern int debug;
bool display::invalidate_rectangle(const gamemap::location& first_corner,
const gamemap::location& second_corner) {
// unused variable - const SDL_Rect& rect = map_area();
bool result = false;
@@ -2034,7 +2033,7 @@
if(is_odd(x)) {
result |=
invalidate(gamemap::location(x,minimum<int>(first_corner.y,second_corner.y)-1));
} else {
- result |=
invalidate(gamemap::location(x,minimum<int>(first_corner.y,second_corner.y)+1));
+ result |=
invalidate(gamemap::location(x,maximum<int>(first_corner.y,second_corner.y)+1));
}
}
return result;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits