| 7 | IMPLEMENT(Wait_Upgrades); |
| 8 | |
| 9 | bool Wait_Upgrades::execute(aithread &thread) const |
| 10 | { |
| 11 | // Debug |
| 12 | thread.saveDebug(Text::Green, this->getOpcode()); |
| 13 | |
| 14 | // If upgrades are finished, then move on to next opcode |
| 15 | if ( MainController.getFlags() & CONTROLLER_UPGRADES_FINISHED ) |
| 16 | return thread.noretry(); |
| 17 | |
| 18 | // Otherwise retry this opcode |
| 19 | return thread.retry(); |
| 20 | } |