Skip to content

Commit

Permalink
Prevent darttrap from being pushed around by rocks and such
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusGuy committed Dec 8, 2024
1 parent c2e6b76 commit db8fc1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/badguy/darttrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "util/reader_mapping.hpp"

DartTrap::DartTrap(const ReaderMapping& reader) :
StickyBadguy(reader, "images/creatures/darttrap/granito/darttrap_granito.sprite", get_allowed_directions()[0], LAYER_TILES-1, COLGROUP_MOVING),
StickyBadguy(reader, "images/creatures/darttrap/granito/darttrap_granito.sprite", get_allowed_directions()[0], LAYER_TILES-1, COLGROUP_DISABLED),
m_enabled(true),
m_initial_delay(),
m_fire_delay(),
Expand All @@ -44,12 +44,12 @@ DartTrap::DartTrap(const ReaderMapping& reader) :
reader.get("fire-delay", m_fire_delay, 2.0f);
reader.get("ammo", m_ammo, -1);
reader.get("dart-sprite", m_dart_sprite, "images/creatures/darttrap/granito/root_dart.sprite");
set_colgroup_active(COLGROUP_DISABLED);

m_countMe = false;
SoundManager::current()->preload("sounds/dartfire.wav");
if (m_start_dir == Direction::AUTO) { log_warning << "Setting a DartTrap's direction to AUTO is no good idea" << std::endl; }
m_state = IDLE;
set_group(COLGROUP_DISABLED);

if (!Editor::is_active()) {
if (m_initial_delay == 0) m_initial_delay = 0.1f;
Expand Down

0 comments on commit db8fc1c

Please sign in to comment.