| 411 | |
| 412 | |
| 413 | void cRoot::TickCommands(void) |
| 414 | { |
| 415 | // Execute any pending commands: |
| 416 | cCommandQueue PendingCommands; |
| 417 | { |
| 418 | cCSLock Lock(m_CSPendingCommands); |
| 419 | std::swap(PendingCommands, m_PendingCommands); |
| 420 | } |
| 421 | for (cCommandQueue::iterator itr = PendingCommands.begin(), end = PendingCommands.end(); itr != end; ++itr) |
| 422 | { |
| 423 | ExecuteConsoleCommand(itr->m_Command, *(itr->m_Output)); |
| 424 | } |
| 425 | } |
| 426 | |
| 427 | |
| 428 |