add parent pointers to eliminate code duplication in many places

This commit is contained in:
Martin Michelsen
2023-09-19 22:15:41 -07:00
parent adad870aff
commit 2eb429436f
25 changed files with 1668 additions and 1705 deletions
+2 -2
View File
@@ -569,7 +569,7 @@ Proxy session commands:\n\
if (tourn) {
tourn->start();
this->state->ep3_tournament_index->save();
tourn->send_all_state_updates(this->state);
tourn->send_all_state_updates();
send_ep3_text_message_printf(this->state, "$C7The tournament\n$C6%s$C7\nhas begun", tourn->get_name().c_str());
fprintf(stderr, "tournament started\n");
} else {
@@ -625,7 +625,7 @@ Proxy session commands:\n\
if (c) {
if (command_name[1] == 's') {
on_command_with_header(this->state, c, data);
on_command_with_header(c, data);
} else {
send_command_with_header(c->channel, data.data(), data.size());
}