Skip to content

Commit

Permalink
Don't increment the time if the race is over
Browse files Browse the repository at this point in the history
  • Loading branch information
awest03 committed May 17, 2024
1 parent aa42cd1 commit 3e31d34
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions dat/missions/neutral/race_qex.lua
Original file line number Diff line number Diff line change
Expand Up @@ -376,13 +376,12 @@ function countdown( msg )
end

function update_timer ()
elapsed_time = elapsed_time+0.1
misn.osdCreate(_("Qex Racing"), {
_("Beat the Race!"),
display_time( elapsed_time ),
} )

if not race_done then
elapsed_time = elapsed_time+0.1
misn.osdCreate(_("Qex Racing"), {
_("Beat the Race!"),
display_time( elapsed_time ),
} )
hook.timer( 0.1, "update_timer" )
else
hook.timer( 5, "race_complete" )
Expand Down

0 comments on commit 3e31d34

Please sign in to comment.