1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 01:04:50 +01:00

Initialise all variables flagged by -Wmaybe-uninitialized

This commit is contained in:
Michał Janiszewski
2016-10-06 23:08:47 +02:00
parent 63ce7170c6
commit c9b0d9e24d
12 changed files with 24 additions and 26 deletions

View File

@@ -179,7 +179,7 @@ void screenshot_giant()
int centreX = (mapSize / 2) * 32 + 16;
int centreY = (mapSize / 2) * 32 + 16;
int x, y;
int x = 0, y = 0;
int z = map_element_height(centreX, centreY) & 0xFFFF;
switch (rotation) {
case 0:
@@ -254,7 +254,7 @@ int cmdline_for_screenshot(const char **argv, int argc)
bool customLocation = false;
bool centreMapX = false;
bool centreMapY = false;
int resolutionWidth, resolutionHeight, customX, customY, customZoom, customRotation;
int resolutionWidth, resolutionHeight, customX = 0, customY = 0, customZoom, customRotation;
const char *inputPath = argv[0];
const char *outputPath = argv[1];
@@ -320,7 +320,7 @@ int cmdline_for_screenshot(const char **argv, int argc)
if (centreMapY)
customY = (mapSize / 2) * 32 + 16;
int x, y;
int x = 0, y = 0;
int z = map_element_height(customX, customY) & 0xFFFF;
switch (customRotation) {
case 0: