forked from rosebudai/OpenRCT2-Web
Make sprite_misc_explosion_flare_create use CoordsXYZ
This commit is contained in:
1 parent
2e31a7d64d
commit
f329644dd5
4 files changed
+5
-5
No files matched your search
@@ -715,7 +715,7 @@ void Guest::Tick128UpdateGuest(int32_t index)
|
||||
audio_play_sound_at_location(SoundId::Crash, { x, y, z });
|
||||
|
||||
sprite_misc_explosion_cloud_create({ x, y, z + 16 });
|
||||
sprite_misc_explosion_flare_create(x, y, z + 16);
|
||||
sprite_misc_explosion_flare_create({ x, y, z + 16 });
|
||||
|
||||
Remove();
|
||||
return;
|
||||
|
||||
@@ -5295,7 +5295,7 @@ void Vehicle::CrashOnLand()
|
||||
audio_play_sound_at_location(SoundId::Crash, { x, y, z });
|
||||
|
||||
sprite_misc_explosion_cloud_create({ x, y, z });
|
||||
sprite_misc_explosion_flare_create(x, y, z);
|
||||
sprite_misc_explosion_flare_create({ x, y, z });
|
||||
|
||||
uint8_t numParticles = std::min(sprite_width, static_cast<uint8_t>(7));
|
||||
|
||||
|
||||
@@ -554,7 +554,7 @@ static void sprite_misc_explosion_cloud_update(rct_sprite* sprite)
|
||||
*
|
||||
* rct2: 0x0067366B
|
||||
*/
|
||||
void sprite_misc_explosion_flare_create(int32_t x, int32_t y, int32_t z)
|
||||
void sprite_misc_explosion_flare_create(const CoordsXYZ& flarePos)
|
||||
{
|
||||
SpriteGeneric* sprite = &create_sprite(SPRITE_IDENTIFIER_MISC)->generic;
|
||||
if (sprite != nullptr)
|
||||
@@ -563,7 +563,7 @@ void sprite_misc_explosion_flare_create(int32_t x, int32_t y, int32_t z)
|
||||
sprite->sprite_height_negative = 85;
|
||||
sprite->sprite_height_positive = 8;
|
||||
sprite->sprite_identifier = SPRITE_IDENTIFIER_MISC;
|
||||
sprite->MoveTo({ x, y, z + 4 });
|
||||
sprite->MoveTo(flarePos + CoordsXYZ{ 0, 0, 4 });
|
||||
sprite->type = SPRITE_MISC_EXPLOSION_FLARE;
|
||||
sprite->frame = 0;
|
||||
}
|
||||
|
||||
@@ -223,7 +223,7 @@ void litter_create(int32_t x, int32_t y, int32_t z, int32_t direction, int32_t t
|
||||
void litter_remove_at(int32_t x, int32_t y, int32_t z);
|
||||
uint16_t remove_floating_sprites();
|
||||
void sprite_misc_explosion_cloud_create(const CoordsXYZ& cloudPos);
|
||||
void sprite_misc_explosion_flare_create(int32_t x, int32_t y, int32_t z);
|
||||
void sprite_misc_explosion_flare_create(const CoordsXYZ& flarePos);
|
||||
uint16_t sprite_get_first_in_quadrant(int32_t x, int32_t y);
|
||||
void sprite_position_tween_store_a();
|
||||
void sprite_position_tween_store_b();
|
||||
|
||||
Reference in new issue
Block a user