Changeset 5640 in orxonox.OLD for trunk/src/lib/shell/shell_command.cc
- Timestamp:
- Nov 18, 2005, 7:29:10 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_command.cc
r5639 r5640 264 264 if (!strcmp(enumCMD->getName(), inputSplits.getString(fktPos))) 265 265 { 266 if (objectPointer == NULL && enumCMD-> functorType == ShellCommand_Objective)266 if (objectPointer == NULL && enumCMD->executor->getType() == Executor_Objective) 267 267 { 268 268 delete itCMD; … … 339 339 if (this == NULL) 340 340 return NULL; 341 if (count == 0) 342 return this; 343 if (count > this->paramCount) 344 count = this->paramCount; 345 346 va_list defaultList; 347 va_start(defaultList, count); 348 349 for (unsigned int i = 0; i < count; i++) 350 { 351 352 353 switch (this->parameters[i]) 354 { 355 case MT_BOOL: 356 this->defaultValue[i].setInt(va_arg(defaultList, int)); 357 break; 358 case MT_CHAR: 359 this->defaultValue[i].setChar((char)va_arg(defaultList, int)); 360 break; 361 case MT_STRING: 362 this->defaultValue[i].setString(va_arg(defaultList, char*)); 363 break; 364 case MT_INT: 365 this->defaultValue[i].setInt(va_arg(defaultList, int)); 366 break; 367 /* case MT_UINT: 368 this->defaultValue[i].setInt((int)va_arg(defaultList, unsigned int)); 369 break;*/ 370 case MT_FLOAT: 371 this->defaultValue[i].setFloat(va_arg(defaultList, double)); 372 break; 373 /* case MT_LONG: 374 this->defaultValue[i].setInt((int) va_arg(defaultList, long)); 375 break;*/ 376 default: 377 break; 378 } 379 } 341 342 va_list values; 343 va_start(values, count); 344 345 this->executor->defaultValues(count, values); 346 380 347 return this; 381 348 }
Note: See TracChangeset
for help on using the changeset viewer.