summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-04-11 20:09:52 +0100
committerubq323 <ubq323@ubq323.website>2024-04-11 20:09:52 +0100
commit0eeff114b44ccdd6bc430bc5f9583e2a3eea9823 (patch)
treea98e596e883e1d59937f8a1a607f1fc580c7c36f /client
parent79a9af88e53a6b0f7070a5fe97bbd399d139d00d (diff)
save the world.... my final message.....
Diffstat (limited to 'client')
-rw-r--r--client/main.ha4
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];