diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-05-25 22:37:57 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-05-25 22:37:57 -0300 |
| commit | ad8213f35523cbb07f418ae275af448a47cc0288 (patch) | |
| tree | 4d77b8ff2b44461734b5a2cbaad5402b4a94736f /src/skill.cc | |
| parent | 5f883a80175a4cc9abda9d647a6a0d73bda84878 (diff) | |
| download | game-ad8213f35523cbb07f418ae275af448a47cc0288.tar.gz game-ad8213f35523cbb07f418ae275af448a47cc0288.zip | |
linux Makefile + fix most compilation problems
I wanted to see if the compiler had any problems with the code
so far and added a few stub definitions so that each file would
properly compile. We still fail when linking but we're able to to
find and fix compile time errors.
Diffstat (limited to 'src/skill.cc')
| -rw-r--r-- | src/skill.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/skill.cc b/src/skill.cc index 6ca04ef..aa69658 100644 --- a/src/skill.cc +++ b/src/skill.cc @@ -1,8 +1,11 @@ #include "skill.hh" - #include "enums.hh" #include "creature.hh" +#include "monster.hh" #include "player.hh" + +#include "stubs.hh" + #include <math.h> // TSkill REGULAR FUNCTIONS @@ -952,8 +955,7 @@ void TSkillIllusion::Event(int Range){ if(this->Get() <= 0){ Master->Outfit = Master->OrgOutfit; AnnounceChangedCreature(Master->ID, 3); - // TODO(fusion): I'm not sure this is correct. - NotifyAllCreatures(&Master->CrObject, 2, &NONE); + NotifyAllCreatures(Master->CrObject, 2, NONE); } } } @@ -1101,7 +1103,7 @@ void TSkillEnergy::Event(int Range){ // TSkillBase //============================================================================== TSkillBase::TSkillBase(void){ - STATIC_ASSERT(NARRAY(this>Skills) == NARRAY(this->TimerList)); + STATIC_ASSERT(NARRAY(this->Skills) == NARRAY(this->TimerList)); for(int i = 0; i < NARRAY(this->Skills); i += 1){ this->Skills[i] = NULL; this->TimerList[i] = NULL; |
