diff --git a/code/cgame/cg_public.h b/code/cgame/cg_public.h index e89bd149..0420d59f 100644 --- a/code/cgame/cg_public.h +++ b/code/cgame/cg_public.h @@ -67,7 +67,7 @@ extern "C" { typedef struct stopWatch_s { int iStartTime; int iEndTime; - + int eType; } stopWatch_t; typedef struct AliasList_s AliasList_t; diff --git a/code/cgame/cg_servercmds.c b/code/cgame/cg_servercmds.c index a5caed19..a092c75c 100644 --- a/code/cgame/cg_servercmds.c +++ b/code/cgame/cg_servercmds.c @@ -241,6 +241,13 @@ static void CG_Stopwatch_f() if (cg_protocol >= PROTOCOL_MOHTA_MIN) { cgi.stopWatch->iStartTime = atoi(cgi.Argv(1)); + + if (cgi.Argc() > 3) { + cgi.stopWatch->eType = atoi(cgi.Argv(3)); + } else { + // Normal stop watch + cgi.stopWatch->eType = SWT_NORMAL; + } } else { // The base game has it wrong cgi.stopWatch->iStartTime = 1000 * atoi(cgi.Argv(1)); diff --git a/code/fgame/bg_public.h b/code/fgame/bg_public.h index ab1a077c..8b93fe35 100644 --- a/code/fgame/bg_public.h +++ b/code/fgame/bg_public.h @@ -574,6 +574,12 @@ movement on the server game. TEAM_AXIS } teamtype_t; + typedef enum { + SWT_NORMAL, + SWT_FUSE, + SWT_FUSE_WET + } stopWatchType_t; + // How many players on the overlay #define TEAM_MAXOVERLAY 32