Skip to content

Commit

Permalink
Merge pull request #371 from rherriman/hide-fields-in-preview
Browse files Browse the repository at this point in the history
Hide invisible fields from level previews
  • Loading branch information
rherriman authored Dec 5, 2023
2 parents c05527c + 45a1a31 commit 189d45a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion levels/avaraline-strict-mode/alf/bwadi-koth.alf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
pHillW="hillSize"
pHillD="hillSize"
pHillH="4"
wallYon="0.001"
/>
<include alf="logic/koth.alf" />
</map>
1 change: 0 additions & 1 deletion levels/avaraline-strict-mode/alf/stratocaster-hss-koth.alf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
pHillW="hillSize"
pHillD="hillSize"
pHillH="4"
wallYon="0.001"
/>
<include alf="logic/koth.alf" />
</map>
1 change: 0 additions & 1 deletion levels/avaraline-strict-mode/alf/telecaster-captures.alf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
outerCaptureX="24"
outerCaptureY="10"
outerCaptureZ="39"
wallYon="0.001"
/>

<set
Expand Down
5 changes: 5 additions & 0 deletions src/game/CForceField.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ CAbstractActor *CForceField::EndScript() {
}

partList[0]->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);
Expand Down

0 comments on commit 189d45a

Please sign in to comment.