Server: Prohibit dive action if player's camera is not reset.

Fixes an issue where diving while the camera was resetting would, over
time, make the default "standing" camera lower.
This commit is contained in:
Steam Deck User 2022-12-22 10:20:18 -05:00
parent c2ad06a796
commit 950c072fa1

View file

@ -2054,7 +2054,7 @@ void() Change_Stance = {
void() dolphin_dive = //naievil
{
if (self.stance != 2)
if (self.stance != 2 || self.view_ofs_z != 32)
return;
if (self.flags & FL_WATERJUMP)
return;