From 77df00db4e91eae3e7d488aaa09f2fb01665f802 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Fri, 6 Apr 2018 22:40:18 +0100 Subject: Add streamliner & both, fix auto-founds bug --- src/main/game/game_state.legal_moves.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/main/game/game_state.legal_moves.cpp') 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::get_legal_moves( -#ifndef NO_CARD_JUST_MOVED - move parent_move -#endif -) { +vector game_state::get_legal_moves(move parent_move) { // The next legal moves vector moves; @@ -45,11 +41,9 @@ vector 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 -- cgit v1.2.1