Modernize struct/enum/unions type declarations

This commit is contained in:
GravisZro
2024-05-30 03:35:17 -04:00
parent 0ff98a7d07
commit f7ae658fe2
324 changed files with 1870 additions and 1861 deletions

View File

@@ -62,10 +62,10 @@ static const char *GetStringFromTable(int index) {
#define ID_FALLINGROCK 5
#define ID_LAVAROCK 6
typedef struct {
struct tScriptInfo {
int id;
const char *name;
} tScriptInfo;
};
static tScriptInfo ScriptIDs[] = {{ID_FRAGCRATE, "fragcrate"},
{ID_NAPALMBARREL, "napalmbarrel"},
@@ -97,10 +97,10 @@ public:
int16_t CallEvent(int event, tOSIRISEventInfo *data);
};
typedef struct {
struct tTNTHighYield {
vector last_vel;
float lifetime;
} tTNTHighYield;
};
class TNTHighYield : public ClutterScript {
public:
TNTHighYield() { memory = NULL; }
@@ -115,9 +115,9 @@ public:
float *memory;
};
typedef struct {
struct tFallingRock {
float lifeleft;
} tFallingRock;
};
class FallingRock : public ClutterScript {
public:
FallingRock() { memory = NULL; }