From 40e5ab39eade558030b3b3de098615a943c2c6a9 Mon Sep 17 00:00:00 2001 From: ketmar Date: Mon, 1 Oct 2018 10:49:31 +0000 Subject: [PATCH] fixed black market generator: if "generate lake" flag is also set, black market will be shrinked twice FossilOrigin-Name: 238a3c98a8f2790a396783460ba3143468a79e6d0b99361d54fad908c8178f11 --- packages/Generator/LevelGen.vc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/Generator/LevelGen.vc b/packages/Generator/LevelGen.vc index d02dc9b..ea68ad0 100644 --- a/packages/Generator/LevelGen.vc +++ b/packages/Generator/LevelGen.vc @@ -287,7 +287,7 @@ protected void preSetup () { levelRoomWidth = 4; levelRoomHeight = 6; } else { - if (global.lake) --levelRoomWidth; + if (global.lake) levelRoomWidth = DefaultLevelWidth-1; } } @@ -319,8 +319,10 @@ void generate (optional int stRoomX, optional int stRoomY) { if (global.levelType == 1 && !global.madeBlackMarket && global.genBlackMarket) { global.blackMarket = true; - --levelRoomWidth; - --levelRoomHeight; + //--levelRoomWidth; + //--levelRoomHeight; + levelRoomWidth = DefaultLevelWidth-1; + levelRoomHeight = DefaultLevelHeight-1; startRoomX = 0; startRoomY = 0; endRoomX = 3; -- 2.11.4.GIT