Author: sveinung
Date: Sun Mar 12 13:30:42 2017
New Revision: 35100

URL: http://svn.gna.org/viewcvs/freeciv?rev=35100&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:
    branches/S3_0/tools/ruledit/tab_enablers.cpp

Modified: branches/S3_0/tools/ruledit/tab_enablers.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/tools/ruledit/tab_enablers.cpp?rev=35100&r1=35099&r2=35100&view=diff
==============================================================================
--- branches/S3_0/tools/ruledit/tab_enablers.cpp        (original)
+++ branches/S3_0/tools/ruledit/tab_enablers.cpp        Sun Mar 12 13:30:42 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
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to