will prevent messing with ship's dimensions
This commit is contained in:
parent
2f9735c428
commit
3cb47ff6b2
1 changed files with 4 additions and 3 deletions
|
@ -472,10 +472,11 @@ System.out.println("ZLO7");
|
|||
this.shipSize = this.shipDown + this.shipUp;
|
||||
break;
|
||||
}
|
||||
|
||||
// Ship side is too big
|
||||
if (shipLength > WarpDriveConfig.i.WC_MAX_SHIP_SIDE || shipWidth > WarpDriveConfig.i.WC_MAX_SHIP_SIDE || shipHeight > WarpDriveConfig.i.WC_MAX_SHIP_SIDE)
|
||||
|
||||
// Ship size is too big
|
||||
if (this.shipSize + 1 > WarpDriveConfig.i.WC_MAX_SHIP_SIDE)
|
||||
{
|
||||
messageToAllPlayersOnShip("Ship is too long. Cannot jump.");
|
||||
this.controller.setJumpFlag(false);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue