summaryrefslogtreecommitdiff
path: root/client/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'client/main.lua')
-rw-r--r--client/main.lua6
1 files changed, 3 insertions, 3 deletions
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