Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2004:
[Freeciv-Dev] (PR#10729) unsentry on unload
Home

[Freeciv-Dev] (PR#10729) unsentry on unload

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#10729) unsentry on unload
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 25 Oct 2004 16:01:17 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10729 >

This patch automatically unsentries a unit when unloading it with the 
client's unload command.  Units are already automatically sentried on load.

See also PR#10714.

jason

? diff
? data/flags/germany.bmp
? data/flags/germany.ppm
? data/flags/germany.svg
? data/flags/kenya.bmp
? data/flags/svg
? server/stRLxxSL
Index: client/control.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/control.c,v
retrieving revision 1.146
diff -u -r1.146 control.c
--- client/control.c    23 Oct 2004 19:18:33 -0000      1.146
+++ client/control.c    25 Oct 2004 23:00:17 -0000
@@ -954,6 +954,10 @@
       && can_unit_unload(pcargo, ptrans)
       && can_unit_survive_at_tile(pcargo, pcargo->tile)) {
     dsend_packet_unit_unload(&aconnection, pcargo->id, ptrans->id);
+
+    /* Activate the unit. */
+    dsend_packet_unit_change_activity(&aconnection, pcargo->id,
+                                     ACTIVITY_IDLE, S_NO_SPECIAL);
   }
 }
 

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#10729) unsentry on unload, Jason Short <=