forked from rosebudai/OpenRCT2-Web
The transparent water mode should always be enabled in cases where RCT1 is not linked.
This commit is contained in:
1 parent
1d361a07e3
commit
a3ea3a70c5
3 files changed
+4
-2
No files matched your search
@@ -13,6 +13,7 @@
|
||||
- Fix: [#22056] Potential crash upon exiting the game.
|
||||
- Fix: [#22208] Cursor may fail to register hits in some cases (original bug).
|
||||
- Fix: [#22304] Graphs don't draw lines on the left edge of the screen.
|
||||
- Fix: [#22318] Water sparkles are missing if transparent water is enabled without RCT1 linked.
|
||||
|
||||
0.4.12 (2024-07-07)
|
||||
------------------------------------------------------------------------
|
||||
|
||||
@@ -1299,7 +1299,7 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con
|
||||
const auto image_id = ImageId(SPR_WATER_MASK + image_offset, FilterPaletteID::PaletteWater).WithBlended(true);
|
||||
PaintAddImageAsParent(session, image_id, { 0, 0, waterHeight }, { 32, 32, -1 });
|
||||
|
||||
const bool transparent = Config::Get().general.TransparentWater
|
||||
const bool transparent = !IsCsgLoaded() || Config::Get().general.TransparentWater
|
||||
|| (session.ViewFlags & VIEWPORT_FLAG_UNDERGROUND_INSIDE);
|
||||
const uint32_t overlayStart = transparent ? SPR_WATER_OVERLAY : SPR_RCT1_WATER_OVERLAY;
|
||||
PaintAttachToPreviousPS(session, ImageId(overlayStart + image_offset), 0, 0);
|
||||
|
||||
@@ -8006,7 +8006,8 @@ static void WoodenRCTrackWaterSplash(
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
const bool transparent = Config::Get().general.TransparentWater || (session.ViewFlags & VIEWPORT_FLAG_UNDERGROUND_INSIDE);
|
||||
const bool transparent = !IsCsgLoaded() || Config::Get().general.TransparentWater
|
||||
|| (session.ViewFlags & VIEWPORT_FLAG_UNDERGROUND_INSIDE);
|
||||
const auto waterMask = ImageId(SPR_WATER_MASK).WithRemap(FilterPaletteID::PaletteWater).WithBlended(true);
|
||||
const auto waterOverlay = ImageId(transparent ? SPR_WATER_OVERLAY : SPR_RCT1_WATER_OVERLAY);
|
||||
|
||||
|
||||
Reference in new issue
Block a user