log what actually goes into the snapshot when a unit spawns

the bot's units get models and the player's do not, and both take the
same path through summon() - only owner and position differ, and
position for a player's card comes off the wire. so print the id, the
data row, the owner and the position at the moment the object joins the
battle, and compare the two sides instead of guessing again.
This commit is contained in:
WiseDev 2026-08-23 15:00:11 +03:00
parent ffabe6e497
commit 1983b2f6ac

View file

@ -291,6 +291,14 @@ impl BattleSession {
} }
}); });
for entry in due { for entry in due {
tracing::info!(
tick,
global_id = ?entry.global_id.0,
data = %entry.data,
owner = entry.owner_index(),
position = ?entry.position(),
"spawning"
);
self.mode.battle.objects.push(entry); self.mode.battle.objects.push(entry);
} }
} }