Increase max render distance

This commit is contained in:
Layla 2020-08-20 22:01:39 -04:00
parent 6f3cca01d7
commit 9ac00442fe
No known key found for this signature in database
GPG Key ID: A494D9357BA1BE31

View File

@ -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 {