Browse Source

effect

master
e-dt 4 years ago
parent
commit
938ef5a8a7
  1. 4
      src/main.rs

4
src/main.rs

@ -144,10 +144,10 @@ impl EventHandler for Apr {
self.__test_pawn_h_y = self.__test_pawn_y - posy; self.__test_pawn_h_y = self.__test_pawn_y - posy;
self.__test_pawn_held = true; self.__test_pawn_held = true;
} }
} else {
self.set_colour(((self.__test_pawn_y - START_Y) / BOARD_SQUARE_SIZE) as usize, ((self.__test_pawn_x - START_X) / BOARD_SQUARE_SIZE) as usize, 3)?;
} }
} }
self.set_colour((self.__test_pawn_x - START_X) / BOARD_SQUARE_SIZE, (self.__test_pawn_y - START_Y) / BOARD_SQUARE_SIZE, 3);
Ok(()) Ok(())
} }

Loading…
Cancel
Save