WIP checkpoint: Client-side position sync + prediction/reconciliation
This commit is contained in:
@@ -196,6 +196,7 @@ func _handle_snapshot(snapshot_data: Dictionary) -> void:
|
||||
# RPC payloads can arrive as String or int depending on the transport
|
||||
# encoding, so check both rather than assuming.
|
||||
var my_state: Variant = players.get(my_id, players.get(str(my_id), null))
|
||||
print("DEBUG _handle_snapshot my_id=", my_id, " my_state=", my_state, " buffer_size=", _prediction_buffer.size(), " net.position=", position)
|
||||
if my_state == null or not (my_state is Dictionary):
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user