aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralaric <alaric@netmythos.org>2024-04-10 06:34:35 -0700
committeralaric <alaric@netmythos.org>2024-04-10 06:34:35 -0700
commit07e97f107706098712d23b433da34ad4a0dcea88 (patch)
tree13f846817ff766f0d24a3f258780a6ddfa8cef60
parent3215bdb14f88c53d68b6ed8348bafea36c7bebb9 (diff)
downloadengine-07e97f107706098712d23b433da34ad4a0dcea88.tar.gz
engine-07e97f107706098712d23b433da34ad4a0dcea88.zip
fix!: put delta_time back as a function param
-rw-r--r--src/wasm.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm.zig b/src/wasm.zig
index 61c3fb2..04767b7 100644
--- a/src/wasm.zig
+++ b/src/wasm.zig
@@ -10,9 +10,9 @@ export fn init() void {
}
}
-export fn update() void {
+export fn update(delta_time: f32) void {
if (!builtin.is_test) {
- if (@hasDecl(root, "update")) root.update() else @compileError("WASM build requires an update() function in your root module");
+ if (@hasDecl(root, "update")) root.update(delta_time) else @compileError("WASM build requires an update(delta_time: f32) function in your root module");
}
}