mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-02-07 16:31:24 +00:00
Fix bugs with testing from current mouse/camera position.
This commit is contained in:
parent
4958338bbb
commit
b59f8fef63
2 changed files with 11 additions and 4 deletions
|
@ -709,7 +709,7 @@ namespace CodeImp.DoomBuilder.Editing
|
||||||
playerStartPosition = start.Position;
|
playerStartPosition = start.Position;
|
||||||
|
|
||||||
//everything should be valid, let's move player start here
|
//everything should be valid, let's move player start here
|
||||||
start.Move(new Vector3D(mousemappos.x, mousemappos.y, s.FloorHeight));
|
start.Move(new Vector3D(mousemappos.x, mousemappos.y, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -283,11 +283,18 @@ namespace CodeImp.DoomBuilder.VisualModes
|
||||||
Thing start = null;
|
Thing start = null;
|
||||||
foreach(Thing t in General.Map.Map.Things)
|
foreach(Thing t in General.Map.Map.Things)
|
||||||
{
|
{
|
||||||
if(t.SRB2Type == 1)
|
if(t.SRB2Type == 1)
|
||||||
{
|
{
|
||||||
//store thing and position
|
//store thing and position
|
||||||
start = t;
|
if (start == null)
|
||||||
break;
|
{
|
||||||
|
start = t;
|
||||||
|
}
|
||||||
|
else if (t.Index > start.Index)
|
||||||
|
{
|
||||||
|
//if there are several Player Start 1 things, GZDoom uses one with the biggest index.
|
||||||
|
start = t;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue