Skip to content
Snippets Groups Projects
Commit d0724c26 authored by toaster's avatar toaster
Browse files

Bring roundsplayed_t into the highest common denominator header

No indirect, hard-to-maintain magic number range in modetimeplayed arrays
parent ee41d309
No related branches found
No related tags found
No related merge requests found
......@@ -590,6 +590,16 @@ UINT32 quickncasehash (const char *p, size_t n)
return x;
}
// m_cond, doomstat
typedef enum {
GDGT_RACE,
GDGT_BATTLE,
GDGT_PRISONS,
GDGT_SPECIAL,
GDGT_CUSTOM,
GDGT_MAX
} roundsplayed_t;
#ifndef __cplusplus
#ifndef min // Double-Check with WATTCP-32's cdefs.h
#define min(x, y) (((x) < (y)) ? (x) : (y))
......
......@@ -124,7 +124,7 @@ struct skinrecord_t
UINT32 wins;
UINT32 rounds;
UINT32 timeplayed;
UINT32 modetimeplayed[5]; // no GDGT_MAX, m_cond.h is not included in here... it might need to be?
UINT32 modetimeplayed[GDGT_MAX];
UINT32 tumbletime;
};
......@@ -167,7 +167,7 @@ struct recorddata_t
recordtimes_t spbattack; ///< Best times for SPB Attack
UINT32 timeplayed;
UINT32 netgametimeplayed;
UINT32 modetimeplayed[5];
UINT32 modetimeplayed[GDGT_MAX];
UINT32 timeattacktimeplayed;
UINT32 spbattacktimeplayed;
UINT32 rounds;
......
......@@ -311,15 +311,6 @@ typedef enum {
GDGONER_DONE,
} gdgoner_t;
typedef enum {
GDGT_RACE,
GDGT_BATTLE,
GDGT_PRISONS,
GDGT_SPECIAL,
GDGT_CUSTOM,
GDGT_MAX
} roundsplayed_t;
struct candata_t
{
UINT16 col;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment