wesnoth/wesnoth-old — pull request #29 by Coffee-- (2013-06-22 11:49:03+00:00)
Title: Coffee recruitment facing direction

For Fabi, et al.

This pull request adds an initial recruitment facing direction, instead of the old random direction. It works like so:

If an enemy unit is visible, the one with the shortest distance - unit level is chosen and the direction of the new recruit faces this visible enemy unit. Otherwise, the newly recruited unit faces towards the centre, but with increasing randomness as the map coordinates approach the centre, where it may face in any direction.