Skip to content

Commit

Permalink
- Fix crash with wind effect on special water sectors.
Browse files Browse the repository at this point in the history
  • Loading branch information
drfrag666 authored and coelckers committed Mar 10, 2021
1 parent b7bbfd4 commit 12aa7a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/playsim/mapthinkers/a_pusher.cpp
Expand Up @@ -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
}
}
}
Expand Down

0 comments on commit 12aa7a8

Please sign in to comment.