[Freeciv-Dev] Workers placed on other cities - cont...
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
As i mentioned 2 weeks ago, i had noticed a situation where there were
workers from one city placed on a tile occupied by another city.
I've observed now that such tiles/cities have in common that changed
owner (no matter whether this was conquest, spy revolt, or trading).
I'm not exactly sure why this happens, but the city_check_workers()
that is executed in 2 out of the 3 cases (not when a city is conquered, why?)
doesn't force a worker on the city tile... Haven't tried to force this
by doing a set_worker_city(_city_, 2, 2, C_TILE_WORKER). Instead,
i tried auto_arrange_workers() (which forces a worker on the city tile)
every time a city changes hands (all 3 cases above) and the problem
disappears... In any case, i think that auto_arrange_workers() is a
reasonable thing to do when a city is transferred to another player...
--rizos
PS: On another problem, i just noticed that the first turn after
a game is loaded from file, the red border does not appear
around tiles occupied by workers from other cities... This
is fixed automatically in the next turn...
- [Freeciv-Dev] Workers placed on other cities - cont...,
rizos <=
|
|