Made [inspect] tag work even without debug mode.

This commit is contained in:
Iurii Chernyi 2011-01-02 21:27:00 +00:00
parent 76994d00ef
commit eadf7d01aa
2 changed files with 3 additions and 4 deletions

View file

@ -40,6 +40,7 @@ Version 1.9.3+svn:
* Unit types, units, and unit effects, can use small_profile= in
addition to profile= to precisely describe portrait locations.
* New ~BG(color) modifier for setting the background color of an image.
* Made [inspect] tag work even without debug mode.
* Miscellaneous and bugfixes:
* Fix --data-dir command line option
* Better detect mouse button state when window is activated.

View file

@ -739,10 +739,8 @@ WML_HANDLER_FUNCTION(store_time_of_day, /*event_info*/, cfg)
WML_HANDLER_FUNCTION(inspect, /*event_info*/, cfg)
{
if (game_config::debug) {
gui2::tgamestate_inspector inspect_dialog(cfg);
inspect_dialog.show(resources::screen->video());
}
gui2::tgamestate_inspector inspect_dialog(cfg);
inspect_dialog.show(resources::screen->video());
}
WML_HANDLER_FUNCTION(modify_ai, /*event_info*/, cfg)