mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-11-21 08:25:05 -05:00
Dont aim at dead
This commit is contained in:
parent
98d379041d
commit
a3f84157d2
7
game.h
7
game.h
@ -2902,8 +2902,11 @@ RCL_Unit SFG_autoaimVertically()
|
||||
for (uint16_t i = 0; i < SFG_currentLevel.monsterRecordCount; ++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;
|
||||
|
||||
RCL_Vector2D worldPosition, toMonster;
|
||||
|
Loading…
Reference in New Issue
Block a user