Merge pull request #219 from apollo-rsps/view_distance

Set default viewing distance to 15
This commit is contained in:
Gary Tierney
2016-02-13 18:49:31 +00:00
@@ -63,6 +63,11 @@ import org.apollo.util.security.PlayerCredentials;
*/
public final class Player extends Mob {
/**
* The default viewing distance, in tiles.
*/
private static final int DEFAULT_VIEWING_DISTANCE = 15;
/**
* The current amount of appearance tickets.
*/
@@ -211,7 +216,7 @@ public final class Player extends Mob {
/**
* The current maximum viewing distance of this Player.
*/
private int viewingDistance = 1;
private int viewingDistance = DEFAULT_VIEWING_DISTANCE;
/**
* A flag indicating if the player is withdrawing items as notes.
@@ -707,7 +712,7 @@ public final class Player extends Mob {
* Resets this player's viewing distance.
*/
public void resetViewingDistance() {
viewingDistance = 1;
viewingDistance = DEFAULT_VIEWING_DISTANCE;
}
/**