Changeset 10619 in orxonox.OLD for branches/scriptimprovements/src/world_entities/script_triggers
- Timestamp:
- Apr 5, 2007, 5:30:49 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/scriptimprovements/src/world_entities/script_triggers/script_trigger.cc
r10614 r10619 142 142 143 143 144 void ScriptTrigger::setScript(const std::string& file) 145 { 144 void 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 146 155 ScriptManager* scriptManager = State::getScriptManager(); 147 156 if (scriptManager != NULL)
Note: See TracChangeset
for help on using the changeset viewer.