whiteblXK
Active Member
Hello, in const.h I added
in enum MagicEffect_t
In game.cpp I change:
to
and I have this error when I compile:
How to fix it? I use TFS 0.4 r3884
Code:
MAGIC_EFFECT_HIT1 = 0x89,
MAGIC_EFFECT_HIT2 = 0x8B,
In game.cpp I change:
Code:
case RACE_BLOOD:
textColor = COLOR_RED;
magicEffect = MAGIC_EFFECT_DRAW_BLOOD;
splash = Item::CreateItem(ITEM_SMALLSPLASH, FLUID_BLOOD);
break;
Code:
case RACE_BLOOD:
textColor = COLOR_RED;
magicEffect = random_range(MAGIC_EFFECT_HIT1,MAGIC_EFFECT_HIT2);
splash = Item::CreateItem(ITEM_SMALLSPLASH, FLUID_BLOOD);
break;
Code:
\src\game.cpp:4489: error: invalid conversion from 'int32_t' to 'MagicEffect_t'