Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2005:
[Freeciv-Dev] Re: (PR#12883) generate_packets.py bug: handle-per-conn do
Home

[Freeciv-Dev] Re: (PR#12883) generate_packets.py bug: handle-per-conn do

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#12883) generate_packets.py bug: handle-per-conn doesn't work with handle-via-packet
From: "Mike Kaufman" <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 26 Apr 2005 15:19:22 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12883 >

an additional patch was needed. Hopefully it's right.

-mike

Index: common/generate_packets.py
===================================================================
RCS file: /home/freeciv/CVS/freeciv/common/generate_packets.py,v
retrieving revision 1.18
diff -u -r1.18 generate_packets.py
--- common/generate_packets.py  26 Apr 2005 22:03:28 -0000      1.18
+++ common/generate_packets.py  26 Apr 2005 22:18:26 -0000
@@ -1588,7 +1588,11 @@
             b=",\n      "+b
 
         if p.handle_via_packet:
-            args="pplayer, packet"
+             if p.handle_per_conn:
+                 args="pconn, packet"
+             else:
+                 args="pplayer, packet"
+
         else:
             if p.handle_per_conn:
                 args="pconn"+b

[Prev in Thread] Current Thread [Next in Thread]