aboutsummaryrefslogtreecommitdiff
path: root/pixel-client/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'pixel-client/src/main.rs')
-rw-r--r--pixel-client/src/main.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/pixel-client/src/main.rs b/pixel-client/src/main.rs
index 7501aba2..65de7b15 100644
--- a/pixel-client/src/main.rs
+++ b/pixel-client/src/main.rs
@@ -52,7 +52,7 @@ pub enum Action {
}
enum State {
- Ingame(Game),
+ Ingame(Box<Game>),
Menu(Menu),
}
@@ -89,10 +89,10 @@ fn main() {
let mut state = match args.action.unwrap_or_default() {
Action::Menu => State::Menu(Menu::new()),
- Action::Join { server_address } => State::Ingame(Game::new(
+ Action::Join { server_address } => State::Ingame(Box::new(Game::new(
Network::connect(&server_address).unwrap(),
- &renderer.atlas_layout(),
- )),
+ renderer.atlas_layout(),
+ ))),
};
let mut events = sdl_context.event_pump().unwrap();