Author: tschmitz
Date: Sun Jul 24 23:38:27 2011
New Revision: 50392
URL: http://svn.gna.org/viewcvs/wesnoth?rev=50392&view=rev
Log:
Fixed whiteboard bug (ability to attack yourself).
Modified:
trunk/src/mouse_events.cpp
Modified: trunk/src/mouse_events.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/mouse_events.cpp?rev=50392&r1=50391&r2=50392&view=diff
==============================================================================
--- trunk/src/mouse_events.cpp (original)
+++ trunk/src/mouse_events.cpp Sun Jul 24 23:38:27 2011
@@ -344,9 +344,7 @@
bool eligible = enemy != units_.end();
if (!eligible) return map_location();
- bool show_for_whiteboard = wb_active &&
- viewing_team.is_enemy(enemy->side());
- eligible &= show_for_whiteboard ||
current_team().is_enemy(enemy->side());
+ eligible &= viewing_team.is_enemy(enemy->side());
eligible &= !enemy->incapacitated();
if (!eligible) return map_location();
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits