Skip to content
Snippets Groups Projects
Commit 32e1f102 authored by Trandinh Thien's avatar Trandinh Thien
Browse files

fixed bug so that units turn back to white when player turn changes

parent 8079c6a6
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ namespace View
Unit unit = player.getUnits().ElementAt(i); // gets unit at i
if (unit.Alive)
{
if (GameFunction.hasUnitFinishedActions(unit))
if ((GameFunction.hasUnitFinishedActions(unit))&&(GameState.currentPlayer ==player))
{
spriteBatch.Draw(unit.getSpriteImage(), unit.PixelCoordinates,
unit.getCurrentFrame(), Color.Gray, 0, Vector2.Zero, 1f, SpriteEffects.None, 0.8f);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment