corrected Utility.Random(int) range check

This commit is contained in:
xavier 2013-02-16 15:21:25 +00:00
parent 3f98fd7591
commit db03c8c6d5

View file

@ -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 )