From 649246cda24fdcdb4a13c89561e2cf8b432e886c Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Thu, 9 Feb 2023 22:07:49 -0800 Subject: [PATCH] apply proxy rewrites to 98 as well as 61 --- src/ProxyCommands.cc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/ProxyCommands.cc b/src/ProxyCommands.cc index 5e2d0bc2..fc100320 100644 --- a/src/ProxyCommands.cc +++ b/src/ProxyCommands.cc @@ -1422,11 +1422,17 @@ static HandlerResult S_66_69_E9(shared_ptr, return HandlerResult::Type::FORWARD; } -static HandlerResult C_98(shared_ptr, - ProxyServer::LinkedSession& session, uint16_t, uint32_t, string&) { +static HandlerResult C_98(shared_ptr s, + ProxyServer::LinkedSession& session, uint16_t command, uint32_t flag, string& data) { session.area = 0x0F; session.is_in_game = false; - return HandlerResult::Type::FORWARD; + if (session.version == GameVersion::GC || + session.version == GameVersion::XB || + session.version == GameVersion::BB) { + return C_GXB_61(s, session, command, flag, data); + } else { + return HandlerResult::Type::FORWARD; + } } static HandlerResult C_06(shared_ptr s,