Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2003:
[Freeciv-Dev] (PR#4345) pcity->occupied not properly updated
Home

[Freeciv-Dev] (PR#4345) pcity->occupied not properly updated

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gregory.Berkolaiko@xxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#4345) pcity->occupied not properly updated
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 15 Jul 2003 19:48:27 -0700
Reply-to: rt@xxxxxxxxxxxxxx

[glip - Sun Jun  1 19:09:27 2003]:

> When the last unit moves out of the city, the "occupied" flag is not
> removed.  I used Per's
>       allywithallyofenemy.sav.gz
> savegame (PR#4202) and GTK2 clients.  Connect as Mutsuhito and
> Elizabeth.

This is because, well, the occupied flag is not removed!

When your unit moves into sight of a foreign city, the server will send
you a short city packet with the updated occupied flag.  But if a
foreign unit moves into or out of the city (whether or not you can see
the unit move) no new packet is sent.

The easiest solution is to just broadcast the information any time a
unit moves into or out of a city.  Of course this is quite a bit
inefficient...

jason

Attachment: city_occupied.diff
Description: city_occupied.diff


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