...
This commit is contained in:
parent
db03c8c6d5
commit
a9e4b7e714
1 changed files with 1 additions and 3 deletions
|
|
@ -636,9 +636,7 @@ namespace Server.Mobiles
|
|||
|
||||
private int GetAdjustedLocation( int range, int side, int coord, int coord_this )
|
||||
{
|
||||
int val = ( ( ( coord > 0 ) ? coord : ( coord_this - range ) ) + ( Utility.Random( ( ( range * 2 ) + 1 ) + side ) ) );
|
||||
|
||||
return ( val < 1 ) ? 1 : val;
|
||||
return ( ( ( coord > 0 ) ? coord : ( coord_this - range ) ) + ( Utility.Random( Math.Max( ( ( ( range * 2 ) + 1 ) + side ), 1 ) ) ) );
|
||||
}
|
||||
|
||||
public Point3D GetSpawnPosition( ISpawnable spawned )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue