diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 4a3db39..a0c6bbc 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -57,3 +57,5 @@ jobs: run: lua -e "local fenster = require('fenster');print(fenster.time())" # Currently does not work for Windows (can't import 'fenster') if: matrix.os != 'windows-latest' + +# TODO: Run something like luacheck on the demos diff --git a/src/main.c b/src/main.c index a317ec1..e16ea75 100644 --- a/src/main.c +++ b/src/main.c @@ -234,7 +234,7 @@ static int lua_fenster_loop(lua_State *L) { // sleep for the remaining frame time to reach target frame time fenster_sleep(p_lf->target_frame_time - last_frame_time); } - now = fenster_time(); + now = fenster_time(); // update now after sleep p_lf->delta = (double) (now - p_lf->start_frame_time) / 1000.0; p_lf->start_frame_time = now;