Fix end turn unintentional cleanup
This commit is contained in:
parent
e455c97c67
commit
b13205da34
@ -243,7 +243,6 @@ impl Game {
|
|||||||
|
|
||||||
if supply || provinces {
|
if supply || provinces {
|
||||||
self.state = GameState::Over;
|
self.state = GameState::Over;
|
||||||
}
|
|
||||||
|
|
||||||
for p in self.players.iter_mut() {
|
for p in self.players.iter_mut() {
|
||||||
p.draw_pile.append(&mut p.played_cards);
|
p.draw_pile.append(&mut p.played_cards);
|
||||||
@ -251,6 +250,7 @@ impl Game {
|
|||||||
p.draw_pile.append(&mut p.discard_pile);
|
p.draw_pile.append(&mut p.discard_pile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fn is_active_player(&self, player_id: &str) -> bool {
|
fn is_active_player(&self, player_id: &str) -> bool {
|
||||||
match self.players.get(self.active_player) {
|
match self.players.get(self.active_player) {
|
||||||
|
Loading…
Reference in New Issue
Block a user