Typo closness

This commit is contained in:
thatsIch 2014-09-21 01:05:13 +02:00
parent eafa07bc15
commit 9c668a6855

View file

@ -102,10 +102,10 @@ public class CompassService implements ThreadFactory
{ {
if ( cr.hasBeacon( minx, z ) ) if ( cr.hasBeacon( minx, z ) )
{ {
int closness = dist( cx, cz, minx, z ); int closeness = dist( cx, cz, minx, z );
if ( closness < closest ) if ( closeness < closest )
{ {
closest = closness; closest = closeness;
chosen_x = minx; chosen_x = minx;
chosen_z = z; chosen_z = z;
} }
@ -113,10 +113,10 @@ public class CompassService implements ThreadFactory
if ( cr.hasBeacon( maxx, z ) ) if ( cr.hasBeacon( maxx, z ) )
{ {
int closness = dist( cx, cz, maxx, z ); int closeness = dist( cx, cz, maxx, z );
if ( closness < closest ) if ( closeness < closest )
{ {
closest = closness; closest = closeness;
chosen_x = maxx; chosen_x = maxx;
chosen_z = z; chosen_z = z;
} }
@ -127,10 +127,10 @@ public class CompassService implements ThreadFactory
{ {
if ( cr.hasBeacon( x, minz ) ) if ( cr.hasBeacon( x, minz ) )
{ {
int closness = dist( cx, cz, x, minz ); int closeness = dist( cx, cz, x, minz );
if ( closness < closest ) if ( closeness < closest )
{ {
closest = closness; closest = closeness;
chosen_x = x; chosen_x = x;
chosen_z = minz; chosen_z = minz;
} }
@ -138,10 +138,10 @@ public class CompassService implements ThreadFactory
if ( cr.hasBeacon( x, maxz ) ) if ( cr.hasBeacon( x, maxz ) )
{ {
int closness = dist( cx, cz, x, maxz ); int closeness = dist( cx, cz, x, maxz );
if ( closness < closest ) if ( closeness < closest )
{ {
closest = closness; closest = closeness;
chosen_x = x; chosen_x = x;
chosen_z = maxz; chosen_z = maxz;
} }