From a58f8a6622555374915935955aed758dfcf4ffc7 Mon Sep 17 00:00:00 2001 From: Flugente Date: Wed, 3 Aug 2016 17:45:37 +0000 Subject: [PATCH] Snake number formula has been slightly tweaked. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8280 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- TileEngine/environment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TileEngine/environment.cpp b/TileEngine/environment.cpp index 7ede3f03..930afb30 100644 --- a/TileEngine/environment.cpp +++ b/TileEngine/environment.cpp @@ -1132,7 +1132,7 @@ void HandleEnvironmentHazard( ) if ( gGameExternalOptions.gfAllowSnakes && !gbWorldSectorZ && Chance( SectorExternalData[sector][0].snakechance ) ) { // the number of snake attacks is randomized - int actionstodo = max(1, Random( SectorExternalData[sector][0].numsnakes ) ); + int actionstodo = 1 + Random( SectorExternalData[sector][0].numsnakes ); BOOLEAN soundplayed = FALSE;