Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] (PR#10300) Sabotage production protocol
Home

[Freeciv-Dev] (PR#10300) Sabotage production protocol

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#10300) Sabotage production protocol
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Fri, 24 Sep 2004 07:55:26 -0700
Reply-to: rt@xxxxxxxxxxx

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

If client sent diplomat action packet with value = -1 it should be
treated as "sabotage production". However the value field is sent as
UINT16, not as SINT16.
Here's a patch

Index: packets.def
===================================================================
RCS file: /home/freeciv/CVS/freeciv/common/packets.def,v
retrieving revision 1.52
diff -u -r1.52 packets.def
--- packets.def 21 Sep 2004 05:00:51 -0000      1.52
+++ packets.def 24 Sep 2004 14:54:48 -0000
@@ -753,7 +753,7 @@
   UNIT diplomat_id;
   DIPLOMAT_ACTION action_type;
   UNIT target_id;   # city_id or unit_id target_id;
-  UINT16 value;
+  SINT16 value;
 end
 
 PACKET_UNIT_DIPLOMAT_POPUP_DIALOG=71;sc,dsend,lsend

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#10300) Sabotage production protocol, Mateusz Stefek <=