port: net: don't end match locally on the client

This commit is contained in:
fgsfds committed 2023-12-28 11:58:38 +01:00
1 parent ebc126f837
commit 7abebe7405
1 file changed
+9
+9
View File
@@ -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();
}
@@ -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();
}