fixing the knife range when crouched and attacking someone below

http://forum.cubers.net/thread-16-post-2175.html#pid2175

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5258 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-07-01 17:19:21 +00:00
parent 7b4d7f8b1c
commit 5d2d625d52
+1
View File
@@ -1225,6 +1225,7 @@ bool knife::attack(vec &targ)
unitv.mul(3); // punch range
to = from;
to.add(unitv);
if ( owner->pitch < 0 ) to.z += 2.5 * sin( owner->pitch * 0.01745329 );
hits.setsize(0);
raydamage(from, to, owner);