diff --git a/src/menu_events.cpp b/src/menu_events.cpp index d0696001aee..defae2c613c 100644 --- a/src/menu_events.cpp +++ b/src/menu_events.cpp @@ -1943,6 +1943,8 @@ private: if (const command* c = get_command(actual_cmd)) { if (is_enabled(*c)) { (static_cast(this)->*(c->handler))(); + } else { + print(get_cmd(), "This command is currently unavaliable"); } } else if (help_on_unknown_) { print("help", "Unknown command (" + get_cmd() + "), try " + cmd_prefix_ + "help " @@ -2268,7 +2270,8 @@ private: { return std::string(c.has_flag('D') ? " (debug command)" : ""); } - bool is_enabled(const map::command& c) const + using map::is_enabled; + bool is_enabled(const chmap::command& c) const { return !(c.has_flag('D') && !game_config::debug); }