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

[Freeciv-Dev] (PR#4479)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#4479)
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 2 Jul 2003 10:04:33 -0700
Reply-to: rt@xxxxxxxxxxxxxx

In handle_unit_info() in client/packhand.c, when a unit changes location
if it moves out of sight it is deleted and the function immediately
returns.  Just below this we check to see if the unit is leaving a city,
and update that city's occupied flag if so.

Thus if a unit moves out of a city and off into the unknown the city's
occupied information will not be updated.  I believe the attached patch
will fix it.  This just moves the unit removal down below the city check.

I remember there being several bugs reported that could be caused by
this, but I don't know where they are offhand.  Any testing would be good.

jason

Attachment: city_occupied.diff
Description: city_occupied.diff


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#4479), Jason Short <=