mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 07:28:14 +00:00
fixed a crash when exiting pipes, and restored the LL font cause apparently i accidentily deleted it last commit, whoops, also wrote a quick optimization into the font updater to speed up load times
This commit is contained in:
@@ -159,6 +159,7 @@ func get_resource(json_file: JSON) -> Resource:
|
||||
ResourceMode.FONT:
|
||||
resource = FontFile.new()
|
||||
resource.load_bitmap_font(source_resource_path)
|
||||
resource.set_meta("base_path", source_resource_path)
|
||||
if cache.has(json_file.resource_path) == false and use_cache and not is_random:
|
||||
cache[json_file.resource_path] = resource
|
||||
return resource
|
||||
|
@@ -67,6 +67,7 @@ func exit_pipe() -> void:
|
||||
can_enter = false
|
||||
pipe_exited.emit()
|
||||
for i in get_tree().get_nodes_in_group("Players"):
|
||||
await i.ready
|
||||
i.go_to_exit_pipe(self)
|
||||
for i in get_tree().get_nodes_in_group("Players"):
|
||||
await get_tree().create_timer(0.5, false).timeout
|
||||
|
@@ -299,5 +299,5 @@ func get_animation_name() -> String:
|
||||
return "Fall"
|
||||
|
||||
func exit() -> void:
|
||||
player.on_hammer_timeout()
|
||||
player.skidding = false
|
||||
owner.on_hammer_timeout()
|
||||
owner.skidding = false
|
||||
|
Reference in New Issue
Block a user