don't let zones positions be at the same spot

This commit is contained in:
rtldg 2021-07-15 08:44:32 +00:00
parent ca6ad88b7b
commit 57e6f9563d

View File

@ -2517,8 +2517,13 @@ public Action Shavit_OnUserCmdPre(int client, int &buttons, int &impulse, float
ShowPanel(client, 2);
}
else if(gI_MapStep[client] == 2)
{
if (origin[0] == gV_Point1[client][0] || origin[1] == gV_Point1[client][1])
{
ShowPanel(client, 2);
}
else
{
origin[2] += gCV_Height.FloatValue;
gV_Point2[client] = origin;
@ -2528,14 +2533,10 @@ public Action Shavit_OnUserCmdPre(int client, int &buttons, int &impulse, float
CreateEditMenu(client);
}
}
gB_Button[client] = true;
}
}
else
{
gB_Button[client] = false;
}
gB_Button[client] = (buttons & button) > 0;
}
if(InsideZone(client, Zone_Slide, (gCV_EnforceTracks.BoolValue)? track:-1) && GetEntPropEnt(client, Prop_Send, "m_hGroundEntity") == -1)