record and replay debug edit stuff done
This commit is contained in:
@@ -2263,6 +2263,12 @@ bool handle_keystroke(const sf::Event& event, cFramerateLimiter& fps_limiter){
|
||||
|
||||
case 'S':
|
||||
if(!univ.debug_mode) break;
|
||||
// edit_stuff_done() is used in the character editor which
|
||||
// doesn't have replays, so its replay action is recorded
|
||||
// external to the function definition unlike most actions.
|
||||
if(recording){
|
||||
record_action("edit_stuff_done", "");
|
||||
}
|
||||
edit_stuff_done();
|
||||
break;
|
||||
|
||||
|
@@ -127,6 +127,8 @@ void handle_quit_event();
|
||||
void handle_help_toc();
|
||||
void menu_give_help(short help1);
|
||||
|
||||
extern void edit_stuff_done();
|
||||
|
||||
#ifdef __APPLE__
|
||||
eMenuChoice menuChoice=eMenuChoice::MENU_CHOICE_NONE;
|
||||
short menuChoiceId=-1;
|
||||
@@ -513,6 +515,8 @@ static void replay_next_action() {
|
||||
debug_increase_age();
|
||||
}else if(t == "debug_towns_forget"){
|
||||
debug_towns_forget();
|
||||
}else if(t == "edit_stuff_done"){
|
||||
edit_stuff_done();
|
||||
}
|
||||
|
||||
// TODO some of these actions shouldn't call advance_time(). They should return
|
||||
|
Reference in New Issue
Block a user