Skip to content

Commit

Permalink
Fix spectating.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacharyPL committed Aug 30, 2024
1 parent a45f162 commit 057e0d2
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions payload/wwfcSecurity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Course>(currentCourse);
if (scenario->isOnlineVersusRace()) {
if (!IsRaceCourse(course)) {
return false;
}
} else /* if (scenario->isOnlineBattle()) */ {
if (!IsBattleCourse(course)) {
return false;
}
}
}

return true;
}

Expand Down

0 comments on commit 057e0d2

Please sign in to comment.