]> git.tue.mpg.de Git - paraslash.git/commit
mood: Improve readability of get_item_score().
authorAndre Noll <maan@systemlinux.org>
Wed, 13 Jun 2012 14:38:10 +0000 (16:38 +0200)
committerAndre Noll <maan@systemlinux.org>
Wed, 13 Jun 2012 14:43:15 +0000 (16:43 +0200)
commit4cdf53ccaf94a774be3424763978c56b9bcaf0d1
treefab1a2504edbc115bdc19acb91e6855920296d3a
parentec5040e2e7d3c82e93769b62335fab1e63b0f07c
mood: Improve readability of get_item_score().

This function returns whether the given item matches, so make
it return bool rather than int. This improves readability of
compute_mood_score(), which calls get_item_score() three times,
quite a bit.

No semantic changes.
mood.c