made it so you can't create units that are off the map

This commit is contained in:
uid68803 2004-02-20 15:42:53 +00:00
parent 67a235b73d
commit c44e408d62

View file

@ -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;