Commit 8cd13955ad417b3405e9d23c67c1e64267641370

Authored by DarkGod
1 parent ad88a823

Added core.game.requestNextTick()

Showing 1 changed file with 8 additions and 0 deletions
... ... @@ -590,6 +590,13 @@ static int lua_reset_locale(lua_State *L)
590 590 return 0;
591 591 }
592 592
  593 +extern bool tickPaused;
  594 +static int lua_force_next_tick(lua_State *L)
  595 +{
  596 + tickPaused = FALSE;
  597 + return 0;
  598 +}
  599 +
593 600 static const struct luaL_Reg gamelib[] =
594 601 {
595 602 {"setRebootMessage", lua_set_reboot_message},
... ... @@ -602,6 +609,7 @@ static const struct luaL_Reg gamelib[] =
602 609 {"sleep", lua_sleep},
603 610 {"setRealtime", lua_set_realtime},
604 611 {"setFPS", lua_set_fps},
  612 + {"requestNextTick", lua_force_next_tick},
605 613 {"checkError", lua_check_error},
606 614 {"resetLocale", lua_reset_locale},
607 615 {NULL, NULL},
... ...