Skip to content

Commit fc5b0ce

Browse files
committed
Call sync.do_final_checkup() before send_user_choice()
Generating the chackup data before sending the action means that other clients would have the checkup available. (if the "default_checkup" is used the "mp_debug_checkup" also works after the action is sent). Note however that its very possible that the action was already sended before this code is reached, in those cases this change will have no effect.
1 parent d282bb4 commit fc5b0ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/synced_context.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ bool synced_context::run(const std::string& commandname,
7373

7474
resources::controller->check_victory();
7575

76+
sync.do_final_checkup();
77+
7678
// TODO: It would be nice if this could automaticially detect that
7779
// no entry was pushed to the undo stack for this action
7880
// and always clear the undo stack in that case.
@@ -82,8 +84,6 @@ bool synced_context::run(const std::string& commandname,
8284
send_user_choice();
8385
}
8486

85-
sync.do_final_checkup();
86-
8787
DBG_REPLAY << "run_in_synced_context end";
8888
return true;
8989
}

0 commit comments

Comments
 (0)