Fix Cut 1 findings: Polygon2D 256px terrain bake, spectator LOS memory leak, steep slope/biped physics, and HUD polish

This commit is contained in:
Meta Vens 2026-12-04 15:41:02 +01:00
commit af6604da80
9 changed files with 458 additions and 69 deletions

View file

@ -133,7 +133,15 @@ public partial class Main : Node3D
Reset(_seed + 1);
break;
case Key.Escape:
if (DisplayServer.GetName() != "headless")
if (_hud.GarageExpanded)
{
_hud.ToggleGarage();
if (DisplayServer.GetName() != "headless")
{
Input.MouseMode = Input.MouseModeEnum.Visible;
}
}
else if (DisplayServer.GetName() != "headless")
{
Input.MouseMode = Input.MouseMode == Input.MouseModeEnum.Captured
? Input.MouseModeEnum.Visible