From 911dc535a9930ef5380ecf31fabbd5123461fc3c Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 6 Feb 2023 12:35:20 +0000 Subject: remove chunk loading debugging prints, add envvar for localness --- client/main.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/main.lua') diff --git a/client/main.lua b/client/main.lua index d6f9e60..43705fe 100644 --- a/client/main.lua +++ b/client/main.lua @@ -1,8 +1,9 @@ local enet = require"enet" local json = require"common.dkjson" --- local SERVER_HOSTNAME = "ubq323.website" -local SERVER_HOSTNAME = "localhost" + +local SERVER_HOSTNAME = "ubq323.website" +if os.getenv"HEXEMU_LOCAL" then SERVER_HOSTNAME = "localhost" end local PLAYER_SIZE = 0.7 local local_player = nil @@ -109,7 +110,6 @@ function love.update(dt) -- load chunks near to player (within 3x3 square) for _,cp in ipairs(player_cp:neighborhood()) do if map:chunk(cp) == nil then - print("sending chunk request",cp) map:mark_chunk_loading(cp) peer:send(json.encode{t="reqchunk",u=cp.u,v=cp.v}) end -- cgit v1.2.3