fixed a bug that sometimes caused a new drawn inner sector to be missing back references to its parent sector

This commit is contained in:
codeimp 2009-01-01 10:57:21 +00:00
parent 52d54ba473
commit 7b744e730a

View file

@ -162,7 +162,7 @@ namespace CodeImp.DoomBuilder.Geometry
{
// Inside the polygon bounding box?
if((v.Position.x >= bbox.Left) && (v.Position.x <= bbox.Right) &&
(v.Position.x >= bbox.Top) && (v.Position.x <= bbox.Bottom))
(v.Position.y >= bbox.Top) && (v.Position.y <= bbox.Bottom))
{
// More to the right?
if((foundv == null) || (v.Position.x >= foundv.Position.x))