mirror of https://github.com/ZDoom/gzdoom.git
- Fix crash with wind effect on special water sectors.
This commit is contained in:
parent
b7bbfd4efd
commit
12aa7a8ff6
|
@ -272,13 +272,13 @@ void DPusher::Tick ()
|
|||
{
|
||||
pushvel = m_PushVec; // full force
|
||||
}
|
||||
else if (thing->player->viewz < ht) // underwater
|
||||
else if (thing->player && thing->player->viewz < ht) // underwater
|
||||
{
|
||||
pushvel.Zero(); // no force
|
||||
}
|
||||
else // wading in water
|
||||
{
|
||||
pushvel = m_PushVec / 2; // full force
|
||||
pushvel = m_PushVec / 2; // half force
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue