tiger-cleanup #1
|
|
@ -50,12 +50,7 @@ func _load_games():
|
||||||
|
|
||||||
func _sort_saves() -> void:
|
func _sort_saves() -> void:
|
||||||
saves.sort_custom(func(a: SaveGame, b: SaveGame) -> int:
|
saves.sort_custom(func(a: SaveGame, b: SaveGame) -> int:
|
||||||
if a.last_saved > b.last_saved:
|
return a.last_saved < b.last_saved
|
||||||
return -1
|
|
||||||
elif a.last_saved < b.last_saved:
|
|
||||||
return 1
|
|
||||||
else:
|
|
||||||
return 0
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func _rebuild_buttons() -> void:
|
func _rebuild_buttons() -> void:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue