diff options
author | Guillaume Pasquet <dev@etenil.net> | 2020-01-02 17:28:15 +0000 |
---|---|---|
committer | Guillaume Pasquet <dev@etenil.net> | 2020-01-02 17:28:15 +0000 |
commit | 518ad5caf2cbf313cb784d9fd1a51632fe600fae (patch) | |
tree | dca06c8733f24550155af486d96846423f5ac657 /src/main.rs | |
parent | f14e0005f082b5d4cbca0f2e0d501ad15da3c856 (diff) |
Fix for invisible enemies
- Don't double-count visibility
- Set enemies visibility with LOS
- Set dirty flag when enemies are revealed
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index e45701a..f17b9cf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -46,7 +46,6 @@ fn main() { let mut reader = input.read_sync(); loop { - state.render_player(); state.render_level(); state.render_entities(); state.render_player(); |