Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2003:
[Freeciv-Dev] Re: (PR#7107) Units move before game_advance_year
Home

[Freeciv-Dev] Re: (PR#7107) Units move before game_advance_year

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: mjk3@xxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#7107) Units move before game_advance_year
From: "Arnstein Lindgard" <a-l@xxxxxxx>
Date: Tue, 16 Dec 2003 13:01:58 -0800
Reply-to: rt@xxxxxxxxxxx

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

On Tue, 16 Dec 2003 11:31:29 -0800 Michael Kirzinger wrote:

> I'm not sure if this has been brought up before, but any player
> controlled unit set to ai control moves before the turn is advanced.
> This is due to the fact that the unit move points are restored and then
> are moved for the next turn, during end_turn (in srv_main.c), before the
> turn counter is increased.
> 
> One problem that this can cause is that cities from huts found by units
> on autoexplore/goto receive an incorrect value of one turn earlier for
> the turn they are founded.

So the founding date is off by one? If that's so, both the problem
and your solution patch should apply to PR#6941 Mission Orders,
assuming that patch will be executed in server as I currently
advocate.

Could you spot any other potential problems? As far as I could
see, it would only matter if someone implemented date-related
terrain alterations for some reason.


Arnstein




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