@ Fixed a bug in the BlockMap class that prevented some lines/things from being added to the blockmap

This commit is contained in:
codeimp 2009-08-14 07:31:07 +00:00
parent 72741d82bf
commit 9d6d86936d

View file

@ -126,7 +126,7 @@ namespace CodeImp.DoomBuilder.Map
// This returns true when the given block is inside range // This returns true when the given block is inside range
public bool IsInRange(Vector2D p) public bool IsInRange(Vector2D p)
{ {
return (p.x >= range.Left) && (p.x < range.Right) && (p.y >= range.Top) && (p.x < range.Bottom); return (p.x >= range.Left) && (p.x < range.Right) && (p.y >= range.Top) && (p.y < range.Bottom);
} }
// This crops a point into the range // This crops a point into the range