Lekki refactor
This commit is contained in:
@@ -10,6 +10,7 @@ void Player::shoot() {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Czy strzał prawym musi mieć osobną tablicę z pociskami?
|
||||
void Player::alternate_shoot() {
|
||||
auto now = std::chrono::steady_clock::now();
|
||||
if (std::chrono::duration_cast<std::chrono::milliseconds>(now - lastShotTime).count() >= firerate) {
|
||||
|
||||
Reference in New Issue
Block a user