aboutsummaryrefslogtreecommitdiffstats
path: root/src/weapon.cpp
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-01-14 14:12:14 +0100
committersalaaad2 <arthurdurant263@gmail.com>2022-01-14 14:12:14 +0100
commitf3b2fcb95f0eb21d3b1e5977659c6447ccffeb82 (patch)
tree6899f16faabe3210989792de92c8b021f112d78a /src/weapon.cpp
parentboss has the correct textures (diff)
downloadthreshold-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.cpp5
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);