@ -116,8 +116,8 @@ public class Zone extends AbstractGameObject {
@@ -116,8 +116,8 @@ public class Zone extends AbstractGameObject {
if ( zone . playerCityID > 0 ) {
writer . put ( ( byte ) 1 ) ; // Player City - True
writer . putFloat ( Enum . CityBoundsType . ZONE . e xtents) ;
writer . putFloat ( Enum . CityBoundsType . ZONE . e xtents) ;
writer . putFloat ( Enum . CityBoundsType . ZONE . halfE xtents) ;
writer . putFloat ( Enum . CityBoundsType . ZONE . halfE xtents) ;
} else
writer . put ( ( byte ) 0 ) ; // Player City - False
@ -173,7 +173,7 @@ public class Zone extends AbstractGameObject {
@@ -173,7 +173,7 @@ public class Zone extends AbstractGameObject {
// Player cities are assigned default value
if ( this . loadNum = = 0 ) {
bounds . setBounds ( new Vector2f ( this . absX , this . absZ ) , new Vector2f ( Enum . CityBoundsType . ZONE . e xtents, Enum . CityBoundsType . ZONE . e xtents) , 0 . 0f ) ;
bounds . setBounds ( new Vector2f ( this . absX , this . absZ ) , new Vector2f ( Enum . CityBoundsType . ZONE . halfE xtents, Enum . CityBoundsType . ZONE . halfE xtents) , 0 . 0f ) ;
return ;
}
@ -184,7 +184,7 @@ public class Zone extends AbstractGameObject {
@@ -184,7 +184,7 @@ public class Zone extends AbstractGameObject {
if ( zoneSize ! = null )
this . bounds . setBounds ( new Vector2f ( this . absX , this . absZ ) , zoneSize , 0 . 0f ) ;
else
bounds . setBounds ( new Vector2f ( this . absX , this . absZ ) , new Vector2f ( Enum . CityBoundsType . ZONE . e xtents, Enum . CityBoundsType . ZONE . e xtents) , 0 . 0f ) ;
bounds . setBounds ( new Vector2f ( this . absX , this . absZ ) , new Vector2f ( Enum . CityBoundsType . ZONE . halfE xtents, Enum . CityBoundsType . ZONE . halfE xtents) , 0 . 0f ) ;
HeightMap heightMap = this . getHeightMap ( ) ;
@ -197,8 +197,8 @@ public class Zone extends AbstractGameObject {
@@ -197,8 +197,8 @@ public class Zone extends AbstractGameObject {
this . minBlend = Bounds . borrow ( ) ;
this . maxBlend = Bounds . borrow ( ) ;
this . minBlend . setBounds ( new Vector2f ( this . absX , this . absZ ) , new Vector2f ( Enum . CityBoundsType . ZONE . e xtents, Enum . CityBoundsType . ZONE . e xtents) . subtract ( heightMap . zone_minBlend , heightMap . zone_minBlend ) , 0 . 0f ) ;
this . maxBlend . setBounds ( new Vector2f ( this . absX , this . absZ ) , new Vector2f ( Enum . CityBoundsType . ZONE . e xtents, Enum . CityBoundsType . ZONE . e xtents) . subtract ( heightMap . zone_maxBlend , heightMap . zone_maxBlend ) , 0 . 0f ) ;
this . minBlend . setBounds ( new Vector2f ( this . absX , this . absZ ) , new Vector2f ( Enum . CityBoundsType . ZONE . halfE xtents, Enum . CityBoundsType . ZONE . halfE xtents) . subtract ( heightMap . zone_minBlend , heightMap . zone_minBlend ) , 0 . 0f ) ;
this . maxBlend . setBounds ( new Vector2f ( this . absX , this . absZ ) , new Vector2f ( Enum . CityBoundsType . ZONE . halfE xtents, Enum . CityBoundsType . ZONE . halfE xtents) . subtract ( heightMap . zone_maxBlend , heightMap . zone_maxBlend ) , 0 . 0f ) ;
}
}