[Freeciv-Dev] end of turn activities
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Hi,
in end_turn of server/srv_main.c there are three activities which are
done in one go.
( update_player_activities(pplayer); server/plrhand.c
ai_do_last_activities(pplayer); (aimovement of last turn)
building / updating in cities
great_library(pplayer);
update_revolution(pplayer);
player_restore_units(pplayer); /*note: restoring move point moved
to update_unit_activities*/
update_city_activities(pplayer);
pplayer->research.changed_from=-1;
moving units checking aliveness
update_unit_activities(pplayer);
update_player_aliveness(pplayer);
I think that should be seperated in three separate functions.
First ai-moves of the last round.
Second building updating units.
Third movement of the new round.
Or are there any reasons to not change that?
Thomas
--
Thomas Strub *** eMail ue80@xxxxxxxxxxxxxxxxxxx
Nur weil das Aufzeichnen, Kopieren und Schnüffeln bei elektronischem
Datenverkehr leichter als bei der klassischen Post ist, darf man es nicht
einfach tun.
- [Freeciv-Dev] end of turn activities,
Thomas Strub <=
|
|