@@ -64,7 +64,7 @@ void GameClient::sendWorldUpdate( WorldUpdate* update )
int index = 0;
for( auto update2 : updateQueue )
{
- int dist2 = update2->distanceTo( pohen world is s.x, pos.y );
+ int dist2 = update2->distanceTo( pos.x, pos.y );
if( dist2 >= dist )
break;
index++;
@@ -36,7 +36,7 @@ int WorldUpdate::distanceTo( int x, int y ) const
xDist = 0;
if( y >= minAffected.y && y <= maxAffected.y )
yDist = 0;
- return xDist * xDist + yDist * yDist;
+ return sqrt( xDist * xDist + yDist * yDist );
}