Fix #3504: Improve rendering of money effect

This commit is contained in:
Marijn van der Werf authored and Duncan committed 2016-05-06 12:17:28 +01:00
1 parent a937a65b28
commit 2514ddfc01
3 files changed
+6 -6

No files matched your search

+4 -4
View File
@@ -429,10 +429,10 @@ void sub_685EBC(money32 amount, uint16 string_id, sint16 y, sint16 z, sint8 y_of
ps->string_id = string_id;
ps->next = 0;
ps->args[0] = amount;
ps->args[4] = y;
ps->args[8] = y_offsets;
ps->args[12] = 0;
ps->y_offsets = y_offsets;
ps->args[1] = y;
ps->args[2] = (int) y_offsets;
ps->args[3] = 0;
ps->y_offsets = (uint8 *) y_offsets;
rct_xyz16 position = {.x = RCT2_GLOBAL(0x9DE568, sint16), .y = RCT2_GLOBAL(0x9DE56C, sint16), .z = z};
rct_xy16 coord = coordinate_3d_to_2d(&position, rotation);
+1 -1
View File
@@ -77,7 +77,7 @@ struct paint_string_struct {
paint_string_struct *next; // 0x02
uint16 x; // 0x06
uint16 y; // 0x08
uint8 args[16]; // 0x0A
uint32 args[4]; // 0x0A
uint8 *y_offsets; // 0x1A
};
+1 -1
View File
@@ -60,7 +60,7 @@ void misc_paint(rct_sprite *misc, int imageDirection)
stringId = 1389; // {OUTLINE}{RED}- {CURRENCY}
}
sub_685EBC(amount, stringId, moneyEffect.y, moneyEffect.z, &money_wave[moneyEffect.wiggle % 22], moneyEffect.offset_x, get_current_rotation());
sub_685EBC(amount, stringId, moneyEffect.y, moneyEffect.z, (sint8 *) &money_wave[moneyEffect.wiggle % 22], moneyEffect.offset_x, get_current_rotation());
break;
}