From 6559c032095ec3e2cdac11a9396b8cb048cda688 Mon Sep 17 00:00:00 2001 From: Major- Date: Sat, 13 Feb 2016 18:36:33 +0000 Subject: [PATCH] Set default viewing distance to 15 --- game/src/main/org/apollo/game/model/entity/Player.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/game/src/main/org/apollo/game/model/entity/Player.java b/game/src/main/org/apollo/game/model/entity/Player.java index 92d78903..2a323b10 100644 --- a/game/src/main/org/apollo/game/model/entity/Player.java +++ b/game/src/main/org/apollo/game/model/entity/Player.java @@ -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; } /**