Changeset 7978 for code/branches/usability/src/modules
- Timestamp:
- Feb 27, 2011, 3:11:42 AM (14 years ago)
- Location:
- code/branches/usability/src/modules
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/usability/src/modules/objects/triggers/DistanceMultiTrigger.cc
r7601 r7978 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/branches/usability/src/modules/objects/triggers/DistanceTrigger.cc
r7601 r7978 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/branches/usability/src/modules/objects/triggers/DistanceTrigger.h
r7601 r7978 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_; } -
code/branches/usability/src/modules/pickup/PickupRepresentation.cc
r7548 r7978 156 156 { 157 157 COUT(4) << "PickupRepresentation: No spawner representation found." << std::endl; 158 if(this->spawnerTemplate_ == BLANKSTRING)158 if(this->spawnerTemplate_ == "") 159 159 { 160 160 COUT(4) << "PickupRepresentation: Spawner template is empty." << std::endl; -
code/branches/usability/src/modules/questsystem/effects/AddQuestHint.cc
r7552 r7978 86 86 bool AddQuestHint::setHintId(const std::string & id) 87 87 { 88 if(id .compare(BLANKSTRING) == 0)88 if(id == "") 89 89 { 90 90 COUT(2) << "Invalid id. QuestItem id {" << id << "} could not be set." << std::endl; -
code/branches/usability/src/modules/questsystem/effects/ChangeQuestStatus.cc
r7456 r7978 81 81 bool ChangeQuestStatus::setQuestId(const std::string & id) 82 82 { 83 if(id .compare(BLANKSTRING) == 0)83 if(id == "") 84 84 { 85 85 COUT(2) << "Invalid id. QuestItem id {" << id << "} could not be set." << std::endl;
Note: See TracChangeset
for help on using the changeset viewer.