Author: sveinung
Date: Mon Mar  2 15:46:09 2015
New Revision: 28356

URL: http://svn.gna.org/viewcvs/freeciv?rev=28356&view=rev
Log:
Remove redundant check in handle_unit_get_actions()

The if statement can't be reached unless at_least_one_action can be done.

See patch #5873

Modified:
    trunk/server/unithand.c

Modified: trunk/server/unithand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/unithand.c?rev=28356&r1=28355&r2=28356&view=diff
==============================================================================
--- trunk/server/unithand.c     (original)
+++ trunk/server/unithand.c     Mon Mar  2 15:46:09 2015
@@ -673,8 +673,7 @@
         break;
       }
 
-      if (at_least_one_action
-          && target_city_id != IDENTITY_NUMBER_ZERO
+      if (target_city_id != IDENTITY_NUMBER_ZERO
           && target_unit != IDENTITY_NUMBER_ZERO) {
         /* No need to find out more. */
         break;


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

Reply via email to