From db03c8c6d5caa0fbc439db2034303a9982105d02 Mon Sep 17 00:00:00 2001 From: xavier Date: Sat, 16 Feb 2013 15:21:25 +0000 Subject: [PATCH] corrected Utility.Random(int) range check --- Scripts/Engines/Spawner/Spawner.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/Engines/Spawner/Spawner.cs b/Scripts/Engines/Spawner/Spawner.cs index 18d0c0f43..8feefa41d 100644 --- a/Scripts/Engines/Spawner/Spawner.cs +++ b/Scripts/Engines/Spawner/Spawner.cs @@ -638,7 +638,7 @@ namespace Server.Mobiles { int val = ( ( ( coord > 0 ) ? coord : ( coord_this - range ) ) + ( Utility.Random( ( ( range * 2 ) + 1 ) + side ) ) ); - return ( val < 0 ) ? 0 : val; + return ( val < 1 ) ? 1 : val; } public Point3D GetSpawnPosition( ISpawnable spawned )