struct worldobjref for sound locations

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2305 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-08-11 18:13:05 +00:00
parent b5413d7480
commit d0ec8225ed
5 changed files with 186 additions and 108 deletions
+2 -2
View File
@@ -481,12 +481,12 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime)
{
if(!pl->lastsplash || lastmillis-pl->lastsplash>500)
{
playsound(S_SPLASH2, NULL, NULL, pl==player1 ? NULL : &pl->o);
playsound(S_SPLASH2, pl);
pl->lastsplash = lastmillis;
}
if(pl==player1) pl->vel.z = 0;
}
else if(pl->inwater && !water) playsound(S_SPLASH1, NULL, NULL, &pl->o);
else if(pl->inwater && !water) playsound(S_SPLASH1, &pl->o);
pl->inwater = water;
// Added by Rick: Easy hack to store previous locations of all players/monsters/bots
if(pl->type==ENT_PLAYER || pl->type==ENT_BOT) ((playerent *)pl)->history.update(pl->o, lastmillis);