aboutsummaryrefslogtreecommitdiffstats
path: root/src/wp_enemyslingshot.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_enemyslingshot.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_enemyslingshot.cpp')
-rw-r--r--src/wp_enemyslingshot.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wp_enemyslingshot.cpp b/src/wp_enemyslingshot.cpp
index 2a212d6..3aa7d4b 100644
--- a/src/wp_enemyslingshot.cpp
+++ b/src/wp_enemyslingshot.cpp
@@ -10,6 +10,8 @@
wp_enemysling::wp_enemysling(const char* s, const char* r)
: AWeapon(300.0f, 10, 10, 0.0, s, r, "sling", false) {}
+wp_enemysling::~wp_enemysling() {}
+
int wp_enemysling::bang(std::vector<Entity>* enemies, Entity* baddie) {
if (barrel == 0) {
return (1);