Changeset 7493 for code/trunk/src/modules/objects
- Timestamp:
- Sep 27, 2010, 7:53:30 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/objects/Script.cc
r7486 r7493 186 186 { 187 187 // If the number of executions have been used up. 188 if(this->times_ != Script::INF && this->remainingExecutions_ == 0)188 if(this->times_ != Script::INF && this->remainingExecutions_ <= 0) 189 189 return; 190 190 } … … 209 209 callStaticNetworkFunction(Script::executeHelper, it->first, this->getCode(), this->getMode(), this->getNeedsGraphics()); 210 210 if(this->times_ != Script::INF) // Decrement the number of remaining executions. 211 { 211 212 this->remainingExecutions_--; 213 if(this->remainingExecutions_ <= 0) 214 break; 215 } 212 216 } 213 217 }
Note: See TracChangeset
for help on using the changeset viewer.