1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 04:23:20 +01:00

Implemented create_balloon

This commit is contained in:
Gericom
2015-02-27 13:29:57 +01:00
parent baaacfedd3
commit 69545bfbd9

View File

@@ -30,7 +30,20 @@ rct_sprite* g_sprite_list = RCT2_ADDRESS(RCT2_ADDRESS_SPRITE_LIST, rct_sprite);
*/
void create_balloon(int x, int y, int z, int colour)
{
RCT2_CALLPROC_X(0x006736C7, x, colour << 8, y, z, 0, 0, 0);
//RCT2_CALLPROC_X(0x006736C7, x, colour << 8, y, z, 0, 0, 0);
rct_sprite* sprite = create_sprite(2);
if (sprite != NULL)
{
sprite->pad_00[0x14] = 13;
sprite->pad_00[9] = 22;
sprite->pad_00[0x15] = 11;
sprite->pad_00[0] = 2;
sprite_move(x, y, z, sprite);
sprite->pad_00[1] = 7;
*((uint16_t*)&sprite->pad_00[0x26]) = 0;
sprite->pad_00[0x2C] = colour;
sprite->pad_00[0x24] = 0;
}
}
/**