SERVER: Fix hard-coded view ofs restriction for Dolphin Dive

This commit is contained in:
cypress 2024-01-01 15:41:22 -05:00
parent 78ad4ce386
commit e2da52c1f3

View file

@ -1564,7 +1564,10 @@ void() Change_Stance = {
void() dolphin_dive = //naievil void() dolphin_dive = //naievil
{ {
if (self.stance != 2 || self.view_ofs_z != 32) if (self.stance != 2)
return;
if ((map_compatibility_mode == MAP_COMPAT_BETA && self.view_ofs_z != VIEW_OFS_QK[2]) ||
(!map_compatibility_mode && self.view_ofs_z != VIEW_OFS_HL[2]))
return; return;
if (self.flags & FL_WATERJUMP) if (self.flags & FL_WATERJUMP)
return; return;