empserver/src/lib/update
Markus Armbruster 16f9a393c4 budget: Track sector expenses in nat_budget[]
The update summarizes sector production, building and maintenance for
budget in a two-dimensional array int p_sect[SCT_BUDG_MAX+1][2].  All
references into this array use literals as second subscript.  Bzzzt,
wrong data type.

Add two one-dimensional arrays to nat_budget[], one for production,
and one for building and maintenance.  p_sect[i] becomes
nat_budget[cnum].prod[i] for production, and .bm[j] for building and
maintenance.  p_sect[i][0] becomes .count, and -p_sect[i][1] becomes
.money.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-06 20:00:00 +02:00
..
age.c include: Move update stuff from prototypes.h to update.h 2017-08-06 19:59:59 +02:00
anno.c include: Move update stuff from prototypes.h to update.h 2017-08-06 19:59:59 +02:00
bp.c include: Rename budg.h to update.h 2017-08-06 19:59:59 +02:00
deliver.c include: Move update stuff from prototypes.h to update.h 2017-08-06 19:59:59 +02:00
distribute.c include: Merge distribute.h into update.h 2017-08-06 19:59:59 +02:00
finish.c include: Merge distribute.h into update.h 2017-08-06 19:59:59 +02:00
human.c include: Move update stuff from prototypes.h to update.h 2017-08-06 19:59:59 +02:00
land.c include: Rename budg.h to update.h 2017-08-06 19:59:59 +02:00
main.c budget: Track sector expenses in nat_budget[] 2017-08-06 20:00:00 +02:00
material.c include: Move update stuff from prototypes.h to update.h 2017-08-06 19:59:59 +02:00
mobility.c include: Move update stuff from prototypes.h to update.h 2017-08-06 19:59:59 +02:00
move_sat.c include: Move update stuff from prototypes.h to update.h 2017-08-06 19:59:59 +02:00
nat.c include: Rename budg.h to update.h 2017-08-06 19:59:59 +02:00
nxtitemp.c include: Drop update.h 2017-08-06 19:59:59 +02:00
plague.c include: Move update stuff from prototypes.h to update.h 2017-08-06 19:59:59 +02:00
plane.c include: Rename budg.h to update.h 2017-08-06 19:59:59 +02:00
populace.c include: Move update stuff from prototypes.h to update.h 2017-08-06 19:59:59 +02:00
prepare.c budget: Fix military count (but not yet their pay) 2017-08-06 19:59:59 +02:00
produce.c include: Rename budg.h to update.h 2017-08-06 19:59:59 +02:00
removewants.c include: Move update stuff from prototypes.h to update.h 2017-08-06 19:59:59 +02:00
revolt.c include: Move update stuff from prototypes.h to update.h 2017-08-06 19:59:59 +02:00
sect.c budget: Track sector expenses in nat_budget[] 2017-08-06 20:00:00 +02:00
ship.c include: Rename budg.h to update.h 2017-08-06 19:59:59 +02:00