diff options
author | Nao Pross <naopross@thearcway.org> | 2018-12-17 15:33:56 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2018-12-17 15:33:56 +0100 |
commit | 6f809f525fc2ab6b93cff48b55abe104699eb3d8 (patch) | |
tree | 645329c9ad54215ca47617c645e11ac7c6ce89ae /src/main.rs | |
parent | Move back from Rust 2018 edition to stable (diff) | |
download | Subconscious-rs-6f809f525fc2ab6b93cff48b55abe104699eb3d8.tar.gz Subconscious-rs-6f809f525fc2ab6b93cff48b55abe104699eb3d8.zip |
Implement loading of tile sets
Diffstat (limited to '')
-rw-r--r-- | src/main.rs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/main.rs b/src/main.rs index 3cf9d47..b5190bf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -45,14 +45,16 @@ fn main() { graphics::update(&mut window); } - // aquire state resource - let mut game_state = match game_state.lock() { - Ok(game_state) => game_state, - Err(poisoned) => poisoned.into_inner(), - }; - - // stop game thread - game_state.running = false; + { + // aquire state resource + let mut game_state = match game_state.lock() { + Ok(game_state) => game_state, + Err(poisoned) => poisoned.into_inner(), + }; + + // stop game thread + game_state.running = false; + } }); // wait for both thread to die |