mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Compilation fixes to latest testpaint
This commit is contained in:
committed by
Ted John
parent
157a93d7a5
commit
f1c6ef94da
@@ -237,7 +237,7 @@ private:
|
||||
{ 19, TRACK_ELEM_RIGHT_LARGE_HALF_LOOP_DOWN, TRACK_ELEM_RIGHT_LARGE_HALF_LOOP_UP },
|
||||
};
|
||||
|
||||
for (int i = 0; i < (sizeof(mirrorTable) / sizeof(mirrorTable[0])); i++)
|
||||
for (size_t i = 0; i < (sizeof(mirrorTable) / sizeof(mirrorTable[0])); i++)
|
||||
{
|
||||
if (mirrorTable[i][1] == trackType)
|
||||
{
|
||||
|
||||
@@ -430,7 +430,7 @@ static void printFunctionCall(utf8string *out, function_call call) {
|
||||
|
||||
static void printFunctionCallArray(utf8string *out, function_call calls[], uint8 count) {
|
||||
for (int i = 0; i < count; i++) {
|
||||
utf8string callOut = malloc(128);
|
||||
utf8string callOut = malloc(1024);
|
||||
printFunctionCall(&callOut, calls[i]);
|
||||
sprintf(*out + strlen(*out), "%s\n", callOut);
|
||||
}
|
||||
|
||||
@@ -481,10 +481,6 @@ namespace Intercept2
|
||||
|
||||
g_currently_drawn_item = &mapElement;
|
||||
|
||||
rct_map_element surfaceElement = {0};
|
||||
surfaceElement.type = MAP_ELEMENT_TYPE_SURFACE;
|
||||
surfaceElement.base_height = 2;
|
||||
|
||||
gPaintInteractionType = VIEWPORT_INTERACTION_ITEM_RIDE;
|
||||
gTrackColours[SCHEME_TRACK] = DEFAULT_SCHEME_TRACK;
|
||||
gTrackColours[SCHEME_SUPPORTS] = DEFAULT_SCHEME_SUPPORTS;
|
||||
@@ -677,10 +673,6 @@ namespace Intercept2
|
||||
|
||||
g_currently_drawn_item = &mapElement;
|
||||
|
||||
rct_map_element surfaceElement = {0};
|
||||
surfaceElement.type = MAP_ELEMENT_TYPE_SURFACE;
|
||||
surfaceElement.base_height = 2;
|
||||
|
||||
gPaintInteractionType = VIEWPORT_INTERACTION_ITEM_RIDE;
|
||||
gTrackColours[SCHEME_TRACK] = DEFAULT_SCHEME_TRACK;
|
||||
gTrackColours[SCHEME_SUPPORTS] = DEFAULT_SCHEME_SUPPORTS;
|
||||
|
||||
Reference in New Issue
Block a user