Skip to content

Commit

Permalink
minor fixes for the last time!
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusGuy authored Sep 2, 2023
1 parent f10dfe2 commit c35579b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/badguy/goldbomb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ GoldBomb::active_update(float dt_sec)
switch (tstate)
{
case STATE_FLEEING:
// Aah!! They popped up from the other side! Turn around!
// They popped up from the other side! Turn around!
if (m_dir == (vecdist.x > 0 ? Direction::LEFT : Direction::RIGHT)) return;
[[fallthrough]];

Expand Down
7 changes: 4 additions & 3 deletions src/badguy/goldbomb.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,15 @@ class GoldBomb final : public WalkingBadguy
virtual void stop_looping_sounds() override;
virtual void play_looping_sounds() override;

void flee(Direction dir);
void cornered();

bool is_ticking() const { return tstate == STATE_TICKING; }

protected:
virtual bool collision_squished(GameObject& object) override;

private:
void flee(Direction dir);
void cornered();

private:
enum Ticking_State {
STATE_NORMAL,
Expand Down

0 comments on commit c35579b

Please sign in to comment.