]> git.tuebingen.mpg.de Git - paraslash.git/commit
Clean up and rename change_current_mood().
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 8 Mar 2022 17:46:07 +0000 (18:46 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 17 Oct 2022 18:36:21 +0000 (20:36 +0200)
commitc5fe75ac10d83b071187ee17dabf7df5d4bf0709
treeae6d9bb27f1ec349601da3ced256afb2f1a6b48b
parent5ae1a5bb9732d777f856d5bb003585f81e3c519a
Clean up and rename change_current_mood().

Move the code which destroys the current mood to the end of the
function so that we can still return to the old mood if something
goes awry.

To make this work, various functions need to be adjusted to no longer
refer to to afs statistics via the global current_mood pointer. Pass
a pointer to the statistics structure to those.

Also get rid of the local mood pointer variable in favor of ->m of
struct admissible_array.

Rename the function because it is public and deserves the mood_ prefix.
afs.c
mood.c
mood.h
mp.c