mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-03-19 21:18:01 +02:00
Fix incorrect rocket score displayed (#1422)
This commit is contained in:
parent
a1f1b81ca4
commit
963dc1048d
@ -764,6 +764,7 @@ function Main.on_game_started()
|
||||
game.reset_time_played()
|
||||
|
||||
ScoreTracker.reset()
|
||||
ScoreTracker.set_for_global(rocket_launches_name, this.rockets_to_win)
|
||||
end
|
||||
|
||||
Main.restart_game_token = Token.register(function()
|
||||
@ -936,6 +937,7 @@ local function on_rocket_launched(event)
|
||||
end
|
||||
|
||||
game.print({'frontier.rocket_launched', this.rockets_launched, (this.rockets_to_win - this.rockets_launched) })
|
||||
ScoreTracker.set_for_global(rocket_launches_name, (this.rockets_to_win - this.rockets_launched))
|
||||
Main.compute_silo_coordinates(500)
|
||||
|
||||
local ticks = 60
|
||||
|
Loading…
x
Reference in New Issue
Block a user