Make sure the offset of the spawn is divisible by 24000

Otherwise there are strange bugs
master
upsilon 2019-08-21 18:10:33 +02:00
parent 6fd9382f69
commit 68e1d25c55
No known key found for this signature in database
GPG Key ID: A80DAE1F266E1C3C
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ local function coroutine_body()
-- If we don't have a spawn yet, start with it
map = hg_map.spawn
map.id = -1
map.offset = vector.new(-hg_map.spawn.width/2, 24000, -hg_map.spawn.length/2)
map.offset = vector.new(24000, 24000, 24000)
hg_map.update_map_offset(map)
emerge(map.minp, map.maxp)
else