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

@@ -46,10 +46,10 @@ DLLEXPORT int STDCALL SaveRestoreState(void *file_ptr, uint8_t saving_state);
#define ID_SHIELD_ORB 0x00 // shield id
#define ID_ENERGY_ORB 0x01 // energy id
#define MAX_IDS 0x02 // maximum number of IDs
typedef struct {
struct tScriptInfo {
int id;
const char *name;
} tScriptInfo;
};
tScriptInfo ScriptInfo[MAX_IDS] = {{ID_SHIELD_ORB, "Shield"}, {ID_ENERGY_ORB, "Energy"}};
@@ -63,9 +63,9 @@ protected:
bool called;
};
typedef struct {
struct tShieldOrbInfo {
int hitcount;
} tShieldOrbInfo;
};
//------------------
// Shield orb script
//------------------