<URL: http://bugs.freeciv.org/Ticket/Display.html?id=34734 >

On Sun, 28 Jan 2007, Marko Lindqvist wrote:
> This names steps of the happiness calculation. So when one wants to
> check if another building could help happiness, one checks
> ppl_unhappy[CITY_HAPPY_BUILDINGS] and not ppl_unhappy[2].

I am not sure this makes the code more easily understood. Seeing the index 
value immediately instead of having to look up the macro value has its 
benefits.

It could use some more documentation, though.

   - Per

"The world owes you nothing. It was here first." -- Mark Twain



_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to