1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Fixed extern and enum name usage

This commit is contained in:
LRFLEW
2015-12-16 14:48:27 -06:00
parent 7ddcb765c0
commit d769a13206
11 changed files with 12 additions and 12 deletions

View File

@@ -44,7 +44,6 @@ void *gCrowdSoundChannel = 0;
bool gGameSoundsOff = false;
void *gRainSoundChannel = 0;
rct_ride_music gRideMusicList[AUDIO_MAX_RIDE_MUSIC];
rct_ride_music_info *gRideMusicInfoList[NUM_DEFAULT_MUSIC_TRACKS];
rct_ride_music_params gRideMusicParamsList[AUDIO_MAX_RIDE_MUSIC];
rct_ride_music_params *gRideMusicParamsListEnd;
void *gTitleMusicChannel = 0;

View File

@@ -45,6 +45,7 @@ typedef struct argparse argparse_t;
typedef int (*cmdline_action)(const char **argv, int argc);
int gExitCode = 0;
int sprite_mode;
#ifndef DISABLE_NETWORK
int gNetworkStart = NETWORK_MODE_NONE;

View File

@@ -26,7 +26,7 @@
/** The exit code for OpenRCT2 when it exits. */
extern int gExitCode;
int sprite_mode;
extern int sprite_mode;
extern int gNetworkStart;
extern char gNetworkStartHost[128];

View File

@@ -458,7 +458,7 @@ enum {
WC_STAFF = 220,
WC_EDITOR_TRACK_BOTTOM_TOOLBAR = 221,
WC_EDITOR_SCENARIO_BOTTOM_TOOLBAR = 222,
} WINDOW_CLASS;
};
enum PROMPT_MODE {
PM_SAVE_BEFORE_LOAD = 0,

View File

@@ -502,7 +502,7 @@ enum {
extern const uint8 RCT1ColourConversionTable[32];
const uint8 gRideCategories[0x60];
extern const uint8 gRideCategories[0x60];
bool rct1_read_sc4(const char *path, rct1_s4 *s4);
bool rct1_read_sv4(const char *path, rct1_s4 *s4);

View File

@@ -35,7 +35,7 @@ enum {
TITLE_SCRIPT_SPEED,
TITLE_SCRIPT_LOOP,
TITLE_SCRIPT_ENDLOOP
} TITLE_SCRIPT_COMMANDS;
};
extern sint32 gTitleScriptCommand;
extern uint8 gTitleScriptSave;

View File

@@ -25,7 +25,7 @@
#include "../util/util.h"
#include "../network/network.h"
char _password[33];
static char _password[33];
enum WINDOW_NETWORK_STATUS_WIDGET_IDX {
WIDX_BACKGROUND,

View File

@@ -28,9 +28,9 @@
#include "../util/util.h"
#include "error.h"
char _port[7];
char _name[65];
char _password[33];
static char _port[7];
static char _name[65];
static char _password[33];
enum {
WIDX_BACKGROUND,

View File

@@ -41,7 +41,7 @@ enum{
BANNER_FLAG_NO_ENTRY = (1 << 0),
BANNER_FLAG_1 = (1 << 1),
BANNER_FLAG_2 = (1 << 2)
} BANNER_FLAGS;
};
extern rct_banner *gBanners;

View File

@@ -85,7 +85,7 @@ int climate_celsius_to_fahrenheit(int celsius)
}
// cheats
extern int g_climate_locked;
int g_climate_locked;
extern void toggle_climate_lock();
/**

View File

@@ -54,7 +54,7 @@ typedef struct {
extern const rct_weather climate_weather_data[6];
// cheats
int g_climate_locked;
extern int g_climate_locked;
void toggle_climate_lock();
int climate_celsius_to_fahrenheit(int celsius);