mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-09 12:08:12 +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 {
|
typedef struct stopWatch_s {
|
||||||
int iStartTime;
|
int iStartTime;
|
||||||
int iEndTime;
|
int iEndTime;
|
||||||
|
int eType;
|
||||||
} stopWatch_t;
|
} stopWatch_t;
|
||||||
|
|
||||||
typedef struct AliasList_s AliasList_t;
|
typedef struct AliasList_s AliasList_t;
|
||||||
|
|
|
@ -241,6 +241,13 @@ static void CG_Stopwatch_f()
|
||||||
|
|
||||||
if (cg_protocol >= PROTOCOL_MOHTA_MIN) {
|
if (cg_protocol >= PROTOCOL_MOHTA_MIN) {
|
||||||
cgi.stopWatch->iStartTime = atoi(cgi.Argv(1));
|
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 {
|
} else {
|
||||||
// The base game has it wrong
|
// The base game has it wrong
|
||||||
cgi.stopWatch->iStartTime = 1000 * atoi(cgi.Argv(1));
|
cgi.stopWatch->iStartTime = 1000 * atoi(cgi.Argv(1));
|
||||||
|
|
|
@ -574,6 +574,12 @@ movement on the server game.
|
||||||
TEAM_AXIS
|
TEAM_AXIS
|
||||||
} teamtype_t;
|
} teamtype_t;
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
SWT_NORMAL,
|
||||||
|
SWT_FUSE,
|
||||||
|
SWT_FUSE_WET
|
||||||
|
} stopWatchType_t;
|
||||||
|
|
||||||
// How many players on the overlay
|
// How many players on the overlay
|
||||||
#define TEAM_MAXOVERLAY 32
|
#define TEAM_MAXOVERLAY 32
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue