distance restricted grendade bounce sound

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2133 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-05-31 12:22:56 +00:00
parent 2bb0b7f118
commit a5c49a70e3
3 changed files with 14 additions and 7 deletions
+3
View File
@@ -387,6 +387,8 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime)
}
bool collided = false;
vec oldorigin = pl->o;
if(!editfly) loopi(moveres) // discrete steps collision detection & sliding
{
const float f = 1.0f/moveres;
@@ -442,6 +444,7 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime)
}
if(collided) pl->oncollision();
else pl->onmoved(oldorigin.sub(pl->o));
if(pl->type==ENT_CAMERA) return;
else if(pl->type!=ENT_BOUNCE)