<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40619 >
> [guest - Wed Feb 11 21:29:37 2009]: > > > [book - Mi 11. Feb 2009, 00:32:07]: > > > > It might be better to do this with effects, but it would > > probably further complicate the functions that calculate > > unit upkeep (maybe the upkeep values should only be calculated > > once at the start of each turn and stored with the unit?). > > I tried to implement this: > > - calculate upkeep for all units at the beginning of the turn > - save the upkeep values in the unit struct > - use the saved value > > At the moment the patch does not compile. I don't find the reason for > the following error: > > [ ... ] > In file included from ../unitlist.h:18, > from ../city.h:19, > from aisupport.c:18: > ../unit.h:146: error: ‘num_output_types’ undeclared here (not in a > function) Try O_LAST instead of O_COUNT. ----------------------------------------------------------------------- はいどうぞ、迷路の地図です。 _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev