From c69e54e61bfd184222d7547f1673aa78e809a10f Mon Sep 17 00:00:00 2001 From: Robin Eklind Date: Wed, 31 Oct 2018 17:11:28 +0100 Subject: [PATCH] UpdateL4Trans bin exact --- Source/themes.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Source/themes.cpp b/Source/themes.cpp index 199274bb0..18e97a076 100644 --- a/Source/themes.cpp +++ b/Source/themes.cpp @@ -1243,19 +1243,21 @@ void __fastcall Theme_WeaponRack(int t) } // 6AAA50: using guessed type int weaponFlag; +// UpdateL4Trans sets each value of the transparency map to 1. void __cdecl UpdateL4Trans() { - int i; // ecx - int j; // edx + int i; + int j; - for (i = 0; i < 112; i++) { - for (j = 0; j < 112; j++) { + for (j = 0; j < 112; j++) { + for (i = 0; i < 112; i++) { if (dung_map[i][j]) dung_map[i][j] = 1; } } } +// CreateThemeRooms adds thematic elements to rooms. void __cdecl CreateThemeRooms() { int i;