Fix: model facing default (south/+Z) + clear game state on rematch
Model facing: GLB models exported from Blender arrive in Godot facing +Z, not -Z. Changed _facing_to_base_angle default case from 0 (north/-Z) to PI (south/+Z). Explicit "north" case added. Updated admin dropdown label from "Default (north)" to "Default (south / Blender GLB)" to match. Stale game state: when matchmaking.match_found is received, clear Game.state so the new GameScreen always calls send_ready() rather than rendering the previous (ended) game's state. Fixes same-players-re-match ending up in the already-completed session. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -257,6 +257,7 @@ func _on_server_push(type: String, payload: Variant) -> void:
|
||||
var sid : String = str(d.get("gameSessionId", ""))
|
||||
var oname : String = str(d.get("opponentDisplayName", "Opponent"))
|
||||
var orank : int = int(d.get("opponentRankScore", 0))
|
||||
state = {} # Clear any stale previous-game state before new session starts
|
||||
session_id = sid
|
||||
opponent_name = oname
|
||||
match_found.emit(sid, oname, orank)
|
||||
|
||||
Reference in New Issue
Block a user