mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-09 20:18:17 +03:00
Added stopwatch type
This commit is contained in:
parent
307ee117bd
commit
fc7029c271
3 changed files with 14 additions and 1 deletions
|
@ -67,7 +67,7 @@ extern "C" {
|
|||
typedef struct stopWatch_s {
|
||||
int iStartTime;
|
||||
int iEndTime;
|
||||
|
||||
int eType;
|
||||
} stopWatch_t;
|
||||
|
||||
typedef struct AliasList_s AliasList_t;
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue