fix: don't play hard landing sounds on water transitions

fixes issue #57
This commit is contained in:
ac-stef
2014-05-24 17:42:56 +02:00
parent b29a6616e6
commit b246e6e153
+1 -1
View File
@@ -476,7 +476,7 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime)
}
}
if(timeinair > 200 && !pl->timeinair)
if(timeinair > 200 && !pl->timeinair && pl->inwater == water)
{
int sound = timeinair > 800 ? S_HARDLAND : S_SOFTLAND;
if(pl->state!=CS_DEAD)