From 59d902df725c2d6a1b7cad016326ca51316b937f Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Tue, 11 Jan 2022 17:06:20 +0100 Subject: clang format blind letsgo ! --- src/weapon.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'src/weapon.cpp') 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 -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; -- cgit v1.2.3