forked from interstellar_development/freeftf
M7 B2
Bug fixes and other fixes. Migration to Godot 4.3 (RC3)
This commit is contained in:
parent
6b6b539e81
commit
f3350a462a
50 changed files with 578 additions and 478 deletions
|
|
@ -17,7 +17,7 @@ func _ready():
|
|||
|
||||
func join_game():
|
||||
var peer = ENetMultiplayerPeer.new()
|
||||
peer.create_client(Game.ip, Game.port)
|
||||
peer.create_client(Game.settings["ip"], Game.settings["port"])
|
||||
multiplayer.multiplayer_peer = peer
|
||||
|
||||
func is_valid(sender_id, must_be_from_owner):
|
||||
|
|
@ -50,10 +50,10 @@ func _on_player_disconnected(id):
|
|||
Game.players = 0
|
||||
else:
|
||||
Game.players -= 1
|
||||
print("found")
|
||||
await get_tree().create_timer(0.5).timeout
|
||||
current_character.free()
|
||||
print("freed")
|
||||
if current_character.captured_by != null:
|
||||
current_character.captured_by.lost_one()
|
||||
x += 1
|
||||
Game.player_list.erase(id)
|
||||
|
||||
|
|
@ -98,4 +98,3 @@ func sync_computers(node_name, current):
|
|||
func sync_beast(player):
|
||||
if is_valid(multiplayer.get_remote_sender_id(), true):
|
||||
Game.sync_beast(player)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue