*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@961 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-04-15 19:31:15 +00:00
parent 5fcd3a4ec4
commit 6e8dc54356
+1 -1
View File
@@ -29,7 +29,7 @@ struct weaponmove
float k = pow(0.7f, (lastmillis-lastsway)/10.0f);
swaydir.mul(k);
swaydir.add(vec(player1->vel).mul((1-k)/player1->maxspeed));
swaydir.add(vec(player1->vel).mul((1-k)/max(player1->vel.magnitude(), player1->maxspeed)));
pos.add(swaydir);
if(player1->onfloor || player1->onladder || player1->inwater) swaymillis += lastmillis-lastsway;
lastsway = lastmillis;