Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 5, 2007, 5:30:49 PM (18 years ago)
Author:
snellen
Message:

loading Scripttriggers from the xml file works again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/scriptimprovements/src/world_entities/script_triggers/script_trigger.cc

    r10614 r10619  
    142142
    143143
    144 void ScriptTrigger::setScript(const std::string& file)
    145 {
     144void ScriptTrigger::setScript(const std::string& filename)
     145{
     146
     147  std::string file = filename;
     148
     149  unsigned int seperation =  filename.find_last_of('/');
     150  if (seperation != std::string::npos)
     151  {
     152    file = filename.substr( seperation+1 );
     153  }
     154
    146155  ScriptManager* scriptManager = State::getScriptManager();
    147156  if (scriptManager != NULL)
Note: See TracChangeset for help on using the changeset viewer.