diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2022-01-11 17:06:20 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2022-01-11 17:06:20 +0100 |
commit | 59d902df725c2d6a1b7cad016326ca51316b937f (patch) | |
tree | eae43bbc5d3faf3799fe242f1648115e17a9df67 /src/weapon.cpp | |
parent | clang-format chromium test (diff) | |
download | threshold-59d902df725c2d6a1b7cad016326ca51316b937f.tar.gz threshold-59d902df725c2d6a1b7cad016326ca51316b937f.tar.bz2 threshold-59d902df725c2d6a1b7cad016326ca51316b937f.tar.xz threshold-59d902df725c2d6a1b7cad016326ca51316b937f.tar.zst threshold-59d902df725c2d6a1b7cad016326ca51316b937f.zip |
clang format blind letsgo !
Diffstat (limited to '')
-rw-r--r-- | src/weapon.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/weapon.cpp b/src/weapon.cpp index b52d830..6f52217 100644 --- a/src/weapon.cpp +++ b/src/weapon.cpp @@ -10,14 +10,13 @@ #include <iostream> -AWeapon::AWeapon(float const rg, - unsigned int const & dmg, - unsigned int const & mag, - double const & cd, - const char *s, - const char *r) : - range(rg), damage(dmg), max(mag), cooldown(cd) -{ +AWeapon::AWeapon(float const rg, + unsigned int const& dmg, + unsigned int const& mag, + double const& cd, + const char* s, + const char* r) + : range(rg), damage(dmg), max(mag), cooldown(cd) { shot = LoadSound(s); reload = LoadSound(r); SetSoundVolume(shot, 0.3f); @@ -27,8 +26,7 @@ AWeapon::AWeapon(float const rg, AWeapon::~AWeapon() {} -void AWeapon::refill() -{ +void AWeapon::refill() { std::cout << "reload" << std::endl; PlaySound(reload); barrel = max; |