Added stopwatch type

This commit is contained in:
smallmodel 2023-08-10 19:31:39 +02:00
parent 307ee117bd
commit fc7029c271
No known key found for this signature in database
GPG key ID: A96F163ED4891440
3 changed files with 14 additions and 1 deletions

View file

@ -67,7 +67,7 @@ extern "C" {
typedef struct stopWatch_s {
int iStartTime;
int iEndTime;
int eType;
} stopWatch_t;
typedef struct AliasList_s AliasList_t;

View file

@ -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));

View file

@ -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