diff options
Diffstat (limited to 'src/weapon.cpp')
-rw-r--r-- | src/weapon.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/weapon.cpp b/src/weapon.cpp index ad94605..62e6150 100644 --- a/src/weapon.cpp +++ b/src/weapon.cpp @@ -10,15 +10,15 @@ #include <iostream> -Weapon::Weapon(float const & rg, unsigned int const & dmg, const char *s, const char *r) : - range(rg), damage(dmg) +Weapon::Weapon(float const & rg, unsigned int const & dmg, unsigned int const & mag, const char *s, const char *r) : + range(rg), damage(dmg), max(mag) { InitAudioDevice(); shot = LoadSound(s); reload = LoadSound(r); SetSoundVolume(shot, 0.3f); SetSoundVolume(reload, 0.3f); - max = barrel = 10; + barrel = max; } Weapon::~Weapon() {} |