Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions Sources/Client/Client_Update.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,6 @@ namespace spades {
winp.primary = false;
winp.secondary = false;
}

// stop firing if the player is out of ammo
if (player->GetWeapon()->GetAmmo() == 0) {
winp.primary = false;
}
}

player->SetInput(inp);
Expand Down
2 changes: 1 addition & 1 deletion Sources/Client/Weapon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ namespace spades {
world->GetListener()->PlayerFiredWeapon(owner);
}
nextShotTime += GetDelay();
} else if (time >= nextShotTime) {
} else {
dryFire = true;
}
shootingPreviously = true;
Expand Down