diff options
Diffstat (limited to 'src/state.rs')
-rw-r--r-- | src/state.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/state.rs b/src/state.rs index 0badaf0..5e68d55 100644 --- a/src/state.rs +++ b/src/state.rs @@ -59,7 +59,7 @@ impl State { } } - fn clear_los(&mut self) { + pub fn fog_of_war(&mut self) { { let grid = self.grid.as_mut().unwrap(); grid.clear_fog_of_war(self.player.location(), PLAYER_SIGHT); @@ -135,11 +135,4 @@ impl State { _ => Err(String::from("Not on stairs!")), } } - - pub fn fog_of_war(&mut self) { - self.grid - .as_mut() - .unwrap() - .clear_fog_of_war(self.player.location(), PLAYER_SIGHT); - } } |