summaryrefslogtreecommitdiff
path: root/noncore/games/backgammon/moveengine.cpp
Unidiff
Diffstat (limited to 'noncore/games/backgammon/moveengine.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/games/backgammon/moveengine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/games/backgammon/moveengine.cpp b/noncore/games/backgammon/moveengine.cpp
index a4145cc..b102258 100644
--- a/noncore/games/backgammon/moveengine.cpp
+++ b/noncore/games/backgammon/moveengine.cpp
@@ -53,6 +53,7 @@ void MoveEngine::position(Pieces& pieces,bool non_qte)
53 { 53 {
54 if(population[a].total>0) //player 1 pieces 54 if(population[a].total>0) //player 1 pieces
55 { 55 {
56 if (a < 26)
56 pieces.player1[player1_counter].x=x_coord[a]-offset; 57 pieces.player1[player1_counter].x=x_coord[a]-offset;
57 if(a>=0 && a<13) 58 if(a>=0 && a<13)
58 { 59 {
@@ -96,6 +97,7 @@ void MoveEngine::position(Pieces& pieces,bool non_qte)
96 97
97 else if(population[a].total<0) //player 2 pieces 98 else if(population[a].total<0) //player 2 pieces
98 { 99 {
100 if (a < 26)
99 pieces.player2[player2_counter].x=x_coord[a]-offset; 101 pieces.player2[player2_counter].x=x_coord[a]-offset;
100 if(a>=0 && a<13) 102 if(a>=0 && a<13)
101 { 103 {