Skip to content

Commit

Permalink
refactor A_Look
Browse files Browse the repository at this point in the history
  • Loading branch information
FrenkelS committed Mar 12, 2024
1 parent d09ec03 commit c6e5eb5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions p_enemy.c
Original file line number Diff line number Diff line change
Expand Up @@ -592,15 +592,12 @@ void A_Look(mobj_t __far* actor)

// go into chase state

if (mobjinfo[actor->type].seesound)
switch (mobjinfo[actor->type].seesound)
{
switch (mobjinfo[actor->type].seesound)
{
case sfx_posit1:
case sfx_posit2:
case sfx_bgsit1:
P_Random();
}
}
P_SetMobjState(actor, mobjinfo[actor->type].seestate);
}
Expand Down

0 comments on commit c6e5eb5

Please sign in to comment.