Revert 2012-11-29T01:43:29Z!jt_coding@verizon.net

(block_undo) -- functionality now appears to be unnecessary.
This commit is contained in:
J. Tyne 2012-11-29 02:28:34 +00:00
parent 725a3ad046
commit e6471a58c1

View file

@ -22,7 +22,6 @@
#include "actions/create.hpp"
#include "actions/move.hpp"
#include "actions/undo.hpp"
#include "actions/vision.hpp"
#include "ai/manager.hpp"
#include "dialogs.hpp"
@ -2655,14 +2654,6 @@ WML_HANDLER_FUNCTION(allow_undo,/*event_info*/,/*cfg*/)
current_context->mutated = false;
}
// Block undo lets WML simulate the player performing a non-undoable action.
// This can cause sighted events to immediately fire.
WML_HANDLER_FUNCTION(block_undo, /*event_info*/, /*cfg*/)
{
resources::undo_stack->clear();
resources::undo_stack->clear_redo();
}
WML_HANDLER_FUNCTION(open_help, /*event_info*/, cfg)
{
game_display &screen = *resources::screen;