diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2022-01-14 14:12:14 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2022-01-14 14:12:14 +0100 |
commit | f3b2fcb95f0eb21d3b1e5977659c6447ccffeb82 (patch) | |
tree | 6899f16faabe3210989792de92c8b021f112d78a /src/weapon.cpp | |
parent | boss has the correct textures (diff) | |
download | threshold-f3b2fcb95f0eb21d3b1e5977659c6447ccffeb82.tar.gz threshold-f3b2fcb95f0eb21d3b1e5977659c6447ccffeb82.tar.bz2 threshold-f3b2fcb95f0eb21d3b1e5977659c6447ccffeb82.tar.xz threshold-f3b2fcb95f0eb21d3b1e5977659c6447ccffeb82.tar.zst threshold-f3b2fcb95f0eb21d3b1e5977659c6447ccffeb82.zip |
strange behavior... I WILL find out whats going on !
Diffstat (limited to 'src/weapon.cpp')
-rw-r--r-- | src/weapon.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/weapon.cpp b/src/weapon.cpp index 6f52217..a8553e3 100644 --- a/src/weapon.cpp +++ b/src/weapon.cpp @@ -15,8 +15,9 @@ AWeapon::AWeapon(float const rg, unsigned int const& mag, double const& cd, const char* s, - const char* r) - : range(rg), damage(dmg), max(mag), cooldown(cd) { + const char* r, + std::string const & nm) + : range(rg), damage(dmg), max(mag), cooldown(cd), name(nm) { shot = LoadSound(s); reload = LoadSound(r); SetSoundVolume(shot, 0.3f); |