From 9ac00442fee436720a1d5a8e587260a43fc9d07a Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Thu, 20 Aug 2020 22:01:39 -0400 Subject: [PATCH] Increase max render distance --- server/plugin/control/control.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/plugin/control/control.go b/server/plugin/control/control.go index 3aceab0..58f5e65 100644 --- a/server/plugin/control/control.go +++ b/server/plugin/control/control.go @@ -7,6 +7,8 @@ import ( "github.com/josephbmanley/family/server/plugin/gamemap" ) +const maxRenderDistance int = 32 + // OpCode represents a enum for valid OpCodes // used by the match logic type OpCode int64 @@ -83,7 +85,7 @@ func (m *Match) MatchJoin(ctx context.Context, logger runtime.Logger, db *sql.DB mState.names[precense.GetUserId()] = "User" // Get intial tile data around player - if regionData, err := mState.worldMap.GetJSONRegionAround(16, 16, 8); err != nil { + if regionData, err := mState.worldMap.GetJSONRegionAround(16, 16, maxRenderDistance); err != nil { logger.Error(err.Error()) } else {