From 8a135c9c3bc5e326c20d5da69c521192d105ce44 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sun, 23 Jun 2024 18:06:26 +0100 Subject: [PATCH] Increase OutlinePixels limit from 1024 to 1536 @Trihedraf reported that the game crashed when killing Diablo. 1536 should be enough for Diablo and any custom sprites (if not, we can increase it further). --- Source/engine/render/clx_render.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/engine/render/clx_render.cpp b/Source/engine/render/clx_render.cpp index 95a3db750..ec8d2bd47 100644 --- a/Source/engine/render/clx_render.cpp +++ b/Source/engine/render/clx_render.cpp @@ -250,7 +250,7 @@ void DoRenderBackwards( } } -constexpr size_t MaxOutlinePixels = 1024; +constexpr size_t MaxOutlinePixels = 1536; constexpr size_t MaxOutlineSpriteWidth = 253; using OutlinePixels = StaticVector, MaxOutlinePixels>; using OutlineRowSolidRuns = StaticVector, MaxOutlineSpriteWidth / 2 + 1>;