Fix server logic error.
This commit is contained in:
parent
ea15043357
commit
1d3464c5d0
@ -643,7 +643,7 @@ impl Game {
|
||||
for target in &self.board.pieces {
|
||||
if let Some(target) = target {
|
||||
let tile = self.board.tiles[target.tile as usize];
|
||||
if !tile.threat[!target.player as usize] && target.blocking == 0 {
|
||||
if !tile.threat[(target.player == 0) as usize] && target.blocking == 0 {
|
||||
plays.push(PlayInfo {
|
||||
valid: true,
|
||||
threat: false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user