Author: fendrin
Date: Mon Mar 14 21:28:42 2011
New Revision: 48912

URL: http://svn.gna.org/viewcvs/wesnoth?rev=48912&view=rev
Log:
Fixed that tools that need at least one defined side are not selectable.

Modified:
    branches/editor/src/editor/editor_controller.cpp

Modified: branches/editor/src/editor/editor_controller.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/editor/src/editor/editor_controller.cpp?rev=48912&r1=48911&r2=48912&view=diff
==============================================================================
--- branches/editor/src/editor/editor_controller.cpp (original)
+++ branches/editor/src/editor/editor_controller.cpp Mon Mar 14 21:28:42 2011
@@ -1206,7 +1206,7 @@
                case HOTKEY_EDITOR_TOOL_VILLAGE:
                case HOTKEY_EDITOR_TOOL_UNIT:
                case HOTKEY_EDITOR_TOOL_PATH:
-                       if (current_side_index_ != 
(signed)(get_map().get_teams().size() -1))
+                       if (get_map().get_teams().size() != 0)
                                hotkey_set_mouse_action(command);
                        return true;
                case HOTKEY_EDITOR_PASTE: //paste is somewhat different as it 
might be "one action then revert to previous mode"


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to