From d23775f069039d71c57b2426cd8cf4e1df8ef78d Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sat, 15 Jun 2024 10:18:19 -0700 Subject: [PATCH] use overlay for 07ED command --- src/ReceiveCommands.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ReceiveCommands.cc b/src/ReceiveCommands.cc index 60aa3228..fe1ec9bd 100644 --- a/src/ReceiveCommands.cc +++ b/src/ReceiveCommands.cc @@ -3663,22 +3663,21 @@ static void on_E5_BB(shared_ptr c, uint16_t, uint32_t, string& data) { } static void on_ED_BB(shared_ptr c, uint16_t command, uint32_t, string& data) { - auto p = c->character(true, false); auto sys = c->system_file(); switch (command) { case 0x01ED: { const auto& cmd = check_size_t(data); - p->option_flags = cmd.option_flags; + c->character(true, false)->option_flags = cmd.option_flags; break; } case 0x02ED: { const auto& cmd = check_size_t(data); - p->symbol_chats = cmd.symbol_chats; + c->character(true, false)->symbol_chats = cmd.symbol_chats; break; } case 0x03ED: { const auto& cmd = check_size_t(data); - p->shortcuts = cmd.chat_shortcuts; + c->character(true, false)->shortcuts = cmd.chat_shortcuts; break; } case 0x04ED: { @@ -3695,17 +3694,18 @@ static void on_ED_BB(shared_ptr c, uint16_t command, uint32_t, string& d } case 0x06ED: { const auto& cmd = check_size_t(data); - p->tech_menu_shortcut_entries = cmd.tech_menu; + // TODO: Should this use the overlay or not? + c->character(true, false)->tech_menu_shortcut_entries = cmd.tech_menu; break; } case 0x07ED: { const auto& cmd = check_size_t(data); - p->disp.config = cmd.customize; + c->character()->disp.config = cmd.customize; break; } case 0x08ED: { const auto& cmd = check_size_t(data); - p->challenge_records = cmd.records; + c->character(true, false)->challenge_records = cmd.records; break; } default: