| 6 | IMPLEMENT(Kill_Thread); |
| 7 | |
| 8 | bool Kill_Thread::execute(aithread &thread) const |
| 9 | { |
| 10 | for ( auto i = aiThreadList.begin(); i != aiThreadList.end(); ++i ) |
| 11 | { |
| 12 | if ( i->getFlags() & AI_THREAD_KILLABLE ) |
| 13 | i->killThread(); |
| 14 | } |
| 15 | |
| 16 | // Save debug info and return |
| 17 | thread.saveDebug(Text::Green, this->getOpcode()); |
| 18 | return true; |
| 19 | } |