diff --git a/Directory.Build.props b/Directory.Build.props index 197769d..5a652bb 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - 0.2.0.8 + 0.2.0.9 $(DefineConstants);FULL_RELEASE net7.0 11 diff --git a/Drizzle.Lingo.Runtime/LingoImage.cs b/Drizzle.Lingo.Runtime/LingoImage.cs index c9d92e4..3149629 100644 --- a/Drizzle.Lingo.Runtime/LingoImage.cs +++ b/Drizzle.Lingo.Runtime/LingoImage.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Diagnostics; using System.IO; using System.Runtime.CompilerServices; diff --git a/Drizzle.Logic/Rendering/LevelRenderer.RenderColors.cs b/Drizzle.Logic/Rendering/LevelRenderer.RenderColors.cs index 3e12ea3..0ef1323 100644 --- a/Drizzle.Logic/Rendering/LevelRenderer.RenderColors.cs +++ b/Drizzle.Logic/Rendering/LevelRenderer.RenderColors.cs @@ -201,8 +201,12 @@ public void RenderColorsNewFrame() { if (dcGet == Movie.gPEcolors[1][2]) { - if (!DoesGreenValueMeanRainbow(greenCol)) + if (grimeActive + && (grimeOnGradients || greenCol is not 1 or 2 or 3) + && !DoesGreenValueMeanRainbow(greenCol)) + { greenCol += 4; + } } else { @@ -213,6 +217,11 @@ public void RenderColorsNewFrame() decalColor = (int) gDecalColors.count; } + if (bkgFix && decalColor < 2) + { + decalColor = 2; + } + col.BlueByte = (byte)(256 - decalColor); greenCol += 8; } diff --git a/LingoSource/renderStart.lingo b/LingoSource/renderStart.lingo index 17837d8..6ad2609 100644 --- a/LingoSource/renderStart.lingo +++ b/LingoSource/renderStart.lingo @@ -90,7 +90,9 @@ on exitFrame me if (tlPs <> void) then if (tlPs.locH > 2) and (tlPs.locH <= gTiles.count) then if tlPs.locV <= gTiles[tlPs.locH].tls.count then - ad = (gTiles[tlPs.locH].tls[tlPs.locV].tags.getPos("nonSolid")=0) + if gTiles[tlPs.locH].tls[tlPs.locV].tags <> void then + ad = (gTiles[tlPs.locH].tls[tlPs.locV].tags.getPos("nonSolid")=0) + end if end if end if end if