From d3389f3f7cc1b44cbc97db9e5071da16bd415d27 Mon Sep 17 00:00:00 2001 From: qndel Date: Wed, 25 Sep 2019 18:54:54 +0200 Subject: [PATCH] DrawSLine cleanup --- Source/stores.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/stores.cpp b/Source/stores.cpp index d9043f93d..2bf8d1a99 100644 --- a/Source/stores.cpp +++ b/Source/stores.cpp @@ -195,16 +195,17 @@ void PrintSString(int x, int y, BOOL cjustflag, char *str, char col, int val) void DrawSLine(int y) { - int xy, yy, width, line; + int xy, yy, width, line, sy; + sy = SStringY[y]; if (stextsize == 1) { xy = SCREENXY(26, 25); - yy = PitchTbl[SStringY[y] + 198] + 26 + 64; + yy = PitchTbl[sy + 198] + 26 + 64; width = 586 / 4; line = BUFFER_WIDTH - 586; } else { xy = SCREENXY(346, 25); - yy = PitchTbl[SStringY[y] + 198] + 346 + 64; + yy = PitchTbl[sy + 198] + 346 + 64; width = 266 / 4; line = BUFFER_WIDTH - 266; }