diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/main.ha | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/main.ha b/client/main.ha index 542c8f9..fa63004 100644 --- a/client/main.ha +++ b/client/main.ha @@ -62,6 +62,8 @@ export fn main() void = { let mouse_pos: pos = (0,0); let mouse_down = false; for (!quit) { + do_movement(&camera_pos); + let ev = sdl2::event { ... }; for (sdl2::SDL_PollEvent(&ev)! == 1) switch (ev.event_type) { case sdl2::SDL_EventType::QUIT => quit = true; @@ -80,7 +82,6 @@ export fn main() void = { case => void; }; - do_movement(&camera_pos); match (paintui::tick(&pstate, mouse_pos, mouse_down)) { case void => yield; @@ -99,7 +100,6 @@ export fn main() void = { }; }; - for (let i = 0z; i < len(pictures); i += 1) { const psurf = picture_surfaces[i]; const pic = &pictures[i]; |