Author: sveinung
Date: Sun Mar 12 13:26:51 2017
New Revision: 35097
URL: http://svn.gna.org/viewcvs/freeciv?rev=35097&view=rev
Log:
ruledit: new action enablers go last.
The action enabler list is sorted by action. A user doesn't expect the new
action enabler he just added to end up in the middle of the action enabler
list. Set the default action of a new action enabler to the last action so
it shows up at the end of the action enabler list.
See hrm Feature #644055
Modified:
trunk/tools/ruledit/tab_enablers.cpp
Modified: trunk/tools/ruledit/tab_enablers.cpp
URL:
http://svn.gna.org/viewcvs/freeciv/trunk/tools/ruledit/tab_enablers.cpp?rev=35097&r1=35096&r2=35097&view=diff
==============================================================================
--- trunk/tools/ruledit/tab_enablers.cpp (original)
+++ trunk/tools/ruledit/tab_enablers.cpp Sun Mar 12 13:26:51 2017
@@ -210,7 +210,7 @@
// Try to add completely new enabler
new_enabler = action_enabler_new();
- new_enabler->action = ACTION_MARKETPLACE;
+ new_enabler->action = (enum gen_action)(ACTION_COUNT - 1);
action_enabler_add(new_enabler);
_______________________________________________
Freeciv-commits mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-commits