From 9bbd34285533de5035ae5dc67f5612c0db11ca6c Mon Sep 17 00:00:00 2001 From: Wanne Date: Wed, 21 Oct 2009 18:13:37 +0000 Subject: [PATCH] - Reverted test changes in Buildings.cpp - Updated Exe release build: 3274 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3276 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- TileEngine/Buildings.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/TileEngine/Buildings.cpp b/TileEngine/Buildings.cpp index 59eeb6da..3544b34c 100644 --- a/TileEngine/Buildings.cpp +++ b/TileEngine/Buildings.cpp @@ -288,7 +288,7 @@ INT32 iLoopCount = 0; { bSkipSpots--; } - else /*if ( Random( uiChanceIn ) == 0 )*/ + else if ( Random( uiChanceIn ) == 0 ) { pBuilding->sUpClimbSpots[ pBuilding->ubNumClimbSpots ] = sCurrGridNo; pBuilding->sDownClimbSpots[ pBuilding->ubNumClimbSpots ] = sRightGridNo; @@ -307,8 +307,7 @@ INT32 iLoopCount = 0; #endif // skip the next spot bSkipSpots = 1; - } - /* + } else { // didn't pick this location, so increase chance that next location @@ -317,9 +316,7 @@ INT32 iLoopCount = 0; { uiChanceIn--; } - } - */ - + } } else {