Add parameters to sub_98198C

This commit is contained in:
Marijn van der Werf 2016-04-14 10:00:12 +02:00
parent 001dd3bcf6
commit e529532ddd
3 changed files with 10 additions and 3 deletions

View File

@ -288,7 +288,7 @@ bool wooden_a_supports_paint_setup(int supportType, int special, int height, uin
hasSupports = true;
} else {
hasSupports = true;
if (!sub_98198C(imageId, 0, 0, lengthX, lengthY, ah, z, rotation)) {
if (!sub_98198C(imageId, 0, 0, lengthX, lengthY, ah, z, rotation, byte_97B23C[special].var_0, byte_97B23C[special].var_1, byte_97B23C[special].var_2 + z)) {
int edi = RCT2_GLOBAL(0x009DEA58, uint32);
RCT2_GLOBAL(edi + 0x20, uint32) = imageColourFlags;
}

View File

@ -1089,10 +1089,17 @@ int sub_98197C(int image_id, sint8 x_offset, sint8 y_offset, sint16 length_x, si
* @param z_offset (ah)
* @param height (edx)
* @param rotation
* @param word_52 (0x009DEA52)
* @param word_54 (0x009DEA54)
* @param word_56 (0x009DEA56)
* @return ??
*/
int sub_98198C(int image_id, sint8 x_offset, sint8 y_offset, sint16 length_x, sint16 length_y, sint8 z_offset, int height, uint32 rotation)
int sub_98198C(int image_id, sint8 x_offset, sint8 y_offset, sint16 length_x, sint16 length_y, sint8 z_offset, int height, uint32 rotation, uint16 word_52, uint16 word_54, uint16 word_56)
{
RCT2_GLOBAL(0x009DEA52, uint16) = word_52;
RCT2_GLOBAL(0x009DEA54, uint16) = word_54;
RCT2_GLOBAL(0x009DEA56, uint16) = word_56;
RCT2_CALLPROC_X(RCT2_ADDRESS(0x0098198C, uint32)[get_current_rotation()],
x_offset | (z_offset << 8),
image_id,

View File

@ -133,7 +133,7 @@ void sub_688217();
int sub_98196C(int image_id, sint8 x_offset, sint8 y_offset, sint16 length_x, sint16 length_y, sint8 z_offset, int height, uint32 rotation);
int sub_98197C(int image_id, sint8 x_offset, sint8 y_offset, sint16 length_x, sint16 length_y, sint8 z_offset, int height, uint32 rotation);
int sub_98198C(int image_id, sint8 x_offset, sint8 y_offset, sint16 length_x, sint16 length_y, sint8 z_offset, int height, uint32 rotation);
int sub_98198C(int image_id, sint8 x_offset, sint8 y_offset, sint16 length_x, sint16 length_y, sint8 z_offset, int height, uint32 rotation, uint16 word_52, uint16 word_54, uint16 word_56);
int sub_98199C(int image_id, sint8 x_offset, sint8 y_offset, sint16 length_x, sint16 length_y, sint8 z_offset, int height, uint32 rotation);
void viewport_invalidate(rct_viewport *viewport, int left, int top, int right, int bottom);