Huge refactoring v3

master
Vectozavr 2021-10-29 22:21:24 +07:00
parent 0913c45743
commit 005869bc87
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ void PlayerController::update() {
bool shot = _player->fire(); bool shot = _player->fire();
if(shot) { if(shot) {
if(!_player->inCollision() && (_player->weaponName() == ObjectNameTag("shotgun"))) { if(_player->weaponName() == ObjectNameTag("shotgun")) {
_player->addVelocity(-camera->lookAt() * 30 * coeff); _player->addVelocity(-camera->lookAt() * 30 * coeff);
} }
} }