Author: mir3x
Date: Mon Jan  9 11:05:46 2017
New Revision: 34805

URL: http://svn.gna.org/viewcvs/freeciv?rev=34805&view=rev
Log:
Added SELECT_FOCUS to quickselect_type

See patch #8063


Modified:
    branches/S2_6/client/control.c
    branches/S2_6/client/control.h

Modified: branches/S2_6/client/control.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/control.c?rev=34805&r1=34804&r2=34805&view=diff
==============================================================================
--- branches/S2_6/client/control.c      (original)
+++ branches/S2_6/client/control.c      Mon Jan  9 11:05:46 2017
@@ -2587,6 +2587,9 @@
     return (unit_owner(punit) == client.conn.playing) ? punit : NULL;
   }
 
+  if (qtype == SELECT_FOCUS) {
+    return head_of_units_in_focus();
+  }
   /*  Quickselect priorities. Units with moves left
    *  before exhausted. Focus unit is excluded.
    *

Modified: branches/S2_6/client/control.h
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/control.h?rev=34805&r1=34804&r2=34805&view=diff
==============================================================================
--- branches/S2_6/client/control.h      (original)
+++ branches/S2_6/client/control.h      Mon Jan  9 11:05:46 2017
@@ -34,7 +34,7 @@
 
 /* Selecting unit from a stack without popup. */
 enum quickselect_type {
-  SELECT_POPUP = 0, SELECT_SEA, SELECT_LAND, SELECT_APPEND
+  SELECT_POPUP = 0, SELECT_SEA, SELECT_LAND, SELECT_APPEND,  SELECT_FOCUS
 };
 
 void control_init(void);


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to