record and replay debug trigger victory
This commit is contained in:
@@ -1160,7 +1160,10 @@ void handle_get_items(bool& did_something, bool& need_redraw, bool& need_reprint
|
||||
need_reprint = true;
|
||||
}
|
||||
|
||||
static void handle_victory() {
|
||||
void handle_victory(bool record) {
|
||||
if(record && recording){
|
||||
record_action("handle_victory", "");
|
||||
}
|
||||
end_scenario = false;
|
||||
// This is the point at which we need to transfer any exported graphics over to the party sheet.
|
||||
univ.exportGraphics();
|
||||
@@ -2213,7 +2216,7 @@ bool handle_keystroke(const sf::Event& event, cFramerateLimiter& fps_limiter){
|
||||
|
||||
case 'N':
|
||||
if(!univ.debug_mode) break;
|
||||
handle_victory();
|
||||
handle_victory(true);
|
||||
break;
|
||||
|
||||
case 'O':
|
||||
|
@@ -84,5 +84,6 @@ void debug_stealth_detect_life_firewalk();
|
||||
void debug_fly();
|
||||
void debug_ghost_mode();
|
||||
void debug_return_to_start();
|
||||
void handle_victory(bool record = false);
|
||||
|
||||
#endif
|
||||
|
@@ -507,6 +507,8 @@ static void replay_next_action() {
|
||||
debug_ghost_mode();
|
||||
}else if(t == "debug_return_to_start"){
|
||||
debug_return_to_start();
|
||||
}else if(t == "handle_victory"){
|
||||
handle_victory();
|
||||
}
|
||||
|
||||
// TODO some of these actions shouldn't call advance_time(). They should return
|
||||
|
Reference in New Issue
Block a user