Author: mir3x
Date: Mon Jan  9 11:06:46 2017
New Revision: 34807

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

See patch #8063


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

Modified: branches/S3_0/client/control.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/client/control.c?rev=34807&r1=34806&r2=34807&view=diff
==============================================================================
--- branches/S3_0/client/control.c      (original)
+++ branches/S3_0/client/control.c      Mon Jan  9 11:06:46 2017
@@ -2765,6 +2765,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/S3_0/client/control.h
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/client/control.h?rev=34807&r1=34806&r2=34807&view=diff
==============================================================================
--- branches/S3_0/client/control.h      (original)
+++ branches/S3_0/client/control.h      Mon Jan  9 11:06:46 2017
@@ -33,7 +33,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