From 7d81ddadf6eefcbda1f00b801a60a18366aed042 Mon Sep 17 00:00:00 2001 From: Gerkiz Date: Wed, 15 May 2024 21:29:17 +0200 Subject: [PATCH] Fix luacheck --- maps/mountain_fortress_v3/ic/functions.lua | 2 +- maps/mountain_fortress_v3/ic/gui.lua | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/maps/mountain_fortress_v3/ic/functions.lua b/maps/mountain_fortress_v3/ic/functions.lua index f9aac32d..8b1199ea 100644 --- a/maps/mountain_fortress_v3/ic/functions.lua +++ b/maps/mountain_fortress_v3/ic/functions.lua @@ -1264,7 +1264,7 @@ function Public.create_car(event) type = ce.type } - local car = cars[un] + car = cars[un] car.surface = Public.create_room_surface(un) Public.create_car_room(car) diff --git a/maps/mountain_fortress_v3/ic/gui.lua b/maps/mountain_fortress_v3/ic/gui.lua index 0c2b6b05..10ea2925 100644 --- a/maps/mountain_fortress_v3/ic/gui.lua +++ b/maps/mountain_fortress_v3/ic/gui.lua @@ -147,18 +147,15 @@ local function draw_add_player(player, frame) left_flow.style.horizontally_stretchable = true local close_button = left_flow.add({type = 'button', name = discard_add_player_name, caption = ({'ic.discard'})}) - local close_button_style = close_button.style - close_button_style = 'back_button' ---@class GuiButtonStyle - - close_button_style.maximal_width = 100 + close_button.style = 'back_button' ---@class GuiButtonStyle + close_button.style.maximal_width = 100 local right_flow = bottom_flow.add({type = 'flow'}) right_flow.style.horizontal_align = 'right' local save_button = right_flow.add({type = 'button', name = save_add_player_button_name, caption = ({'ic.save'})}) - local save_button_style = save_button.style - save_button_style = 'confirm_button' ---@class GuiButtonStyle - save_button_style.maximal_width = 100 + save_button.style = 'confirm_button' ---@class GuiButtonStyle + save_button.style.maximal_width = 100 Gui.set_data(save_button, add_player_frame) end