Compilation fixes to latest testpaint

This commit is contained in:
Michał Janiszewski authored and Ted John committed 2016-10-09 09:54:20 +01:00
1 parent 157a93d7a5
commit f1c6ef94da
4 files changed
+3 -11

No files matched your search

+1 -1
View File
@@ -227,7 +227,7 @@ bool track_paint_util_has_fence(enum edge edge, rct_xy16 position, rct_map_eleme
uint16 entranceLoc =
((position.x / 32) + offset.x) |
(((position.y / 32) + offset.y) << 8);
(((position.y / 32) + offset.y) * (1 << 8));
int entranceId = map_get_station(mapElement);
+1 -1
View File
@@ -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)
{
+1 -1
View File
@@ -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);
}
-8
View File
@@ -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;