mood.c: Simplify and rename load_mood().
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 8 Mar 2022 22:08:23 +0000 (23:08 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 17 Oct 2022 18:36:21 +0000 (20:36 +0200)
commit5ae1a5bb9732d777f856d5bb003585f81e3c519a
tree24b763ff94f358f826d9edcb9f11c7135e5fea23
parentc2245032a47304586180cb64bfa00dc6974467a7
mood.c: Simplify and rename load_mood().

We first turn the given mood name into a row of the mood table, then
get the mood definition from the row. It's equivalent and much easier
to call mood_get_def_by_name() instead.

Rename the function because init_mood_parser() tells the reader
what the function actually does.
mood.c