diff options
| author | thecharlesblake | 2018-01-27 00:14:42 +0000 |
|---|---|---|
| committer | thecharlesblake | 2018-01-27 00:14:42 +0000 |
| commit | 9ae4c039b998943dbe771772ee06dfbcad3d6b8a (patch) | |
| tree | af4a7f84a7d8945cb9e679f9111a3c11de73190d /src/main/input-output/output/state_printer.cpp | |
| parent | Fix simple hash bug (diff) | |
| download | metasol-9ae4c039b998943dbe771772ee06dfbcad3d6b8a.tar.gz metasol-9ae4c039b998943dbe771772ee06dfbcad3d6b8a.zip | |
Alter printing to work when pile refs are changed
Diffstat (limited to 'src/main/input-output/output/state_printer.cpp')
| -rw-r--r-- | src/main/input-output/output/state_printer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/input-output/output/state_printer.cpp b/src/main/input-output/output/state_printer.cpp index 1d1c182..0fdacae 100644 --- a/src/main/input-output/output/state_printer.cpp +++ b/src/main/input-output/output/state_printer.cpp @@ -15,11 +15,11 @@ ostream& state_printer::print(ostream& stream, const game_state& gs) { } if (gs.rules.cells) { state_printer::print_header(stream, "Cells"); - state_printer::print_piles(stream, gs.cells, gs); + state_printer::print_piles(stream, gs.original_cells, gs); } if (gs.rules.tableau_pile_count > 0) { state_printer::print_header(stream, "Tableau Piles"); - state_printer::print_piles(stream, gs.tableau_piles, gs); + state_printer::print_piles(stream, gs.original_tableau_piles, gs); } if (gs.rules.reserve_size > 0) { if (gs.rules.reserve_stacked) { @@ -27,7 +27,7 @@ ostream& state_printer::print(ostream& stream, const game_state& gs) { } else { state_printer::print_header(stream, "Reserve"); } - state_printer::print_piles(stream, gs.reserve, gs); + state_printer::print_piles(stream, gs.original_reserve, gs); } if (gs.rules.stock_size > 0) { if (gs.rules.stock_deal_t == sdt::WASTE) { |
