added a message when trying to perform an impossible skip-turn

This commit is contained in:
Zeno Rogue 2019-06-24 12:58:10 +02:00
parent fcb7308aa4
commit 084a7d0469
1 changed files with 4 additions and 1 deletions

View File

@ -122,8 +122,11 @@ namespace dual {
movepcto(d, subdir, false); movepcto(d, subdir, false);
if(k == 0) turncount--; if(k == 0) turncount--;
} }
if(!ok) {
addMessage(XLAT("Impossible."));
}
switch_to(cg); switch_to(cg);
return true; return ok;
} }
bool lms[2][5]; bool lms[2][5];