aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthecharlesblake2018-01-18 13:57:53 +0000
committerthecharlesblake2018-01-18 13:57:53 +0000
commit413008eafb6cab3f2e24ca23e7e5c052dd04ddd9 (patch)
tree4929b8f3ce4003c597ecc8543d5bbd1120ec588f
parentShift around way rules are passed in main (diff)
downloadmetasol-413008eafb6cab3f2e24ca23e7e5c052dd04ddd9.tar.gz
metasol-413008eafb6cab3f2e24ca23e7e5c052dd04ddd9.zip

Fix sol_rules setup issues

-rw-r--r--src/main/game/sol_rules.cpp4
-rw-r--r--src/main/game/sol_rules.h4
2 files changed, 3 insertions, 5 deletions
diff --git a/src/main/game/sol_rules.cpp b/src/main/game/sol_rules.cpp
index 6c16b4a..7311e06 100644
--- a/src/main/game/sol_rules.cpp
+++ b/src/main/game/sol_rules.cpp
@@ -18,12 +18,12 @@ sol_rules::sol_rules() :
two_decks(false),
max_rank(13),
hole(false),
- foundations(true),
+ foundations(false),
foundations_init_card(false),
diagonal_deal(false),
cells(0),
stock_size(0),
- stock_deal_t(sdt::WASTE),
+ stock_deal_t(sdt::TABLEAU_PILES),
reserve_size(0),
reserve_stacked(false) {
}
diff --git a/src/main/game/sol_rules.h b/src/main/game/sol_rules.h
index 8aae42b..067e107 100644
--- a/src/main/game/sol_rules.h
+++ b/src/main/game/sol_rules.h
@@ -9,8 +9,6 @@
#include <rapidjson/document.h>
-#include "card.h"
-
struct sol_rules {
sol_rules();
@@ -35,7 +33,7 @@ struct sol_rules {
spaces_policy spaces_pol;
bool move_built_group;
bool two_decks;
- card::rank_t max_rank;
+ uint8_t max_rank;
bool hole;
bool foundations;
bool foundations_init_card;