Changeset 1879 for code/trunk/src
- Timestamp:
- Oct 3, 2008, 2:44:46 PM (16 years ago)
- Location:
- code/trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/core/CommandEvaluation.cc
r1747 r1879 220 220 void CommandEvaluation::setEvaluatedParameter(unsigned int index, MultiType param) 221 221 { 222 if (index >= 0 && index< MAX_FUNCTOR_ARGUMENTS)222 if (index < MAX_FUNCTOR_ARGUMENTS) 223 223 this->param_[index] = param; 224 224 } … … 226 226 MultiType CommandEvaluation::getEvaluatedParameter(unsigned int index) const 227 227 { 228 if (index >= 0 && index< MAX_FUNCTOR_ARGUMENTS)228 if (index < MAX_FUNCTOR_ARGUMENTS) 229 229 return this->param_[index]; 230 230 -
code/trunk/src/core/Executor.cc
r1786 r1879 132 132 Executor& Executor::setDescriptionParam(unsigned int param, const std::string& description) 133 133 { 134 if (param >= 0 && param< MAX_FUNCTOR_ARGUMENTS)134 if (param < MAX_FUNCTOR_ARGUMENTS) 135 135 { 136 136 if (!this->bAddedDescriptionParam_[param]) … … 150 150 const std::string& Executor::getDescriptionParam(unsigned int param) const 151 151 { 152 if (param >= 0 && param< MAX_FUNCTOR_ARGUMENTS)152 if (param < MAX_FUNCTOR_ARGUMENTS) 153 153 return GetLocalisation(this->descriptionParam_[param]); 154 154 … … 234 234 Executor& Executor::setDefaultValue(unsigned int index, const MultiType& param) 235 235 { 236 if (index >= 0 && index< MAX_FUNCTOR_ARGUMENTS)236 if (index < MAX_FUNCTOR_ARGUMENTS) 237 237 { 238 238 this->defaultValue_[index] = param; -
code/trunk/src/core/Executor.h
r1786 r1879 198 198 inline MultiType getDefaultValue(unsigned int index) const 199 199 { 200 if (index >= 0 && index< MAX_FUNCTOR_ARGUMENTS)200 if (index < MAX_FUNCTOR_ARGUMENTS) 201 201 return this->defaultValue_[index]; 202 202 … … 207 207 inline bool defaultValueSet(unsigned int index) const 208 208 { 209 if (index >= 0 && index< MAX_FUNCTOR_ARGUMENTS)209 if (index < MAX_FUNCTOR_ARGUMENTS) 210 210 return this->bAddedDefaultValue_[index]; 211 211 -
code/trunk/src/core/Functor.h
r1786 r1879 105 105 inline MultiType getReturnvalue() const { return this->returnedValue_; } 106 106 107 std::string getTypenameParam(unsigned int param) const { return (param >= 0 && param< 5) ? this->typeParam_[param] : ""; }107 std::string getTypenameParam(unsigned int param) const { return (param < 5) ? this->typeParam_[param] : ""; } 108 108 std::string getTypenameReturnvalue() const { return this->typeReturnvalue_; } 109 109 -
code/trunk/src/orxonox/overlays/console/InGameConsole.cc
r1878 r1879 328 328 if (pos > maxCharsPerLine_) 329 329 pos = maxCharsPerLine_; 330 else if (pos < 0)331 pos = 0;332 330 333 331 this->consoleOverlayCursor_->setCaption(std::string(pos,' ') + cursorSymbol_); -
code/trunk/src/orxonox/overlays/console/InGameConsole.h
r1878 r1879 62 62 63 63 private: // functions 64 InGameConsole(const InGameConsole& other) {}64 InGameConsole(const InGameConsole& other); 65 65 66 66 void activate();
Note: See TracChangeset
for help on using the changeset viewer.