Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2003:
[Freeciv-Dev] (PR#4520) new function request_diplomat_action
Home

[Freeciv-Dev] (PR#4520) new function request_diplomat_action

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#4520) new function request_diplomat_action
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 9 Jul 2003 11:02:43 -0700
Reply-to: rt@xxxxxxxxxxxxxx

When sending a diplomatic action request to the server, the GUI code
fills out the fields of the struct then calls
send_packet_diplomat_action.  This is unnecessarily verbose, and also
leads to some uninitialized data (the value field) being sent over the
network.

By introducing a new function request_diplomat_action we can avoid the
uninitialized data problem while making the code more concise and readible.

jason

Attachment: request_diplomat_action.diff
Description: request_diplomat_action.diff


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