Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Fixed post effect being registered in Travel
Browse files Browse the repository at this point in the history
  • Loading branch information
Causeless committed Nov 20, 2023
1 parent fdd94f7 commit ac055c1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Entities/MOSParticle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,14 @@ namespace RTE {
}
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

void MOSParticle::Update() {
MOSprite::Update();

if (m_pScreenEffect) { SetPostScreenEffectToDraw(); }
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

void MOSParticle::Draw(BITMAP *targetBitmap, const Vector &targetPos, DrawMode mode, bool onlyPhysical) const {
Expand Down
5 changes: 5 additions & 0 deletions Entities/MOSParticle.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ namespace RTE {
/// <returns>Whether the MOSParticle should immediately halt any travel going on after this sinkage.</returns>
bool OnSink(HitData &hd) override { return false; }

/// <summary>
/// Updates this MOParticle. Supposed to be done every frame.
/// </summary>
void Update() override;

/// <summary>
/// Draws this MOSParticle's current graphical representation to a BITMAP of choice.
/// </summary>
Expand Down

0 comments on commit ac055c1

Please sign in to comment.