Lua: Persistent variables
Add a way for the lua scripts to set and retrieve variables that are persistent - saved and restored with the game. Invalidates saves.
This commit is contained in:
@@ -344,6 +344,7 @@ savegamestate(NHFILE *nhfp)
|
||||
savenames(nhfp);
|
||||
save_msghistory(nhfp);
|
||||
save_gamelog(nhfp);
|
||||
save_luadata(nhfp);
|
||||
if (nhfp->structlevel)
|
||||
bflush(nhfp->fd);
|
||||
gp.program_state.saving--;
|
||||
|
||||
Reference in New Issue
Block a user