aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/game_state.cpp
diff options
context:
space:
mode:
authorthecharlesblake2018-02-01 12:59:29 +0000
committerthecharlesblake2018-02-01 12:59:29 +0000
commitfff4e0472b422e09f176c1deffdf4f0a30b15f4c (patch)
treec81180e672660fe4ac7c1071b965e9663aaef63e /src/main/game/game_state.cpp
parentChange pile comp ops to assess size first (diff)
downloadmetasol-fff4e0472b422e09f176c1deffdf4f0a30b15f4c.tar.gz
metasol-fff4e0472b422e09f176c1deffdf4f0a30b15f4c.zip

Remove order on cache flag from game state

Diffstat (limited to 'src/main/game/game_state.cpp')
-rw-r--r--src/main/game/game_state.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/main/game/game_state.cpp b/src/main/game/game_state.cpp
index faab429..ad2ac3f 100644
--- a/src/main/game/game_state.cpp
+++ b/src/main/game/game_state.cpp
@@ -277,21 +277,16 @@ void game_state::undo_move(const move m) {
// reorders the pile refs so that the largest pile is first
void game_state::place_card(pile_ref pr, card c) {
piles[pr].place(c);
-#ifndef ORDER_ON_CACHE
eval_pile_order(pr, true);
-#endif
}
// Same as above but for taking cards
card game_state::take_card(pile_ref pr) {
card c = piles[pr].take();
-#ifndef ORDER_ON_CACHE
eval_pile_order(pr, false);
-#endif
return c;
}
-#ifndef ORDER_ON_CACHE
// Assesses whether the pile ref that was modified was a tableau, cell or
// reserve pile, and if so makes the relevant function call
void game_state::eval_pile_order(pile_ref pr, bool is_place) {
@@ -361,7 +356,6 @@ void game_state::eval_pile_order(list<pile_ref>& pile_lst, pile_ref changed_pr,
}
#endif
}
-#endif
////////////////////////