[Freeciv-Dev] Re: patches
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Wed, Aug 29, 2001 at 01:06:01PM -0700, Trent Piepho wrote:
> On Wed, 29 Aug 2001, Raimar Falke wrote:
> > The attached patch should clean up any remaining ids of players,
> > cities and units. Unit types have an extra type (good). Still a bit of
> > a mess are improvements.
>
> This part is wrong:
>
> @@ -823,7 +823,9 @@
> break;
> case PACKET_PLAYER_CANCEL_PACT:
> handle_player_cancel_pact(pplayer,
> - ((struct packet_generic_integer
> *)packet)->value);
> + get_player(
> + ((struct packet_generic_integer *)
> + packet)->value));
>
>
> This is a network function, and should take an ID as a parameter. Every
> single other network function works that way. In the 51 other handler
> functions called in that case statement, not one has some kind of id to
> pointer function used in its arguments.
Ack. Too blind search'n'replace. The rest?
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
1) Customers cause problems.
2) Marketing is trying to create more customers.
Therefore:
3) Marketing is evil.
- [Freeciv-Dev] Re: 3 patches for use on public gameservers, (continued)
- [Freeciv-Dev] Re: 3 patches for use on public gameservers, Reinier Post, 2001/08/28
- [Freeciv-Dev] Re: 3 patches for use on public gameservers, Ross W. Wetmore, 2001/08/29
- [Freeciv-Dev] Re: 3 patches for use on public gameservers, Paul Zastoupil, 2001/08/29
- [Freeciv-Dev] Re: 3 patches for use on public gameservers, Jason Dorje Short, 2001/08/30
- [Freeciv-Dev] Re: 3 patches for use on public gameservers, Ross W. Wetmore, 2001/08/30
[Freeciv-Dev] Re: patches, Ross W. Wetmore, 2001/08/28
[Freeciv-Dev] Re: patches, Raimar Falke, 2001/08/29
|
|