From 2e8b0f432bfd3a535b6e39870607062dcc9b624c Mon Sep 17 00:00:00 2001 From: Charlie <30303272+charliefoxtwo@users.noreply.github.com> Date: Thu, 12 Oct 2023 22:48:15 -0700 Subject: [PATCH] Fix incorrect function name in F18 causing crash (#404) --- .../aircraft_modules/FA-18C_hornet.lua | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/Scripts/DCS-BIOS/lib/modules/aircraft_modules/FA-18C_hornet.lua b/Scripts/DCS-BIOS/lib/modules/aircraft_modules/FA-18C_hornet.lua index 564a026ef..12ff2ed50 100644 --- a/Scripts/DCS-BIOS/lib/modules/aircraft_modules/FA-18C_hornet.lua +++ b/Scripts/DCS-BIOS/lib/modules/aircraft_modules/FA-18C_hornet.lua @@ -510,55 +510,55 @@ FA_18C_hornet:defineString("IFEI_TIME_SET_MODE", function() return Functions.pad_left(ifei.txt_TimeSetMode, 6) end, 6, "Integrated Fuel/Engine Indicator (IFEI)", "Time Set Mode") FA_18C_hornet:defineString("IFEI_RPM_TEXTURE", function() - return Functions.nil_state_to_string_flag(ifei.RPMTexture) + return Functions.nil_state_to_str_flag(ifei.RPMTexture) end, 1, "Integrated Fuel/Engine Indicator (IFEI)", "RPM Texture Visible: 1 = yes, 0 = no") FA_18C_hornet:defineString("IFEI_TEMP_TEXTURE", function() - return Functions.nil_state_to_string_flag(ifei.TempTexture) + return Functions.nil_state_to_str_flag(ifei.TempTexture) end, 1, "Integrated Fuel/Engine Indicator (IFEI)", "Temp Texture Visible: 1 = yes, 0 = no") FA_18C_hornet:defineString("IFEI_FF_TEXTURE", function() - return Functions.nil_state_to_string_flag(ifei.FFTexture) + return Functions.nil_state_to_str_flag(ifei.FFTexture) end, 1, "Integrated Fuel/Engine Indicator (IFEI)", "FF Texture Visible: 1 = yes, 0 = no") FA_18C_hornet:defineString("IFEI_NOZ_TEXTURE", function() - return Functions.nil_state_to_string_flag(ifei.NOZTexture) + return Functions.nil_state_to_str_flag(ifei.NOZTexture) end, 1, "Integrated Fuel/Engine Indicator (IFEI)", "NOZZLE Texture Visible: 1 = yes, 0 = no") FA_18C_hornet:defineString("IFEI_OIL_TEXTURE", function() - return Functions.nil_state_to_string_flag(ifei.OILTexture) + return Functions.nil_state_to_str_flag(ifei.OILTexture) end, 1, "Integrated Fuel/Engine Indicator (IFEI)", "OIL Texture Visible: 1 = yes, 0 = no") FA_18C_hornet:defineString("IFEI_BINGO_TEXTURE", function() - return Functions.nil_state_to_string_flag(ifei.BINGOTexture) + return Functions.nil_state_to_str_flag(ifei.BINGOTexture) end, 1, "Integrated Fuel/Engine Indicator (IFEI)", "BINGO Texture Visible: 1 = yes, 0 = no") FA_18C_hornet:defineString("IFEI_LSCALE_TEXTURE", function() - return Functions.nil_state_to_string_flag(ifei.LScaleTexture) + return Functions.nil_state_to_str_flag(ifei.LScaleTexture) end, 1, "Integrated Fuel/Engine Indicator (IFEI)", "Left Scale Texture Visible: 1 = yes, 0 = no") FA_18C_hornet:defineString("IFEI_RSCALE_TEXTURE", function() - return Functions.nil_state_to_string_flag(ifei.RScaleTexture) + return Functions.nil_state_to_str_flag(ifei.RScaleTexture) end, 1, "Integrated Fuel/Engine Indicator (IFEI)", "Right Scale Texture Visible: 1 = yes, 0 = no") FA_18C_hornet:defineString("IFEI_L0_TEXTURE", function() - return Functions.nil_state_to_string_flag(ifei.L0Texture) + return Functions.nil_state_to_str_flag(ifei.L0Texture) end, 1, "Integrated Fuel/Engine Indicator (IFEI)", "Left 0 Texture Visible: 1 = yes, 0 = no") FA_18C_hornet:defineString("IFEI_R0_TEXTURE", function() - return Functions.nil_state_to_string_flag(ifei.R0Texture) + return Functions.nil_state_to_str_flag(ifei.R0Texture) end, 1, "Integrated Fuel/Engine Indicator (IFEI)", "Right 0 Texture Visible: 1 = yes, 0 = no") FA_18C_hornet:defineString("IFEI_L50_TEXTURE", function() - return Functions.nil_state_to_string_flag(ifei.L50Texture) + return Functions.nil_state_to_str_flag(ifei.L50Texture) end, 1, "Integrated Fuel/Engine Indicator (IFEI)", "Left 50 Texture Visible: 1 = yes, 0 = no") FA_18C_hornet:defineString("IFEI_R50_TEXTURE", function() - return Functions.nil_state_to_string_flag(ifei.R50Texture) + return Functions.nil_state_to_str_flag(ifei.R50Texture) end, 1, "Integrated Fuel/Engine Indicator (IFEI)", "Right 50 Texture Visible: 1 = yes, 0 = no") FA_18C_hornet:defineString("IFEI_L100_TEXTURE", function() - return Functions.nil_state_to_string_flag(ifei.L100Texture) + return Functions.nil_state_to_str_flag(ifei.L100Texture) end, 1, "Integrated Fuel/Engine Indicator (IFEI)", "Left 100 Texture Visible: 1 = yes, 0 = no") FA_18C_hornet:defineString("IFEI_R100_TEXTURE", function() - return Functions.nil_state_to_string_flag(ifei.R100Texture) + return Functions.nil_state_to_str_flag(ifei.R100Texture) end, 1, "Integrated Fuel/Engine Indicator (IFEI)", "Right 100 Texture Visible: 1 = yes, 0 = no") FA_18C_hornet:defineString("IFEI_LPOINTER_TEXTURE", function() - return Functions.nil_state_to_string_flag(ifei.LPointerTexture) + return Functions.nil_state_to_str_flag(ifei.LPointerTexture) end, 1, "Integrated Fuel/Engine Indicator (IFEI)", "Left Pointer Texture Visible: 1 = yes, 0 = no") FA_18C_hornet:defineString("IFEI_RPOINTER_TEXTURE", function() - return Functions.nil_state_to_string_flag(ifei.RPointerTexture) + return Functions.nil_state_to_str_flag(ifei.RPointerTexture) end, 1, "Integrated Fuel/Engine Indicator (IFEI)", "Right Pointer Texture Visible: 1 = yes, 0 = no") FA_18C_hornet:defineString("IFEI_Z_TEXTURE", function() - return Functions.nil_state_to_string_flag(ifei.ZTexture) + return Functions.nil_state_to_str_flag(ifei.ZTexture) end, 1, "Integrated Fuel/Engine Indicator (IFEI)", "Zulu Texture Visible: 1 = yes, 0 = no") -- 23. HUD Video Record Panel @@ -931,10 +931,10 @@ FA_18C_hornet:defineString("IFEI_T", function() return Functions.pad_left(ifei.txt_T, 6) end, 6, "Integrated Fuel/Engine Indicator (IFEI)", "T") FA_18C_hornet:defineString("IFEI_L_TEXTURE", function() - return Functions.nil_state_to_string_flag(ifei.LTexture) + return Functions.nil_state_to_str_flag(ifei.LTexture) end, 1, "Integrated Fuel/Engine Indicator (IFEI)", "Left Texture Visible: 1 = yes, 0 = no") FA_18C_hornet:defineString("IFEI_R_TEXTURE", function() - return Functions.nil_state_to_string_flag(ifei.RTexture) + return Functions.nil_state_to_str_flag(ifei.RTexture) end, 1, "Integrated Fuel/Engine Indicator (IFEI)", "Right Texture Visible: 1 = yes, 0 = no") FA_18C_hornet:defineFloatFromDrawArgument("EXT_HOOK", 25, "External Aircraft Model", "Hook")