Author: sveinung
Date: Wed Jan 21 13:50:29 2015
New Revision: 27758

URL: http://svn.gna.org/viewcvs/freeciv?rev=27758&view=rev
Log:
make request_new_unit_activity() wrap request_new_unit_activity_targeted()

See patch #5728

Modified:
    branches/S2_6/client/control.c

Modified: branches/S2_6/client/control.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/control.c?rev=27758&r1=27757&r2=27758&view=diff
==============================================================================
--- branches/S2_6/client/control.c      (original)
+++ branches/S2_6/client/control.c      Wed Jan 21 13:50:29 2015
@@ -1539,11 +1539,7 @@
 **************************************************************************/
 void request_new_unit_activity(struct unit *punit, enum unit_activity act)
 {
-  if (!can_client_issue_orders()) {
-    return;
-  }
-
-  dsend_packet_unit_change_activity(&client.conn, punit->id, act, EXTRA_NONE);
+  request_new_unit_activity_targeted(punit, act, NULL);
 }
 
 /**************************************************************************


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

Reply via email to