From 87b098b142942cdccf09d9e4b79290005bee486c Mon Sep 17 00:00:00 2001 From: TanviKumar Date: Sat, 17 Feb 2018 17:19:44 +0530 Subject: [PATCH] Fix errors from commit #ce05eb0 --- src/state/src/state_syncer/state_syncer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/state/src/state_syncer/state_syncer.cpp b/src/state/src/state_syncer/state_syncer.cpp index bc2952e..c0e01e5 100644 --- a/src/state/src/state_syncer/state_syncer.cpp +++ b/src/state/src/state_syncer/state_syncer.cpp @@ -356,7 +356,7 @@ void StateSyncer::MoveSoldier(PlayerId player_id, int64_t soldier_id, "Soldier with id " + std::to_string( state_soldiers[static_cast(player_id)][soldier_index] - .id) + + ->GetActorId()) + " must be alive in order to act"); return; } @@ -400,7 +400,7 @@ void StateSyncer::AttackTower(PlayerId player_id, int64_t soldier_id, "Soldier with id " + std::to_string( state_soldiers[static_cast(player_id)][soldier_index] - .id) + + ->GetActorId()) + " must be alive in order to act"); return; } @@ -465,7 +465,7 @@ void StateSyncer::AttackSoldier(PlayerId player_id, int64_t soldier_id, "Soldier with id " + std::to_string( state_soldiers[static_cast(player_id)][soldier_index] - .id) + + ->GetActorId()) + " must be alive in order to act"); return; } @@ -494,7 +494,7 @@ void StateSyncer::AttackSoldier(PlayerId player_id, int64_t soldier_id, "Enemy soldier with id " + std::to_string( state_soldiers[static_cast(player_id)][soldier_index] - .id) + + ->GetActorId()) + " must be alive to attack it"); return; } @@ -504,7 +504,7 @@ void StateSyncer::AttackSoldier(PlayerId player_id, int64_t soldier_id, "Cannot damage invulnerable soldier with id " + std::to_string( state_soldiers[static_cast(player_id)][soldier_index] - .id)); + ->GetActorId())); } state->AttackActor(player_id, soldier_id, enemy_soldier_id);