New option AUTO_POWER; closes #1009993:

(opt_AUTO_POWER, update_power): New.
(update_main): Implement AUTO_POWER.
(powe): Disable power new when AUTO_POWER is on.

(powe): New power update.
(gen_power): Compute power into buffer passed by caller, make write to
power file optional.
This commit is contained in:
Markus Armbruster 2006-12-31 16:56:34 +00:00
parent 2c0416135e
commit 6b70720318
8 changed files with 80 additions and 46 deletions

View file

@ -79,6 +79,10 @@ update_main(void *unused)
player->proc = empth_self();
player->cnum = 0;
player->god = 1;
if (opt_AUTO_POWER)
update_power();
/*
* set up all the variables which get used in the
* sector production routine (for producing education,