mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-14 07:21:51 +00:00
fix: app.sleep_until max_ticks ignored
This commit is contained in:
parent
ad6a6666da
commit
686ace37f1
1 changed files with 1 additions and 0 deletions
|
|
@ -50,6 +50,7 @@ if app then
|
||||||
local ticks = 0
|
local ticks = 0
|
||||||
while ticks < max_ticks and not predicate() do
|
while ticks < max_ticks and not predicate() do
|
||||||
app.tick()
|
app.tick()
|
||||||
|
ticks = ticks + 1
|
||||||
end
|
end
|
||||||
if ticks == max_ticks then
|
if ticks == max_ticks then
|
||||||
error("max ticks exceed")
|
error("max ticks exceed")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue