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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user