forked from Ports/perfect_dark
port: net: don't end match locally on the client
This commit is contained in:
1 parent
ebc126f837
commit
7abebe7405
1 file changed
+9
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user