mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-19 07:01:09 +00:00
- Duke: fixed monster sight sounds not being played.
This commit is contained in:
parent
91d51d518b
commit
0f925d4cc0
2 changed files with 8 additions and 3 deletions
|
@ -5236,6 +5236,12 @@ void movefta(void)
|
||||||
int canseeme, p;
|
int canseeme, p;
|
||||||
sectortype* psect, * ssect;
|
sectortype* psect, * ssect;
|
||||||
|
|
||||||
|
auto check_fta_sounds = [](DDukeActor* act)
|
||||||
|
{
|
||||||
|
if (isRR()) check_fta_sounds_r(act);
|
||||||
|
else check_fta_sounds_d(act);
|
||||||
|
};
|
||||||
|
|
||||||
DukeStatIterator it(STAT_ZOMBIEACTOR);
|
DukeStatIterator it(STAT_ZOMBIEACTOR);
|
||||||
while (auto act = it.Next())
|
while (auto act = it.Next())
|
||||||
{
|
{
|
||||||
|
@ -5300,7 +5306,7 @@ void movefta(void)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
act->timetosleep = 0;
|
act->timetosleep = 0;
|
||||||
check_fta_sounds_r(act);
|
check_fta_sounds(act);
|
||||||
ChangeActorStat(act, STAT_ACTOR);
|
ChangeActorStat(act, STAT_ACTOR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5319,7 +5325,7 @@ void movefta(void)
|
||||||
if (wakeup(act, p))
|
if (wakeup(act, p))
|
||||||
{
|
{
|
||||||
act->timetosleep = 0;
|
act->timetosleep = 0;
|
||||||
check_fta_sounds_r(act);
|
check_fta_sounds(act);
|
||||||
ChangeActorStat(act, STAT_ACTOR);
|
ChangeActorStat(act, STAT_ACTOR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,7 +96,6 @@ void handle_se128(DDukeActor* i);
|
||||||
void handle_se130(DDukeActor* i, int countmax, int EXPLOSION2);
|
void handle_se130(DDukeActor* i, int countmax, int EXPLOSION2);
|
||||||
|
|
||||||
void respawn_rrra(DDukeActor* oldact, DDukeActor* newact);
|
void respawn_rrra(DDukeActor* oldact, DDukeActor* newact);
|
||||||
// This is only called from game specific code so it does not need an indirection.
|
|
||||||
void check_fta_sounds_d(DDukeActor* i);
|
void check_fta_sounds_d(DDukeActor* i);
|
||||||
void check_fta_sounds_r(DDukeActor* i);
|
void check_fta_sounds_r(DDukeActor* i);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue