mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-04 05:32:54 +01:00
Fix #3504: Improve rendering of money effect
This commit is contained in:
committed by
Duncan
parent
a937a65b28
commit
2514ddfc01
@@ -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);
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user