Skip to content

Commit

Permalink
port: net: don't end match locally on the client
Browse files Browse the repository at this point in the history
  • Loading branch information
fgsfdsfgs committed Dec 28, 2023
1 parent ebc126f commit 7abebe7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/game/lv.c
Original file line number Diff line number Diff line change
Expand Up @@ -2246,6 +2246,9 @@ void lvTick(void)

if (elapsed < TICKS(g_MpTimeLimit60) && nexttime >= TICKS(g_MpTimeLimit60)) {
// Match is ending due to time limit reached
#ifndef PLATFORM_N64
if (g_NetMode != NETMODE_CLIENT)
#endif
mainEndStage();
}

Expand Down Expand Up @@ -2299,6 +2302,12 @@ void lvTick(void)
}
}

#ifndef PLATFORM_N64
if (g_NetMode == NETMODE_CLIENT) {
g_NumReasonsToEndMpMatch = 0;
}
#endif

if (g_NumReasonsToEndMpMatch > 0 && numdying == 0) {
mainEndStage();
}
Expand Down

0 comments on commit 7abebe7

Please sign in to comment.