made it so you can't create units that are off the map
This commit is contained in:
parent
67a235b73d
commit
c44e408d62
1 changed files with 1 additions and 1 deletions
|
@ -754,7 +754,7 @@ bool turn_info::can_execute_command(hotkey::HOTKEY_COMMAND command) const
|
|||
|
||||
//commands we can only do if in debug mode
|
||||
case hotkey::HOTKEY_CREATE_UNIT:
|
||||
return game_config::debug;
|
||||
return game_config::debug && map_.on_board(last_hex_);
|
||||
|
||||
default:
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue