corrected Utility.Random(int) range check
This commit is contained in:
parent
3f98fd7591
commit
db03c8c6d5
1 changed files with 1 additions and 1 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue