Allows the founding father selection to be postponed without an error message. We can choose to force the choice to be made before the turn has ended, but that is currently not implemented.

This commit is contained in:
Stian Grenborgen 2023-04-23 10:58:44 +02:00
parent 1a1cb33420
commit 9981570e24
1 changed files with 7 additions and 1 deletions

View File

@ -3060,7 +3060,13 @@ public final class InGameController extends FreeColClientHolder {
*/
private boolean chooseFoundingFather(List<FoundingFather> ffs,
FoundingFather ff) {
if (ffs == null) return false;
if (ffs == null) {
return false;
}
if (ff == null) {
// The player has postponed the selection.
return false;
}
final Player player = getMyPlayer();
player.setCurrentFather(ff);