From 45a1a31f0858196481e4f1eca80edb4698fedaa4 Mon Sep 17 00:00:00 2001 From: Ryan Herriman Date: Mon, 4 Dec 2023 21:06:00 -0700 Subject: [PATCH] Hide invisible fields from level previews --- levels/avaraline-strict-mode/alf/bwadi-koth.alf | 1 - levels/avaraline-strict-mode/alf/stratocaster-hss-koth.alf | 1 - levels/avaraline-strict-mode/alf/telecaster-captures.alf | 1 - src/game/CForceField.cpp | 5 +++++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/levels/avaraline-strict-mode/alf/bwadi-koth.alf b/levels/avaraline-strict-mode/alf/bwadi-koth.alf index 00d3cf33e..0b8fdff4d 100644 --- a/levels/avaraline-strict-mode/alf/bwadi-koth.alf +++ b/levels/avaraline-strict-mode/alf/bwadi-koth.alf @@ -12,7 +12,6 @@ pHillW="hillSize" pHillD="hillSize" pHillH="4" - wallYon="0.001" /> diff --git a/levels/avaraline-strict-mode/alf/stratocaster-hss-koth.alf b/levels/avaraline-strict-mode/alf/stratocaster-hss-koth.alf index cfd01311c..fa67a82b2 100644 --- a/levels/avaraline-strict-mode/alf/stratocaster-hss-koth.alf +++ b/levels/avaraline-strict-mode/alf/stratocaster-hss-koth.alf @@ -11,7 +11,6 @@ pHillW="hillSize" pHillD="hillSize" pHillH="4" - wallYon="0.001" /> diff --git a/levels/avaraline-strict-mode/alf/telecaster-captures.alf b/levels/avaraline-strict-mode/alf/telecaster-captures.alf index 958226cb2..2452a13e9 100644 --- a/levels/avaraline-strict-mode/alf/telecaster-captures.alf +++ b/levels/avaraline-strict-mode/alf/telecaster-captures.alf @@ -12,7 +12,6 @@ outerCaptureX="24" outerCaptureY="10" outerCaptureZ="39" - wallYon="0.001" /> isTransparent = !ReadLongVar(iVisible); + if (!ReadLongVar(iVisible)) { + // Force yon when visible is false, to hide from level previews. + partList[0]->yon = FIX(0.001); + partList[0]->usesPrivateYon = true; + } exitMsg = ReadLongVar(iExit); enterMsg = ReadLongVar(iEnter);