mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-11-21 16:35:08 -05:00
Dont aim at dead
This commit is contained in:
parent
98d379041d
commit
a3f84157d2
5
game.h
5
game.h
@ -2903,7 +2903,10 @@ RCL_Unit SFG_autoaimVertically()
|
|||||||
{
|
{
|
||||||
SFG_MonsterRecord m = SFG_currentLevel.monsterRecords[i];
|
SFG_MonsterRecord m = SFG_currentLevel.monsterRecords[i];
|
||||||
|
|
||||||
if (SFG_MR_STATE(m) == SFG_MONSTER_STATE_INACTIVE)
|
uint8_t state = SFG_MR_STATE(m);
|
||||||
|
|
||||||
|
if (state == SFG_MONSTER_STATE_INACTIVE ||
|
||||||
|
state == SFG_MONSTER_STATE_DEAD)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
RCL_Vector2D worldPosition, toMonster;
|
RCL_Vector2D worldPosition, toMonster;
|
||||||
|
Loading…
Reference in New Issue
Block a user