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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user