mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-04 20:00:04 -04:00
Modernize struct/enum/unions type declarations
This commit is contained in:
@@ -664,11 +664,11 @@ $$END
|
||||
*/
|
||||
|
||||
// Enter your custom script code here
|
||||
typedef struct {
|
||||
struct tTextureInfo {
|
||||
const char *room_name;
|
||||
int room_id;
|
||||
int face_num;
|
||||
} tTextureInfo;
|
||||
};
|
||||
|
||||
#define NUM_MONITORS 11
|
||||
|
||||
@@ -680,10 +680,10 @@ tTextureInfo texture_info[NUM_MONITORS] = {
|
||||
{"Dock Console", 0, 50}, {"West Dock Console", 0, 50}, {"Room 69", 0, 125},
|
||||
{"Room 82", 0, 125}, {"Control DataTerm", 0, 50}};
|
||||
|
||||
typedef struct {
|
||||
struct tMatcenInfo {
|
||||
const char *matcen_name;
|
||||
int matcen_id;
|
||||
} tMatcenInfo;
|
||||
};
|
||||
|
||||
#define NUM_MATCENS 14
|
||||
|
||||
@@ -844,10 +844,10 @@ void aUpdateBypassConnDisplay(const char *text, int level) {
|
||||
#define WHITESPACE_CHARS " \t\r\n"
|
||||
|
||||
// Structure for storing a script message
|
||||
typedef struct {
|
||||
struct tScriptMessage {
|
||||
char *name; // the name of the message
|
||||
char *message; // the actual message text
|
||||
} tScriptMessage;
|
||||
};
|
||||
|
||||
// Global storage for level script messages
|
||||
tScriptMessage *message_list[MAX_SCRIPT_MESSAGES];
|
||||
|
||||
Reference in New Issue
Block a user