mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2024-11-10 06:41:49 +00:00
Cursor position playtest: stop always marking map changed (#605)
This commit is contained in:
parent
e13c836344
commit
8a27615178
1 changed files with 11 additions and 0 deletions
|
@ -83,6 +83,7 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
private Thing playerStart;
|
||||
private Vector3D playerStartPosition;
|
||||
private bool playerStartIsTempThing;
|
||||
private bool mapWasChangedBeforeTest;
|
||||
|
||||
#endregion
|
||||
|
||||
|
@ -723,6 +724,9 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
return false;
|
||||
}
|
||||
|
||||
// Capture whether the map was changed before modifying player things.
|
||||
mapWasChangedBeforeTest = General.Map.IsChanged;
|
||||
|
||||
//find Single Player Start. Should be type 1 in all games
|
||||
Thing start = null;
|
||||
|
||||
|
@ -801,6 +805,13 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
}
|
||||
|
||||
playerStart = null;
|
||||
|
||||
// Restore the value of General.Map.IsChanged before player
|
||||
// things were modified in OnMapTestBegin().
|
||||
if (!mapWasChangedBeforeTest)
|
||||
{
|
||||
General.Map.ForceMapIsChangedFalse();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue