]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Weapons.cpp
Refactor of weapon throwing in Weapon class. (named it thrown as throw is reserved...
[lugaru.git] / Source / Weapons.cpp
index 4b7936ae94ba75a5013346487cc98e04abe8f8df..5207997b005a07629198a69f4167c2ee9ddf1044 100644 (file)
@@ -1092,6 +1092,13 @@ void Weapon::drop(XYZ v, XYZ tv, bool sethitsomething)
     physics = 1;
 }
 
+void Weapon::thrown(XYZ v, bool sethitsomething)
+{
+    drop(v, v, sethitsomething);
+    missed = 0;
+    physics = 0;
+}
+
 int Weapons::Draw()
 {
     glAlphaFunc(GL_GREATER, 0.9);