Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2003:
[Freeciv-Dev] Re: (PR#7040) Small cleanup packhand.c
Home

[Freeciv-Dev] Re: (PR#7040) Small cleanup packhand.c

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: a-l@xxxxxxx
Subject: [Freeciv-Dev] Re: (PR#7040) Small cleanup packhand.c
From: "Raimar Falke" <i-freeciv-lists@xxxxxxxxxxxxx>
Date: Sat, 6 Dec 2003 06:26:20 -0800
Reply-to: rt@xxxxxxxxxxx

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

On Fri, Dec 05, 2003 at 05:00:46AM -0800, Arnstein Lindgard wrote:
>      agents_unit_changed(punit);

> -  if (punit && punit == get_unit_in_focus()) {
> +  /* Will agents_unit_changed() above be allowed to destroy the unit? */
> +  assert(punit != NULL);

A call to agents_*_changed inside a
PACKET_PROCESSING_STARTED/PACKET_PROCESSING_FINISHED or
PACKET_FREEZE_HINT/PACKET_THAW_HINT pair will always only enqueue a
call. No modifying function is called. Every packet which the client
receives is/should be inside such a pair.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  "Heuer's Law: Any feature is a bug unless it can be turned off."




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