Skip to content
Snippets Groups Projects
Commit 72741d82 authored by codeimp's avatar codeimp
Browse files

@ Fixed a bug in the BlockMap class that prevented some lines/things from...

@ Fixed a bug in the BlockMap class that prevented some lines/things from being added to the blockmap
parent 20048976
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,7 @@ namespace CodeImp.DoomBuilder.Map
// This returns true when the given block is inside range
protected bool IsInRange(Point p)
{
return (p.X >= 0) && (p.X < size.Width) && (p.Y >= 0) && (p.X < size.Height);
return (p.X >= 0) && (p.X < size.Width) && (p.Y >= 0) && (p.Y < size.Height);
}
// This returns true when the given block is inside range
......@@ -361,7 +361,7 @@ namespace CodeImp.DoomBuilder.Map
float posx, posy;
Point pos, end;
int dirx, diry;
// Get coordinates
v1 = line.Start.Position;
v2 = line.End.Position;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment