Merge branch 'expose-demoplayback' into 'next'

Expose demo.playback to Lua

See merge request KartKrew/Kart-Public!217
This commit is contained in:
Sal 2020-08-27 18:18:39 -04:00
commit 734ce8dee5
1 changed files with 3 additions and 0 deletions

View File

@ -9762,6 +9762,9 @@ static inline int lib_getenum(lua_State *L)
} else if (fastcmp(word,"exitcountdown")) {
lua_pushinteger(L, exitcountdown); // This name is pretty dumb. Hence why we'll prefer more descriptive names at least in Lua...
return 1;
} else if (fastcmp(word,"replayplayback")) {
lua_pushboolean(L, demo.playback);
return 1;
}
return 0;
}