Big API refactor
This commit is contained in:
@@ -25,7 +25,7 @@ pub struct BoardWidget<'a> {
|
||||
impl<'a> BoardWidget<'a> {
|
||||
/// Creates a widget that renders `board`, scrolling to follow the player.
|
||||
pub fn new(board: &'a Board) -> Self {
|
||||
let focus = (board.player.x, board.player.y);
|
||||
let focus = (board.player.x as i32, board.player.y as i32);
|
||||
Self { board, focus }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user