Skip to content

Commit

Permalink
Fix incorrect function name in F18 causing crash (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliefoxtwo authored Oct 13, 2023
1 parent 3af706c commit 2e8b0f4
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions Scripts/DCS-BIOS/lib/modules/aircraft_modules/FA-18C_hornet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 2e8b0f4

Please sign in to comment.