]> git.pond.sub.org Git - empserver/commit
update: Drop unnecessary "not simulation" guards
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 3 Jun 2016 21:09:56 +0000 (23:09 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 17:59:57 +0000 (19:59 +0200)
commit1c0ff91e6242b1ed47699d64aa20176e1c275f04
tree2d287cf7032ecc5ee8c6c4546089558c199b47b9
parent157892b449eb239ba18734477abb798f13e5eb3c
update: Drop unnecessary "not simulation" guards

Since changing *sp is safe now, we can update sp->sct_work,
sp->sct_loyal, sp->sct-che unconditionally in do_feed(), and likewise
sp->sct_item and sp's resource in produce().

Output of budget in smoke test and update test changes slightly,
because it now executes more code, and the PRNs this consumes affect
random rounding.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/update/human.c
src/lib/update/produce.c
tests/update/journal.log