UPD: Enhance output logs
This commit is contained in:
parent
d4dbcc85fb
commit
ecc3f595bc
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user