Fake surface element for mini golf

This commit is contained in:
Marijn van der Werf 2016-09-03 13:33:16 +02:00
parent 16cf28da36
commit bf4258d779
1 changed files with 7 additions and 1 deletions

View File

@ -487,9 +487,14 @@ bool testTrackElement(uint8 rideType, uint8 trackType, utf8string *error) {
uint8 rideIndex = 0;
rct_map_element mapElement = { 0 };
mapElement.properties.track.type = trackType;
mapElement.base_height = 3;
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;
RCT2_GLOBAL(0x00F44198, uint32) = PALETTE_98;
RCT2_GLOBAL(0x00F441A0, uint32) = PALETTE_A0;
@ -521,7 +526,8 @@ bool testTrackElement(uint8 rideType, uint8 trackType, utf8string *error) {
for (int trackSequence = 0; trackSequence < sequenceCount; trackSequence++) {
RCT2_GLOBAL(0x009DE56A, sint16) = 64; // x
RCT2_GLOBAL(0x009DE56E, sint16) = 64; // y
RCT2_GLOBAL(0x9DE57C, bool) = true; // Above surface
RCT2_GLOBAL(0x009DE57C, bool) = true; // Above surface
RCT2_GLOBAL(0x009E3250, rct_map_element *) = &surfaceElement;
callCount = 0;
memset(&calls, sizeof(calls), 0);