Skip to content

Commit

Permalink
Fixed skybox placeholder texture showing for some levels
Browse files Browse the repository at this point in the history
The win-screen-splash.bin and camp-ending.bin files had a few places where the skybox placeholder texture was being shown. This is because their (upper) walls were not marked as skybox, only their ceilings, and the empty blocks behind them had lower floors. Ideally, the tiles in the levels would have their walls set to skybox, but this will handle it too.
  • Loading branch information
NetherNarwhal authored Jan 6, 2019
1 parent f7d01da commit fc1d943
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ else if (c.tileSpaceType==TileSpaceType.OPEN_NW) {
if (c.isSky() && isOtherSolid) {
// This makes the edge of an outdoor map transparent for sky tiles.
showWall = false;
} else if (isOtherSky && isOtherFloorHigher) {
} else if (isOtherSky && (isOtherFloorHigher && !isOtherSolid)) {
// Make sure we show the lower portion of a raised sky tile.
showWall = true;
} else {
Expand Down

0 comments on commit fc1d943

Please sign in to comment.