formatted

This commit is contained in:
2022-01-27 22:38:44 +01:00
parent a1ffc7b95d
commit e68fa87fc9
8 changed files with 94 additions and 31 deletions

View File

@@ -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;