From c2df2635dbdbf3598b36ea8cc70b9e37de265cc5 Mon Sep 17 00:00:00 2001 From: Robin Eklind Date: Mon, 29 Jun 2020 15:50:27 +0200 Subject: [PATCH] engine: add BUGFIX comment for Cl2BlitOutlineSafe When hovering over a monster at the bottom part of the screen, the outline may be off-by-one, thus overwriting the top pixel of the panel. --- Source/engine.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/engine.cpp b/Source/engine.cpp index 14d367569..267f4e02a 100644 --- a/Source/engine.cpp +++ b/Source/engine.cpp @@ -3811,6 +3811,7 @@ void Cl2BlitOutlineSafe(BYTE *pDecodeTo, BYTE *pRLEBytes, int nDataSize, int nWi dst[-1] = col; dst[1] = col; dst[-BUFFER_WIDTH] = col; + // BUGFIX: only set `if (dst+BUFFER_WIDTH < gpBufEnd)` dst[BUFFER_WIDTH] = col; } dst++;