Debug action: crash the game
This commit is contained in:
@@ -954,6 +954,8 @@ static void replay_action(Element& action) {
|
||||
clear_trapped_monst();
|
||||
}else if(t == "error"){
|
||||
// The error is recorded for debugging only. It should be triggered by replaying the actions.
|
||||
}else if(t == "debug_crash"){
|
||||
debug_crash();
|
||||
}else if(t == "advance_time"){
|
||||
// This is bad regardless of strictness, because visual changes may have occurred which won't get redrawn/reprinted
|
||||
throw std::string { "Replay system internal error! advance_time() was supposed to be called by the last action, but wasn't: " } + _last_action_type;
|
||||
|
Reference in New Issue
Block a user