Nation-specific starting units can start on non-native terrain, or on hut tile
While looking at init_new_game() for bug #767127, I noticed that standard player start units are placed with place_starting_unit(), which finds the nearest tile the unit type can exist on and gets rid of any hut there; but nation-specific start units don't benefit from this. Probably there's no good reason for the difference?
#2 Updated by Marko Lindqvist 12 months ago
- File 0005-Use-place_starting_unit-to-place-nation-specific-sta.patch 0005-Use-place_starting_unit-to-place-nation-specific-sta.patch added
- File 0001-Use-place_starting_unit-to-place-nation-specific-sta.patch 0001-Use-place_starting_unit-to-place-nation-specific-sta.patch added
- Status changed from New to Resolved
- Target version set to 2.5.12
Jacob Nevins wrote:
Probably there's no good reason for the difference?
Probably it was that way since create_starting_unit() took unit role while nation specific start units are already a specific unit type. Changed create_starting_unit() to work with either.