Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: patches
Home

[Freeciv-Dev] Re: patches

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Trent Piepho <xyzzy@xxxxxxxxxxxxx>
Cc: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: patches
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 29 Aug 2001 22:14:18 +0200
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

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.


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