Changeset 8079 for code/trunk/src/modules/objects/triggers
- Timestamp:
- Mar 15, 2011, 9:47:11 PM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/modules/objects/triggers/DistanceMultiTrigger.cc
r7601 r8079 54 54 55 55 this->distance_ = 100.0f; 56 this->targetName_ = BLANKSTRING;56 this->targetName_ = ""; 57 57 this->singleTargetMode_ = false; 58 58 } … … 181 181 { 182 182 // If the targetname is no blank string single-target mode is enabled. 183 if(targetname .compare(BLANKSTRING) != 0)183 if(targetname != "") 184 184 this->singleTargetMode_ = true; 185 185 else -
code/trunk/src/modules/objects/triggers/DistanceTrigger.cc
r7601 r8079 50 50 this->distance_ = 100; 51 51 this->targetMask_.exclude(Class(BaseObject)); 52 this->targetName_ = BLANKSTRING;52 this->targetName_ = ""; 53 53 this->singleTargetMode_ = false; 54 54 } -
code/trunk/src/modules/objects/triggers/DistanceTrigger.h
r7601 r8079 70 70 71 71 inline void setTargetName(const std::string& targetname) 72 { if(targetname .compare(BLANKSTRING) != 0) this->singleTargetMode_ = true; else this->singleTargetMode_ = false; this->targetName_ = targetname; }72 { if(targetname != "") this->singleTargetMode_ = true; else this->singleTargetMode_ = false; this->targetName_ = targetname; } 73 73 inline const std::string& getTargetName(void) 74 74 { return this->targetName_; }
Note: See TracChangeset
for help on using the changeset viewer.