Author: ilor
Date: Fri Aug 15 15:55:21 2008
New Revision: 28600
URL: http://svn.gna.org/viewcvs/wesnoth?rev=28600&view=rev
Log:
silence gcc 4.3.1 warning
Modified:
trunk/src/editor2/mouse_action.cpp
Modified: trunk/src/editor2/mouse_action.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor2/mouse_action.cpp?rev=28600&r1=28599&r2=28600&view=diff
==============================================================================
--- trunk/src/editor2/mouse_action.cpp (original)
+++ trunk/src/editor2/mouse_action.cpp Fri Aug 15 15:55:21 2008
@@ -205,7 +205,7 @@
if (!disp.map().on_board(previous_move_hex_) || event.type !=
SDL_KEYUP) {
return NULL;
}
- if (event.key.keysym.sym >= '1' && event.key.keysym.sym <= '9' ||
event.key.keysym.sym == SDLK_DELETE) {
+ if ((event.key.keysym.sym >= '1' && event.key.keysym.sym <= '9') ||
event.key.keysym.sym == SDLK_DELETE) {
int res = event.key.keysym.sym - '0';
if (res > gamemap::MAX_PLAYERS || event.key.keysym.sym ==
SDLK_DELETE) res = 0;
int player_starting_at_hex =
disp.map().is_starting_position(previous_move_hex_) + 1;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits