mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Move painting for SteamParticle entity
This commit is contained in:
@@ -257,8 +257,11 @@ void SteamParticle::Serialise(DataSerialiser& stream)
|
||||
stream << time_to_move;
|
||||
}
|
||||
|
||||
void SteamParticle::Paint() const
|
||||
void SteamParticle::Paint(paint_session* session, int32_t imageDirection) const
|
||||
{
|
||||
// TODO: Create constant in sprites.h
|
||||
uint32_t imageId = 22637 + (frame / 256);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, z }, { 1, 1, 0 });
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -74,5 +74,5 @@ struct SteamParticle : EntityBase
|
||||
static void Create(const CoordsXYZ& coords);
|
||||
void Update();
|
||||
void Serialise(DataSerialiser& stream);
|
||||
void Paint() const;
|
||||
void Paint(paint_session* session, int32_t imageDirection) const;
|
||||
};
|
||||
|
||||
@@ -24,12 +24,6 @@ static constexpr const int8_t money_wave[] = {
|
||||
0, 1, 2, 2, 3, 3, 3, 3, 2, 2, 1, 0, -1, -2, -2, -3, -3, -3, -3, -2, -2, -1,
|
||||
};
|
||||
|
||||
template<> void PaintEntity(paint_session* session, const SteamParticle* particle, int32_t imageDirection)
|
||||
{
|
||||
uint32_t imageId = 22637 + (particle->frame / 256);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, particle->z }, { 1, 1, 0 });
|
||||
}
|
||||
|
||||
template<> void PaintEntity(paint_session* session, const MoneyEffect* moneyEffect, int32_t imageDirection)
|
||||
{
|
||||
rct_drawpixelinfo* dpi = &session->DPI;
|
||||
|
||||
Reference in New Issue
Block a user