diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-10-12 17:38:12 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-10-12 17:38:12 -0300 |
| commit | b9124b049a47323cafa8807db4d501fb32a53297 (patch) | |
| tree | 0eb2778a68c5511a06632146c457ec7fee07f161 /src/cract.cc | |
| parent | 60531bf63e9d93535e6d7ea5201a708392e738f6 (diff) | |
| download | game-b9124b049a47323cafa8807db4d501fb32a53297.tar.gz game-b9124b049a47323cafa8807db4d501fb32a53297.zip | |
fix problem with outfit comparisons - fixes #39
Diffstat (limited to 'src/cract.cc')
| -rw-r--r-- | src/cract.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cract.cc b/src/cract.cc index dea0ae2..e0af29f 100644 --- a/src/cract.cc +++ b/src/cract.cc @@ -1566,12 +1566,11 @@ void TCreature::NotifyChangeInventory(void){ AnnounceChangedCreature(this->ID, CREATURE_SPEED_CHANGED); }else if(SkillNr == SKILL_ILLUSION){ if(NewDelta[SKILL_ILLUSION] > 0){ - if(this->Outfit.OutfitID != 0 || this->Outfit.ObjectType != 0){ + if(!this->IsInvisible()){ if(Skill->TimerValue() != 0){ this->SetTimer(SKILL_ILLUSION, 0, 0, 0, -1); } - this->Outfit.OutfitID = 0; - this->Outfit.ObjectType = 0; + this->Outfit = TOutfit::Invisible(); } }else if(Skill->TimerValue() == 0){ this->Outfit = this->OrgOutfit; |
