UPD: Enhance output logs

This commit is contained in:
sebastian 2026-08-05 07:11:06 +02:00
parent d4dbcc85fb
commit ecc3f595bc

View File

@ -146,6 +146,7 @@ void ludo::LudoGameMode::handle(const MovePieceCommand &command) {
auto result = movePieceInternal(command.pieceIndex, m_gameState.m_diceValue);
m_pendingEvents.emplace_back(PieceMovedEvent{command.pieceIndex, result.fromPosition, result.toPosition, result.captured});
if (result.captured) {
spdlog::info("MovePieceCommand: gegnerische Figur auf {} geworfen", result.toPosition);
m_pendingEvents.emplace_back(PieceMovedEvent{result.capturedPieceIndex, result.toPosition, -1, false});
}
finishTurn();