diff options
| author | jacob1 <jfu614@gmail.com> | 2013-07-25 23:43:25 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-07-25 23:43:25 (GMT) |
| commit | bfc1cf99cabd5b75f70a8de39cc4b00c408fc6b8 (patch) | |
| tree | 644bbe8435b3f31c738325cf55419860dd9fa6f4 /src/cat/LuaScriptInterface.cpp | |
| parent | beff3db8d291b00b47fc13a1b936fa4419e3d78d (diff) | |
| download | powder-bfc1cf99cabd5b75f70a8de39cc4b00c408fc6b8.zip powder-bfc1cf99cabd5b75f70a8de39cc4b00c408fc6b8.tar.gz | |
instant save option option, hold ctrl when clicking a save in the save preview to skip the entire preview and not load the comments
Diffstat (limited to 'src/cat/LuaScriptInterface.cpp')
| -rw-r--r-- | src/cat/LuaScriptInterface.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cat/LuaScriptInterface.cpp b/src/cat/LuaScriptInterface.cpp index 4bea8ed..d1319f7 100644 --- a/src/cat/LuaScriptInterface.cpp +++ b/src/cat/LuaScriptInterface.cpp @@ -1378,8 +1378,9 @@ int LuaScriptInterface::simulation_loadStamp(lua_State * l) int LuaScriptInterface::simulation_loadSave(lua_State * l) { int saveID = luaL_optint(l,1,0); - int history = luaL_optint(l,2,0); //Exact second a previous save was saved - luacon_controller->OpenSavePreview(saveID, history); + int instant = luaL_optint(l,2,0); + int history = luaL_optint(l,3,0); //Exact second a previous save was saved + luacon_controller->OpenSavePreview(saveID, history, instant?true:false); return 0; } |
