From db8fc1c22c0bdeeb54d3d36b3af5b5594add9459 Mon Sep 17 00:00:00 2001 From: MatusGuy Date: Sun, 8 Dec 2024 21:40:35 +0000 Subject: [PATCH] Prevent darttrap from being pushed around by rocks and such --- src/badguy/darttrap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/badguy/darttrap.cpp b/src/badguy/darttrap.cpp index c81ebcce828..5c7f78a9916 100644 --- a/src/badguy/darttrap.cpp +++ b/src/badguy/darttrap.cpp @@ -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(), @@ -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;