From ad8213f35523cbb07f418ae275af448a47cc0288 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Sun, 25 May 2025 22:37:57 -0300 Subject: 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. --- src/skill.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/skill.cc') 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 // 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; -- cgit v1.2.3