1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-02-21 19:20:07 +02:00

Merge branch 'develop' into updates/frontier

This commit is contained in:
RedRafe 2024-11-10 02:27:08 +01:00
commit 7eac6f28fb
4 changed files with 5 additions and 11 deletions

View File

@ -500,7 +500,7 @@ handler = function(event)
tick = tick
}
debug_print('Waypoint_index ' .. waypoint_index .. ' (waypoint #' .. waypoint_index + 1 .. ') callback in ' .. ticks .. ' ticks')
debug_print('Waypoint_index ' .. waypoint_index .. ' (waypoint #' .. (waypoint_index + 1) .. ') callback in ' .. ticks .. ' ticks')
set_timeout_in_ticks(ticks, callback_function, {func = running_cutscene.func, player_index = player_index, waypoint_index = waypoint_index - 1, params = params})
end
@ -590,7 +590,7 @@ Gui.on_click(
forward_btn_name,
function(event)
local player_index = event.player_index
if Public.goTo(event.player_index, running_cutscenes[player_index].current_index + 1) == false then
if Public.goTo(player_index, running_cutscenes[player_index].current_index + 1) == false then
game.get_player(player_index).print("Cutscene: You're already at the end")
end
end

View File

@ -245,7 +245,7 @@ local function do_pole(entity)
return
end
local supply_area_distance = entity.prototype.supply_area_distance
local supply_area_distance = entity.prototype.get_supply_area_distance(entity.quality)
if not supply_area_distance then
return
end

View File

@ -1670,7 +1670,7 @@ local function turret_died(event)
turret_to_outpost[registration_number] = nil
local number = event.unit_number
local number = event.useful_id
if not number then
return
end

View File

@ -10,13 +10,7 @@ local rendering = rendering
local draw_polygon = rendering.draw_polygon
function Public.draw_polygon(positions, options)
local vertices = {}
for i = 1, #positions do
vertices[i] = {target = positions[i]}
end
local args = {vertices = vertices}
local args = { vertices = positions }
for k, v in pairs(options) do
args[k] = v
end