Skip to content

Commit

Permalink
Show the fuel light when out of fuel regardless of destination.
Browse files Browse the repository at this point in the history
  • Loading branch information
onpon4 committed Feb 24, 2019
1 parent 3c54589 commit 461b298
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dat/gui/brushed.lua
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,9 @@ function renderBar( name, value, light, locked, prefix, mod_x, heat, stress )
gfx.renderTex( bar_frame_light, l_x, l_y ) --Frame
local show_light = false
if name == "fuel" then
show_light = player.jumps() <= 0
if autonav_hyp ~= nil then
show_light = player.jumps() < autonav_hyp:jumpDist()
show_light = show_light or player.jumps() < autonav_hyp:jumpDist()
end
else
show_light = value < 20
Expand Down

0 comments on commit 461b298

Please sign in to comment.