aboutsummaryrefslogtreecommitdiffstats
path: root/src/wp_shotty.cpp
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-05-27 16:26:01 +0200
committersalaaad2 <arthurdurant263@gmail.com>2022-05-27 16:26:01 +0200
commit8dc03eedfcf24be94f0255c0c9e055dbb83ea092 (patch)
tree4b032f5b17df8da8acb2e41de99afc78a3bcebe2 /src/wp_shotty.cpp
parentupdate readme (diff)
downloadthreshold-8dc03eedfcf24be94f0255c0c9e055dbb83ea092.tar.gz
threshold-8dc03eedfcf24be94f0255c0c9e055dbb83ea092.tar.bz2
threshold-8dc03eedfcf24be94f0255c0c9e055dbb83ea092.tar.xz
threshold-8dc03eedfcf24be94f0255c0c9e055dbb83ea092.tar.zst
threshold-8dc03eedfcf24be94f0255c0c9e055dbb83ea092.zip
less leaks and effective-c++-compatible
Diffstat (limited to 'src/wp_shotty.cpp')
-rw-r--r--src/wp_shotty.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wp_shotty.cpp b/src/wp_shotty.cpp
index f314e54..08f7b71 100644
--- a/src/wp_shotty.cpp
+++ b/src/wp_shotty.cpp
@@ -9,6 +9,8 @@
wp_shotty::wp_shotty(const char* s, const char* r)
: AWeapon(100.0f, 3, 10, 0.5, s, r, "shotty", false) {}
+wp_shotty::~wp_shotty() {}
+
int wp_shotty::bang(std::vector<Entity>* enemies, Entity* player) {
if (barrel == 0 || GetTime() < (t + cooldown)) {
return (1);