1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-03-17 20:58:13 +02:00

small symetry fix

This commit is contained in:
MewMew 2019-11-04 03:53:23 +01:00
parent ff2ee0a2e9
commit 6bc0f63db0
2 changed files with 6 additions and 6 deletions

View File

@ -292,18 +292,18 @@ local function on_player_joined_game(event)
end
end
local function tick()
if game.tick % 240 == 0 then
local function tick()
local game_tick = game.tick
if game_tick % 240 == 0 then
local area = {{-256, -97}, {255, 96}}
game.forces.west.chart(game.surfaces[global.active_surface_index], area)
game.forces.east.chart(game.surfaces[global.active_surface_index], area)
end
local t2 = game.tick % 900
if t2 == 0 then send_unit_groups() end
if game_tick % 1200 == 0 then send_unit_groups() end
if global.game_reset_tick then
if global.game_reset_tick < game.tick then
if global.game_reset_tick < game_tick then
global.game_reset_tick = nil
Public.reset_map()
end

View File

@ -34,7 +34,7 @@ end
local function is_out_of_map(p)
if p.y < 96 and p.y >= -96 then return end
if p.x * 0.5 > math_abs(p.y) then return end
if p.x * 0.5 >= math_abs(p.y) then return end
if p.x * -0.5 > math_abs(p.y) then return end
return true
end