Skip to content

Commit cdbd4d8

Browse files
committed
Use -1 as match_start_time reset value.
1 parent c6099f9 commit cdbd4d8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main.qc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#define MASK_XRAY (1<<3)
2323
#define MASK_LOCAL (1<<4)
2424

25-
var float match_start_time = 0;
25+
var float match_start_time = -1;
2626
var int camera_index = -1;
2727
var float camera_intro = 4.0;
2828
var float camera_outro = 2.5;
@@ -76,7 +76,7 @@ void() ResetCamera =
7676

7777
void() SelectNextCamera =
7878
{
79-
if (!match_start_time) {
79+
if (match_start_time == -1) {
8080
return;
8181
}
8282

@@ -308,10 +308,10 @@ void() CSQC_WorldLoaded =
308308
deltalisten("progs/player.mdl", PipNewPlayer, 0);
309309
}
310310
311-
match_start_time = 0;
311+
match_start_time = -1;
312312
313313
ResetCamera();
314-
PipResetTimers(0);
314+
PipResetTimers(match_start_time);
315315
316316
if (PipLoadItems()) {
317317
deltalisten("progs/quaddama.mdl", PipPowerupSpawnListener, RSES_NOLERP);
@@ -321,7 +321,7 @@ void() CSQC_WorldLoaded =
321321
322322
void() CSQC_ServerInfoChanged =
323323
{
324-
if (match_start_time > 0.0f) {
324+
if (match_start_time >= 0.0f) {
325325
return;
326326
}
327327

0 commit comments

Comments
 (0)