minor bug fixes
This commit is contained in:
@@ -402,7 +402,8 @@ func _player_by_id(account_id: String) -> Dictionary:
|
||||
func _apply_delta(delta: Dictionary) -> void:
|
||||
# Helper: dict.get(key, default) returns null (not default) when the key exists with value null.
|
||||
# Use 'is Array' / 'is Dictionary' guards so typed assignment never receives null.
|
||||
print("DELTA: ", delta)
|
||||
if debug_output:
|
||||
print("DELTA: ", delta)
|
||||
# 1. Changed tiles
|
||||
var changed_tiles = delta.get("changedTiles")
|
||||
if changed_tiles is Array:
|
||||
@@ -623,7 +624,8 @@ func _on_server_push(type: String, payload: Variant) -> void:
|
||||
% [_state_version, v])
|
||||
_fetch_state()
|
||||
return
|
||||
print("[Delta] ", delta)
|
||||
if debug_output:
|
||||
print("[Delta] ", delta)
|
||||
_apply_delta(delta)
|
||||
|
||||
"game.over":
|
||||
|
||||
@@ -12,10 +12,10 @@ anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -106.0
|
||||
offset_top = -422.0
|
||||
offset_right = -46.0
|
||||
offset_bottom = -362.0
|
||||
offset_left = -58.0
|
||||
offset_top = -219.0
|
||||
offset_right = 2.0
|
||||
offset_bottom = -159.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
theme_override_font_sizes/font_size = 12
|
||||
|
||||
Reference in New Issue
Block a user