aboutsummaryrefslogtreecommitdiffstats
path: root/src/weapon.cpp
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-01-06 21:11:01 +0100
committersalaaad2 <arthurdurant263@gmail.com>2022-01-06 21:11:01 +0100
commita3e3264a73cd82de83799b77bfd64c60d6debbd0 (patch)
tree71131aadf38e1a0486576fa800056355001b0c04 /src/weapon.cpp
parentmore dynamic and faster enemy movement (diff)
downloadthreshold-a3e3264a73cd82de83799b77bfd64c60d6debbd0.tar.gz
threshold-a3e3264a73cd82de83799b77bfd64c60d6debbd0.tar.bz2
threshold-a3e3264a73cd82de83799b77bfd64c60d6debbd0.tar.xz
threshold-a3e3264a73cd82de83799b77bfd64c60d6debbd0.tar.zst
threshold-a3e3264a73cd82de83799b77bfd64c60d6debbd0.zip
amazing textures. v0.0.4
Diffstat (limited to '')
-rw-r--r--src/weapon.cpp6
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() {}