diff options
Diffstat (limited to 'src/weapon.cpp')
-rw-r--r-- | src/weapon.cpp | 10 |
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); |