mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- Fix crash with wind effect on special water sectors.
This commit is contained in:
parent
b7bbfd4efd
commit
12aa7a8ff6
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue