aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/search-state/game_state.cpp
diff options
context:
space:
mode:
authorCharlie Blake2018-07-19 11:06:38 +0100
committerCharlie Blake2018-07-19 11:06:38 +0100
commit28c5a79425fa12f9466e27385404f429f76f7524 (patch)
tree40301029469de5e8e114cc8527c4ca98069c2df2 /src/main/game/search-state/game_state.cpp
parentCanfield rules schema and update default rules (diff)
downloadmetasol-28c5a79425fa12f9466e27385404f429f76f7524.tar.gz
metasol-28c5a79425fa12f9466e27385404f429f76f7524.zip

Update rules so new schema works w/ existing games

Diffstat (limited to 'src/main/game/search-state/game_state.cpp')
-rw-r--r--src/main/game/search-state/game_state.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/game/search-state/game_state.cpp b/src/main/game/search-state/game_state.cpp
index 0388d9c..10c8e20 100644
--- a/src/main/game/search-state/game_state.cpp
+++ b/src/main/game/search-state/game_state.cpp
@@ -38,6 +38,7 @@ typedef sol_rules::build_policy pol;
typedef sol_rules::stock_deal_type sdt;
typedef sol_rules::face_up_policy fu;
typedef game_state::streamliner_options sos;
+typedef sol_rules::foundations_init_type fit;
//////////////////
// CONSTRUCTORS //
@@ -139,7 +140,7 @@ game_state::game_state(const sol_rules& s_rules, int seed, streamliner_options s
}
// If the foundations begin filled, then fills them
- if (rules.foundations_init_card) {
+ if (rules.foundations_init_cards == fit::ALL) {
for (uint8_t f_idx = 0; f_idx < 4*(rules.two_decks ? 2:1); f_idx++) {
card c = card(f_idx % uint8_t(4), 1);