mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
A scene with terrain and no WMO now clears and draws its frame as the world's does in the open, in place of a depth-only clear. DrawWorldScene (0x0068123F) clears to black while the camera is dry and to the fog colour (+0x70) under a liquid, and draws the sky only when dry and the weather byte is set; outside every map object that byte always stands set. The sky pass the WMO scenes already run (the dome colours from the camera's heading, the map's light from BuildMapLight with its sun disc and skybox slots, DrawSky, the world's objects put back after) now takes the map, the camera's liquid and the portal walk's skybox weight instead of the backdrop, so ClearAndDrawOpenSky runs it for the terrain's map with no skybox from a walk. Under a liquid the frame's fog is already the map's for it (LiquidFog), so the clear takes that colour.