16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 13:29:18 +02:00

toggleable lua support during build

This commit is contained in:
milek7
2021-03-06 03:49:24 +01:00
parent 16f856c833
commit 994b1446c1
6 changed files with 34 additions and 8 deletions

View File

@@ -319,7 +319,11 @@ void state_serializer::deserialize_lua( cParser &Input, scene::scratch_data &Scr
Input.getTokens(1, false);
std::string file;
Input >> file;
#ifdef WITH_LUA
simulation::Lua.interpret(Global.asCurrentSceneryPath + file);
#else
ErrorLog(file + ": lua scripts not supported in this build.");
#endif
}
void