aboutsummaryrefslogtreecommitdiffstats
path: root/src/weapon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/weapon.cpp')
-rw-r--r--src/weapon.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/weapon.cpp b/src/weapon.cpp
index 4e56117..fb871ed 100644
--- a/src/weapon.cpp
+++ b/src/weapon.cpp
@@ -16,8 +16,14 @@ AWeapon::AWeapon(float const rg,
double const& cd,
const char* s,
const char* r,
- std::string const& nm)
- : range(rg), damage(dmg), max(mag), cooldown(cd), name(nm) {
+ std::string const& nm,
+ bool const& hasProj)
+ : range(rg),
+ damage(dmg),
+ max(mag),
+ cooldown(cd),
+ name(nm),
+ hasProjectiles(hasProj) {
shot = LoadSound(s);
reload = LoadSound(r);
SetSoundVolume(shot, 0.3f);