grenade floating in water

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1985 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-05-15 20:50:09 +00:00
parent f9f70d1230
commit bc70cfa46f
+5 -1
View File
@@ -464,7 +464,11 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime)
}
// play sounds on water transitions
if(!pl->inwater && water) { playsound(S_SPLASH2, NULL, NULL, &pl->o); pl->vel.z = 0; }
if(!pl->inwater && water)
{
playsound(S_SPLASH2, NULL, NULL, &pl->o);
if(pl==player1) pl->vel.z = 0;
}
else if(pl->inwater && !water) playsound(S_SPLASH1, NULL, NULL, &pl->o);
pl->inwater = water;
// Added by Rick: Easy hack to store previous locations of all players/monsters/bots