Skip to content

Commit

Permalink
Fixed forced tactical roll condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
redleek committed Dec 6, 2014
1 parent e15789d commit bd96b9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 5 additions & 2 deletions TacticalSpaceCheeseRacer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -435,15 +435,18 @@ static void Main(string[] args)
// Check if the player is on a cheese square
for (int item = 0; item < cheese_squares.Length; item++)
{
if (item == players[playercount].position)
if (cheese_squares[item] == players[playercount].position)
{
TacticalRoll();
players[playercount].tact_roll_used = true;
break;
}
}

// Ask if the player wants to roll the tactics dice.
PrintPosition(playercount);

// End of turn reset.
players[playercount].tact_roll_used = false;

Console.Write("Press enter to continue...");
Console.ReadLine();
Expand Down
1 change: 0 additions & 1 deletion TacticalSpaceCheeseRacer/TacticalSpaceCheeseRacer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Test.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
Expand Down

0 comments on commit bd96b9f

Please sign in to comment.