diff --git a/include/game/entity_controller.hpp b/include/game/entity_controller.hpp index 1a8d1f7b..5b220ead 100644 --- a/include/game/entity_controller.hpp +++ b/include/game/entity_controller.hpp @@ -236,10 +236,9 @@ private: // Allows extending object-type handling without modifying handler dispatch. struct IObjectTypeHandler { virtual ~IObjectTypeHandler() = default; - virtual void onCreate(const UpdateBlock& /*block*/, std::shared_ptr& /*entity*/, - bool& /*newItemCreated*/) {} - virtual void onValuesUpdate(const UpdateBlock& /*block*/, std::shared_ptr& /*entity*/) {} - virtual void onMovementUpdate(const UpdateBlock& /*block*/, std::shared_ptr& /*entity*/) {} + virtual void onCreate(const UpdateBlock&, std::shared_ptr&, bool&) {} + virtual void onValuesUpdate(const UpdateBlock&, std::shared_ptr&) {} + virtual void onMovementUpdate(const UpdateBlock&, std::shared_ptr&) {} }; struct UnitTypeHandler; struct PlayerTypeHandler; diff --git a/src/game/entity_controller.cpp b/src/game/entity_controller.cpp index 6a9cc826..361e650d 100644 --- a/src/game/entity_controller.cpp +++ b/src/game/entity_controller.cpp @@ -1266,14 +1266,14 @@ struct EntityController::GameObjectTypeHandler : EntityController::IObjectTypeHa struct EntityController::ItemTypeHandler : EntityController::IObjectTypeHandler { EntityController& ctl_; explicit ItemTypeHandler(EntityController& c) : ctl_(c) {} - void onCreate(const UpdateBlock& block, std::shared_ptr& /*entity*/, bool& newItemCreated) override { ctl_.onCreateItem(block, newItemCreated); } + void onCreate(const UpdateBlock& block, std::shared_ptr&, bool& newItemCreated) override { ctl_.onCreateItem(block, newItemCreated); } void onValuesUpdate(const UpdateBlock& block, std::shared_ptr& entity) override { ctl_.onValuesUpdateItem(block, entity); } }; struct EntityController::CorpseTypeHandler : EntityController::IObjectTypeHandler { EntityController& ctl_; explicit CorpseTypeHandler(EntityController& c) : ctl_(c) {} - void onCreate(const UpdateBlock& block, std::shared_ptr& /*entity*/, bool&) override { ctl_.onCreateCorpse(block); } + void onCreate(const UpdateBlock& block, std::shared_ptr&, bool&) override { ctl_.onCreateCorpse(block); } }; // ============================================================