mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-11-24 01:42:19 -05:00
Fix initialization
This commit is contained in:
parent
da489353b5
commit
3f2010dee6
10
game.h
10
game.h
@ -2250,11 +2250,11 @@ void SFG_monsterPerformAI(SFG_MonsterRecord *monster)
|
|||||||
(attackType == SFG_MONSTER_ATTACK_MELEE) ||
|
(attackType == SFG_MONSTER_ATTACK_MELEE) ||
|
||||||
(attackType == SFG_MONSTER_ATTACK_EXPLODE);
|
(attackType == SFG_MONSTER_ATTACK_EXPLODE);
|
||||||
|
|
||||||
uint8_t monsterSquare[2] =
|
uint8_t monsterSquare[2];
|
||||||
{
|
/* because of cancerous C++ compilers that error on narrowing conversion in
|
||||||
SFG_MONSTER_COORD_TO_SQUARES(monster->coords[0]),
|
{ } we init this way: */
|
||||||
SFG_MONSTER_COORD_TO_SQUARES(monster->coords[1])
|
monsterSquare[0] = SFG_MONSTER_COORD_TO_SQUARES(monster->coords[0]);
|
||||||
};
|
monsterSquare[1] = SFG_MONSTER_COORD_TO_SQUARES(monster->coords[1]);
|
||||||
|
|
||||||
RCL_Unit currentHeight =
|
RCL_Unit currentHeight =
|
||||||
SFG_floorCollisionHeightAt(monsterSquare[0],monsterSquare[1]);
|
SFG_floorCollisionHeightAt(monsterSquare[0],monsterSquare[1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user