formatted
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use std::cmp::{max, min};
|
||||
|
||||
use rltk::{Algorithm2D, BaseMap, Point, RandomNumberGenerator, RGB, Rltk};
|
||||
use rltk::{Algorithm2D, BaseMap, Point, RandomNumberGenerator, Rltk, RGB};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use specs::prelude::*;
|
||||
|
||||
@@ -65,7 +65,6 @@ impl Map {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
fn is_exit_valid(&self, x: i32, y: i32) -> bool {
|
||||
if x < 1 || x > self.width - 1 || y < 1 || y > self.height - 1 {
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user