diff options
| author | thecharlesblake | 2018-04-06 22:40:18 +0100 |
|---|---|---|
| committer | thecharlesblake | 2018-04-06 22:40:18 +0100 |
| commit | 77df00db4e91eae3e7d488aaa09f2fb01665f802 (patch) | |
| tree | 944ed4daa458fce620a26d8aefddc43fd9f919d7 /src/main/game/game_state.legal_moves.cpp | |
| parent | Merge pull request #51 from thecharlesblake/fix-build-lab-machines (diff) | |
| download | metasol-77df00db4e91eae3e7d488aaa09f2fb01665f802.tar.gz metasol-77df00db4e91eae3e7d488aaa09f2fb01665f802.zip | |
Add streamliner & both, fix auto-founds bug
Diffstat (limited to 'src/main/game/game_state.legal_moves.cpp')
| -rw-r--r-- | src/main/game/game_state.legal_moves.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/main/game/game_state.legal_moves.cpp b/src/main/game/game_state.legal_moves.cpp index 24304a1..5a49ec9 100644 --- a/src/main/game/game_state.legal_moves.cpp +++ b/src/main/game/game_state.legal_moves.cpp @@ -13,11 +13,7 @@ typedef sol_rules::build_policy pol; typedef sol_rules::spaces_policy s_pol; typedef sol_rules::stock_deal_type sdt; -vector<game_state::move> game_state::get_legal_moves( -#ifndef NO_CARD_JUST_MOVED - move parent_move -#endif -) { +vector<game_state::move> game_state::get_legal_moves(move parent_move) { // The next legal moves vector<move> moves; @@ -45,11 +41,9 @@ vector<game_state::move> game_state::get_legal_moves( // just moved a card to if ((rules.hole && rem_ref == hole) || piles[rem_ref].empty() -#ifndef NO_CARD_JUST_MOVED || (rem_ref == parent_move.to && parent_move.count <= 1 && parent_move.from != stock) -#endif ) continue; // If we have a foundations card as the rem_ref |
