From d58e24cd8467d26fb56e9497870ed402f15abf09 Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 15 Jul 2025 13:56:44 +0200 Subject: [PATCH] declare all the kart "time" stuff as const as far as i can see those never get overwritten and cant be overwritten --- src/doomstat.h | 26 +++++++++++++------------- src/g_game.c | 26 +++++++++++++------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/doomstat.h b/src/doomstat.h index 09102a772..df7e53ab4 100644 --- a/src/doomstat.h +++ b/src/doomstat.h @@ -447,19 +447,19 @@ extern UINT16 spacetimetics; extern UINT16 extralifetics; // SRB2kart -extern tic_t introtime; -extern tic_t starttime; -extern tic_t raceexittime; -extern tic_t battleexittime; -extern INT32 hyudorotime; -extern INT32 stealtime; -extern INT32 sneakertime; -extern INT32 itemtime; -extern INT32 comebacktime; -extern INT32 bumptime; -extern INT32 wipeoutslowtime; -extern INT32 wantedreduce; -extern INT32 wantedfrequency; +extern const tic_t introtime; +extern const tic_t starttime; +extern const tic_t raceexittime; +extern const tic_t battleexittime; +extern const INT32 hyudorotime; +extern const INT32 stealtime; +extern const INT32 sneakertime; +extern const INT32 itemtime; +extern const INT32 comebacktime; +extern const INT32 bumptime; +extern const INT32 wipeoutslowtime; +extern const INT32 wantedreduce; +extern const INT32 wantedfrequency; extern UINT8 introtoplay; extern UINT8 creditscutscene; diff --git a/src/g_game.c b/src/g_game.c index a442c8814..67292cb48 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -196,19 +196,19 @@ UINT16 spacetimetics = 11*TICRATE + (TICRATE/2); UINT16 extralifetics = 4*TICRATE; // SRB2kart -tic_t introtime = 108+5; // plus 5 for white fade -tic_t starttime = 6*TICRATE + (3*TICRATE/4); -tic_t raceexittime = 5*TICRATE + (2*TICRATE/3); -tic_t battleexittime = 8*TICRATE; -INT32 hyudorotime = 7*TICRATE; -INT32 stealtime = TICRATE/2; -INT32 sneakertime = TICRATE + (TICRATE/3); -INT32 itemtime = 8*TICRATE; -INT32 comebacktime = 10*TICRATE; -INT32 bumptime = 6; -INT32 wipeoutslowtime = 20; -INT32 wantedreduce = 5*TICRATE; -INT32 wantedfrequency = 10*TICRATE; +const tic_t introtime = 108+5; // plus 5 for white fade +const tic_t starttime = 6*TICRATE + (3*TICRATE/4); +const tic_t raceexittime = 5*TICRATE + (2*TICRATE/3); +const tic_t battleexittime = 8*TICRATE; +const INT32 hyudorotime = 7*TICRATE; +const INT32 stealtime = TICRATE/2; +const INT32 sneakertime = TICRATE + (TICRATE/3); +const INT32 itemtime = 8*TICRATE; +const INT32 comebacktime = 10*TICRATE; +const INT32 bumptime = 6; +const INT32 wipeoutslowtime = 20; +const INT32 wantedreduce = 5*TICRATE; +const INT32 wantedfrequency = 10*TICRATE; INT32 gameovertics = 15*TICRATE;