Fixed, Visual mode: hitbox height of vertex handles was 2x higher than it's supposed to be.

This commit is contained in:
MaxED 2015-03-27 13:18:54 +00:00
parent 07ef66315d
commit fd52810312

View file

@ -60,8 +60,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
SetPosition(pos);
float radius = DEFAULT_SIZE * General.Settings.GZVertexScale3D;
boxp1 = new Vector3D(pos.x - radius, pos.y - radius, pos.z - radius);
boxp2 = new Vector3D(pos.x + radius, pos.y + radius, pos.z + radius);
boxp1 = new Vector3D(pos.x - radius, pos.y - radius, (ceilingVertex ? pos.z - radius : pos.z));
boxp2 = new Vector3D(pos.x + radius, pos.y + radius, (ceilingVertex ? pos.z : pos.z + radius));
changed = false;
}