Rename draw() hook to render() so the engine actually calls it

The engine module-lifecycle looks up HOOK_RENDER by the global
name 'render' (engine_module_lifecycle.c:166). The previous draw()
function was a global with no caller, so the editor's UI never
rendered — the engine fell back to its 'no render hook defined'
placeholder.
This commit is contained in:
Calic
2026-05-24 03:12:27 +02:00
parent b5fee40406
commit 2e25833a93

View File

@@ -594,7 +594,7 @@ function update(ctx, dt)
camera.update(dt) camera.update(dt)
end end
function draw() function render(ctx)
maps.draw_map() maps.draw_map()
ui.draw() ui.draw()
end end