little inWater fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6394 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Bukz
2011-04-29 17:19:55 +00:00
parent eab210240a
commit b0a5672ad5
+1 -1
View File
@@ -768,7 +768,7 @@ void crouch(bool on)
int inWater(int type = 0)
{
if(type ? hdr.waterlevel > player1->o.z : hdr.waterlevel > (player1->o.z - player1->eyeheight)) return 1;
if(hdr.waterlevel > (type ? player1->o.z : (player1->o.z - player1->eyeheight))) return 1;
else return 0;
}