1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 23:53:52 +00:00

automatically start start scripts at startup

This commit is contained in:
Marc Zinnschlag 2010-07-04 10:50:19 +02:00
parent 4482884eb5
commit cdcc244fc5

View file

@ -9,6 +9,11 @@ namespace MWScript
: mStore (store), mScriptManager (scriptManager) : mStore (store), mScriptManager (scriptManager)
{ {
addScript ("Main"); addScript ("Main");
for (ESMS::RecListT<ESM::StartScript>::MapType::const_iterator iter
(store.startScripts.list.begin());
iter != store.startScripts.list.end(); ++iter)
addScript (iter->second.script);
} }
void GlobalScripts::addScript (const std::string& name) void GlobalScripts::addScript (const std::string& name)