From cc40bbfbe3bcd711b535272558a07f1ef82f57fa Mon Sep 17 00:00:00 2001 From: Robin Eklind Date: Sat, 13 Apr 2019 19:18:35 +0900 Subject: [PATCH] Cleanup DRLG_RectTrans, already bin exact --- Source/gendung.cpp | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/Source/gendung.cpp b/Source/gendung.cpp index 7844a09e9..84a6361dc 100644 --- a/Source/gendung.cpp +++ b/Source/gendung.cpp @@ -595,22 +595,14 @@ void DRLG_MRectTrans(int x1, int y1, int x2, int y2) void DRLG_RectTrans(int x1, int y1, int x2, int y2) { - int i; // esi - char *v5; // edx - int j; // eax - - for (i = y1; i <= y2; ++i) { - if (x1 <= x2) { - v5 = &dTransVal[x1][i]; - j = x2 - x1 + 1; - do { - *v5 = TransVal; - v5 += 112; - --j; - } while (j); + int i, j; + + for (j = y1; j <= y2; j++) { + for (i = x1; i <= x2; i++) { + dTransVal[i][j] = TransVal; } } - ++TransVal; + TransVal++; } // 5A5590: using guessed type char TransVal;