From 057e0d24bf16051e3a2f1ccf4ebed049f77fe9c6 Mon Sep 17 00:00:00 2001 From: ZPL Date: Thu, 29 Aug 2024 21:07:39 -0500 Subject: [PATCH] Fix spectating. --- payload/wwfcSecurity.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/payload/wwfcSecurity.cpp b/payload/wwfcSecurity.cpp index f6c0f4d..1f0938c 100644 --- a/payload/wwfcSecurity.cpp +++ b/payload/wwfcSecurity.cpp @@ -281,25 +281,6 @@ static bool IsMatchHeaderPacketDataValid( } } - if (!NetController::Instance()->inVanillaRaceScene()) { - return true; - } - - MatchHeaderHandler::Packet::Course currentCourse = - matchHeaderPacket->course; - if (currentCourse != MatchHeaderHandler::Packet::Course::None) { - Course course = static_cast(currentCourse); - if (scenario->isOnlineVersusRace()) { - if (!IsRaceCourse(course)) { - return false; - } - } else /* if (scenario->isOnlineBattle()) */ { - if (!IsBattleCourse(course)) { - return false; - } - } - } - return true; }