Skip to content

Commit

Permalink
Fix landing to each cell while moving backwards
Browse files Browse the repository at this point in the history
  • Loading branch information
BernatBC committed Jan 31, 2023
1 parent ff8b7a5 commit d7c7a65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/Movements.cs
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ private void MovePlayer() {
if (Vector3.Distance(players[playerTorn].transform.position, destination) > 0.001f) return;

moving = false;
if (movementsRemaining > 0) return;
if (movementsRemaining != 0) return;

string cell_name = cells[playerInfo[playerTorn].position].name;
carryOnMoving = false;
Expand Down

0 comments on commit d7c7a65

Please sign in to comment.