Follow-up Comment #4, patch #3943 (project wesnoth):
Hmm... actually, the complexity of this is not bad, if you take a less
controlling approach. I've attached a file with a simpler implementation that
you might want to consider. Instead of grouping hexes into nine collections, I
gave each hex its own set of probabilities for what directions it might face.
On the surface, this probably sounds more complex since there are more
possibilities, but this allows a calculation instead of a branching
assignment.
(Note: If my patch was intended for committing instead of demonstrating, I
should have given my new function appropriate header comments.)
(file #18153)
_______________________________________________________
Additional Item Attachment:
File name: simpler.patch Size:1 KB
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?3943>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs