Skip to content

Commit c6099f9

Browse files
committed
Early exit if match_start_time has already been set.
1 parent f1561e3 commit c6099f9

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/main.qc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,15 +321,12 @@ void() CSQC_WorldLoaded =
321321
322322
void() CSQC_ServerInfoChanged =
323323
{
324-
string status = serverkey("status");
325-
326-
if (!strcasecmp(status, "standby") || !strcasecmp(status, "countdown")) {
327-
PipResetTimers(match_start_time);
328-
SelectNextCamera();
324+
if (match_start_time > 0.0f) {
329325
return;
330326
}
331327
332-
if (match_start_time > 0.0f) {
328+
string status = serverkey("status");
329+
if (!strcasecmp(status, "standby") || !strcasecmp(status, "countdown")) {
333330
return;
334331
}
335332

0 commit comments

Comments
 (0)