aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-04-22 00:34:20 +0100
committerubq323 <ubq323@ubq323.website>2024-04-22 00:34:20 +0100
commit11c8b134d7de3d7b2249d74b26a87bc9d6acc27d (patch)
tree7d6d646c73c893f1e978a6f4aecbeeb41a7f80c4 /server
parentc13872d6ef54af30fa476cb690ebc7d5725c0537 (diff)
rle
Diffstat (limited to 'server')
-rw-r--r--server/main.ha2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/main.ha b/server/main.ha
index 41e6b6a..475d19a 100644
--- a/server/main.ha
+++ b/server/main.ha
@@ -69,7 +69,6 @@ export fn main() void = {
for (state.running) {
const timeout = time::diff(now, next);
- fmt::printfln("running loop, timeout {} sec",timeout/time::SECOND)!;
loop(&state, timeout);
now = time::now(time::clock::MONOTONIC);
@@ -289,6 +288,7 @@ fn unload_distant_chunks(state: *server_state) void = {
fmt::printfln("unloading {},{}",
state.pictures[i].world_pos.0,
state.pictures[i].world_pos.1)!;
+ free(state.pictures[i].d);
delete(state.pictures[i]);
};
};