aboutsummaryrefslogtreecommitdiff
path: root/src/crmain.cc
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-06-13 03:35:56 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-06-13 03:35:56 -0300
commit15b40c7915fca14e537534ae9ba03f3add965943 (patch)
treede3ee3c61962b300bd7457cc81845e7891c4b896 /src/crmain.cc
parent7d298e5a4119df0910daa070af1d23567a83e90c (diff)
downloadgame-15b40c7915fca14e537534ae9ba03f3add965943.tar.gz
game-15b40c7915fca14e537534ae9ba03f3add965943.zip
more work on `operate.cc`
Diffstat (limited to 'src/crmain.cc')
-rw-r--r--src/crmain.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/crmain.cc b/src/crmain.cc
index 52a7c13..7e0ab42 100644
--- a/src/crmain.cc
+++ b/src/crmain.cc
@@ -592,7 +592,7 @@ int TCreature::Damage(TCreature *Attacker, int Damage, int DamageType){
this->SetTimer(SKILL_ILLUSION, 0, 0, 0, -1);
this->Outfit = this->OrgOutfit;
AnnounceChangedCreature(this->ID, CREATURE_OUTFIT_CHANGED);
- NotifyAllCreatures(this->CrObject, 2, NONE); // CREATURE_APPEAR ?
+ NotifyAllCreatures(this->CrObject, OBJECT_CHANGED, NONE);
}
if(DamageType == DAMAGE_MANADRAIN){
@@ -890,8 +890,7 @@ void TCreature::CreatureMoveStimulus(uint32 CreatureID, int Type){
return;
}
- // TODO(fusion): Find out what `Type` is here.
- if(Type != 2 // STIMULUS_TYPE_??
+ if(Type != OBJECT_CHANGED
|| !this->LockToDo
|| this->ActToDo >= this->NrToDo
|| this->ToDoList.at(this->ActToDo)->Code != TDAttack){