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:
parent
2c0416135e
commit
6b70720318
8 changed files with 80 additions and 46 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue