• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Taking out magic effect limit (TFS 1.0)] errors while compiling.

Nenth

I'm just cleaning here;
Joined
Mar 20, 2016
Messages
46
Reaction score
12
Hey, so I'm trying to take out magic effect limit from TFS 1.0.
I changed the value of magic effect from uint8_t to uint16_t and everything is fine till I change
Code:
enum MagicEffectClasses : uint8_t  ---- it's placed in const.h
to
enum MagicEffectClasses : uint16_t
and
Code:
CONST_ME_NONE             = 0xFF   --- also placed in const.h
to
CONST_ME_NONE             = 0xFFFF

Here is my log with errors: http://pastebin.com/3F6LKYQP

---------------------------------------------------------------------------
code from combat.h with line 77:

Code:
struct CombatParams {
    CombatParams() {
        dispelType = CONDITION_NONE;
        combatType = COMBAT_NONE;

        blockedByArmor = false;
        blockedByShield = false;
        targetCasterOrTopMost = false;
        isAggressive = true;
        itemId = 0;
        impactEffect = CONST_ME_NONE;         --- line 77 of combat.h
        distanceEffect = CONST_ANI_NONE;
        useCharges = false;

        valueCallback = nullptr;
        tileCallback = nullptr;
        targetCallback = nullptr;

        origin = ORIGIN_SPELL;
    }

Cheers!
 
Back
Top