From 005869bc87fed159e116aec1d06005899a3c14f9 Mon Sep 17 00:00:00 2001 From: Vectozavr <60608292+vectozavr@users.noreply.github.com> Date: Fri, 29 Oct 2021 22:21:24 +0700 Subject: [PATCH] Huge refactoring v3 --- PlayerController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PlayerController.cpp b/PlayerController.cpp index 31505b1..26c908d 100644 --- a/PlayerController.cpp +++ b/PlayerController.cpp @@ -115,7 +115,7 @@ void PlayerController::update() { bool shot = _player->fire(); if(shot) { - if(!_player->inCollision() && (_player->weaponName() == ObjectNameTag("shotgun"))) { + if(_player->weaponName() == ObjectNameTag("shotgun")) { _player->addVelocity(-camera->lookAt() * 30 * coeff); } }