record and replay end_shop_mode

This commit is contained in:
2024-08-30 15:23:18 -05:00
committed by Celtic Minstrel
parent 7a5c865779
commit 342ec3a17e
2 changed files with 6 additions and 0 deletions

View File

@@ -162,6 +162,10 @@ static void update_last_talk(int new_node) {
}
void end_shop_mode() {
if(recording){
record_action("end_shop_mode", "");
}
rectangle dummy_rect = {0,0,0,0};
// This would be a place to show the text box, if I add it (and if this is not an outdoor shop).

View File

@@ -537,6 +537,8 @@ static void replay_next_action() {
word_rect_t word_rect = word_rect_from_action(next_action);
click_talk_rect(word_rect);
handle_talk_node(word_rect.node);
}else if(t == "end_shop_mode"){
end_shop_mode();
}
// TODO some of these actions shouldn't call advance_time(). They should return