clonks do not attempt to scale underwater (#1176)

Controls
Maikel de Vries 2015-03-26 19:52:11 +01:00
parent 9c60cf0949
commit fce2bce58e
1 changed files with 3 additions and 3 deletions

View File

@ -3079,7 +3079,7 @@ void C4Object::ContactAction()
break;
case DFA_SWIM:
// Try corner scale out
if (!GBackLiquid(GetX(),GetY()-1+Def->Float*Con/FullCon-1))
if (!GBackSemiSolid(GetX(),GetY()-1+Def->Float*Con/FullCon-1))
if (ObjectActionCornerScale(this)) return;
break;
}
@ -3149,7 +3149,7 @@ void C4Object::ContactAction()
return;
case DFA_SWIM:
// Only scale if swimming at the surface
if (!GBackLiquid(GetX(),GetY()-1+Def->Float*Con/FullCon-1))
if (!GBackSemiSolid(GetX(),GetY()-1+Def->Float*Con/FullCon-1))
{
// Try scale, only if swimming at the surface.
if (ComDirLike(Action.ComDir, COMD_Left))
@ -3203,7 +3203,7 @@ void C4Object::ContactAction()
return;
case DFA_SWIM:
// Only scale if swimming at the surface
if (!GBackLiquid(GetX(),GetY()-1+Def->Float*Con/FullCon-1))
if (!GBackSemiSolid(GetX(),GetY()-1+Def->Float*Con/FullCon-1))
{
// Try scale
if (ComDirLike(Action.ComDir, COMD_Right))