Changeset 419fa2
- Timestamp:
- Jan 30, 2015, 1:53:24 PM (10 years ago)
- Children:
- 6bbdfb
- Parents:
- 7e6c0d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/Actions/ActionQueue.cpp ¶
r7e6c0d r419fa2 205 205 pushStatus("FAIL: Action "+*boost::get_error_info<ActionNameString>(e)+" has failed."); 206 206 World::getInstance().setExitFlag(5); 207 clearQueue(CurrentAction);208 clearTempQueue();209 207 lastActionOk = false; 210 208 std::cerr << "Remaining Actions cleared from queue." << std::endl; … … 212 210 pushStatus("FAIL: General exception caught, aborting."); 213 211 World::getInstance().setExitFlag(134); 214 clearQueue(CurrentAction);215 clearTempQueue();216 212 std::cerr << "Remaining Actions cleared from queue." << std::endl; 217 213 } … … 219 215 const Action *lastaction = actionqueue[CurrentAction]; 220 216 // step on to next action and check for end 221 CurrentAction++; 217 if (lastActionOk) 218 CurrentAction++; 222 219 // insert new actions (before [CurrentAction]) if they have been spawned 223 220 // we must have an extra vector for this, as we cannot change actionqueue 224 221 // while an action instance is "in-use" 225 222 mtx_actionqueue.unlock(); 223 224 if (!lastActionOk) { 225 clearQueue(CurrentAction); 226 clearTempQueue(); 227 } 226 228 227 229 insertTempQueue();
Note:
See TracChangeset
for help on using the changeset viewer.