mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-20 19:02:12 +00:00
Cursor position playtest: Fix spawning sector height check (#604)
This commit is contained in:
parent
0fb187fcbe
commit
f652678f35
1 changed files with 3 additions and 2 deletions
|
@ -721,8 +721,9 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
return false;
|
||||
}
|
||||
|
||||
//41 = player's height in Doom. Is that so in all other games as well?
|
||||
if (s.CeilHeight - s.FloorHeight < 41)
|
||||
// Spawning sector height isn't too low to cause a stuck player.
|
||||
int playerheight = General.Map.Config.ReadSetting("thingtypes.players.height", 56);
|
||||
if (s.CeilHeight - s.FloorHeight < playerheight)
|
||||
{
|
||||
General.MainWindow.DisplayStatus(StatusType.Warning, "Can't test from current position: sector is too low!");
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue