Skip to content

Commit

Permalink
Update image paths in stalactite.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Rusty-Box authored Jul 29, 2023
1 parent 282668d commit 7fdbe07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/badguy/stalactite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static const float SHAKE_TIME = .8f;
static const float SHAKE_RANGE_Y = 400;

Stalactite::Stalactite(const ReaderMapping& mapping) :
BadGuy(mapping, "images/creatures/stalactite/stalactite.sprite", LAYER_TILES - 1),
BadGuy(mapping, "images/creatures/stalactite/stalactite_ice.sprite", LAYER_TILES - 1),
timer(),
state(STALACTITE_HANGING),
shake_delta(0.0f, 0.0f)
Expand Down Expand Up @@ -163,7 +163,7 @@ void
Stalactite::on_type_change(int old_type)
{
if (!has_found_sprite()) // Change sprite only if a custom sprite has not just been loaded.
change_sprite("images/creatures/stalactite/" + std::string(m_type == StalactiteType::ROCK ? "rock_" : "") + "stalactite.sprite");
change_sprite("images/creatures/stalactite/stalactite" + std::string(m_type == StalactiteType::ROCK ? "_rock" : "") + ".sprite");
}

void
Expand Down

0 comments on commit 7fdbe07

Please sign in to comment.