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
and
Here is my log with errors: http://pastebin.com/3F6LKYQP
---------------------------------------------------------------------------
code from combat.h with line 77:
Cheers!
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
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!