From dd474330fdb292e6eb95e315294e413de0f8d2d3 Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Thu, 17 Oct 2024 22:15:46 -0500 Subject: [PATCH] [demo] Fix stage alpha transitions in story view. Release Build 11576. --- Adventures in Lestoria/Version.h | 2 +- Adventures in Lestoria/VisualNovel.cpp | 2 +- x64/Release/Adventures in Lestoria.exe | Bin 4226048 -> 4226048 bytes 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Adventures in Lestoria/Version.h b/Adventures in Lestoria/Version.h index f05e1634..0fcdee2c 100644 --- a/Adventures in Lestoria/Version.h +++ b/Adventures in Lestoria/Version.h @@ -39,7 +39,7 @@ All rights reserved. #define VERSION_MAJOR 1 #define VERSION_MINOR 3 #define VERSION_PATCH 0 -#define VERSION_BUILD 11575 +#define VERSION_BUILD 11576 #define stringify(a) stringify_(a) #define stringify_(a) #a diff --git a/Adventures in Lestoria/VisualNovel.cpp b/Adventures in Lestoria/VisualNovel.cpp index 343aad00..5ef53f41 100644 --- a/Adventures in Lestoria/VisualNovel.cpp +++ b/Adventures in Lestoria/VisualNovel.cpp @@ -257,7 +257,7 @@ void VisualNovel::Draw(const uint8_t backgroundAlpha){ if(backgroundFilename!=""){ float alpha=backgroundAlpha/255.f; if(transitionTime>0){ - alpha=alpha*util::lerp(0,1,1-(transitionTime/maxTransitionTime)); + alpha=alpha*util::lerp(0.f,1.f,1.f-(transitionTime/maxTransitionTime)); } if(prevBackgroundFilename!=""){ game->DrawDecal({0,-prevBackgroundScrollAmt},GFX["story_background_image_location"_S+prevBackgroundFilename].Decal(),{1.f,1.f},{255,255,255,backgroundAlpha}); diff --git a/x64/Release/Adventures in Lestoria.exe b/x64/Release/Adventures in Lestoria.exe index 10df63c4a00bfaa909222d52fdff109f3a6d5ced..566f3f11a288523a3b03c2a063a83673e8353b42 100644 GIT binary patch delta 1560 zcmZY8e{2(F7zgn8ZP%^z*R^ZQy3Otfbhx+t7&?j@9jt1rS5t6HSOf;fWXVW0E?bnK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