diff --git a/Adventures in Lestoria/AdventuresInLestoria.cpp b/Adventures in Lestoria/AdventuresInLestoria.cpp index 10b6f797..07203196 100644 --- a/Adventures in Lestoria/AdventuresInLestoria.cpp +++ b/Adventures in Lestoria/AdventuresInLestoria.cpp @@ -4185,6 +4185,7 @@ void AiL::ResetGame(bool changeToMainMenu){ Tutorial::Initialize(); minimap.SetMinimapMode(MinimapMode::SMALL); minimap.EraseChunkData(); + ClearDecalInstances(); } void AiL::OnRequestCompleted(const std::string_view receivedData)const{ diff --git a/Adventures in Lestoria/Version.h b/Adventures in Lestoria/Version.h index f1e21abe..1219b117 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 11566 +#define VERSION_BUILD 11570 #define stringify(a) stringify_(a) #define stringify_(a) #a diff --git a/Adventures in Lestoria/olcPixelGameEngine.h b/Adventures in Lestoria/olcPixelGameEngine.h index c9697e69..99181bdd 100644 --- a/Adventures in Lestoria/olcPixelGameEngine.h +++ b/Adventures in Lestoria/olcPixelGameEngine.h @@ -1210,6 +1210,8 @@ namespace olc const uint8_t GetMosaicEffect()const; void SetMosaicEffect(uint8_t effectLevel); + void ClearDecalInstances(); + HWButton*const GetKeyboardState(uint8_t key); public: static std::map charToColor; @@ -2141,6 +2143,12 @@ namespace olc if(originalText.length()>0&&originalText[0]=='#')return std::string(originalText.substr(7)); return std::string(originalText); } + + void PixelGameEngine::ClearDecalInstances(){ + for(LayerDesc&layer:GetLayers()){ + layer.vecDecalInstance.clear(); + } + } std::u32string PixelGameEngine::stripLeadingCol(std::u32string_view originalText){ if(originalText.length()>0&&originalText[0]=='#')return std::u32string(originalText.substr(7)); diff --git a/x64/Release/Adventures in Lestoria.exe b/x64/Release/Adventures in Lestoria.exe index 26d5236e..11d6c6c9 100644 Binary files a/x64/Release/Adventures in Lestoria.exe and b/x64/Release/Adventures in Lestoria.exe differ