mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-09 15:31:03 +00:00
- do not use ovel to store a sound index.
This commit is contained in:
parent
05d8cee911
commit
1ab1852af8
3 changed files with 5 additions and 4 deletions
|
@ -2800,8 +2800,8 @@ void handle_se14(DDukeActor* actor, bool checkstat, int RPG, int JIBS6)
|
||||||
{
|
{
|
||||||
if (statstate)
|
if (statstate)
|
||||||
{
|
{
|
||||||
if (!S_CheckSoundPlaying(actor->ovel.X))
|
if (!S_CheckSoundPlaying(actor->tempsound))
|
||||||
S_PlayActorSound(actor->ovel.X, actor);
|
S_PlayActorSound(actor->tempsound, actor);
|
||||||
}
|
}
|
||||||
if ((!checkstat || !statstate) && (ud.monsters_off == 0 && sc->floorpal == 0 && (sc->floorstat & CSTAT_SECTOR_SKY) && rnd(8)))
|
if ((!checkstat || !statstate) && (ud.monsters_off == 0 && sc->floorpal == 0 && (sc->floorstat & CSTAT_SECTOR_SKY) && rnd(8)))
|
||||||
{
|
{
|
||||||
|
@ -2817,7 +2817,7 @@ void handle_se14(DDukeActor* actor, bool checkstat, int RPG, int JIBS6)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (actor->spr.xvel <= 64 && statstate)
|
if (actor->spr.xvel <= 64 && statstate)
|
||||||
S_StopSound(actor->ovel.X, actor);
|
S_StopSound(actor->tempsound, actor);
|
||||||
|
|
||||||
if ((sc->int_floorz() - sc->int_ceilingz()) < (108 << 8))
|
if ((sc->int_floorz() - sc->int_ceilingz()) < (108 << 8))
|
||||||
{
|
{
|
||||||
|
|
|
@ -1043,7 +1043,7 @@ void spawneffector(DDukeActor* actor, TArray<DDukeActor*>* actors)
|
||||||
else if (actor->sector()->floorpal == 7) j = 456;
|
else if (actor->sector()->floorpal == 7) j = 456;
|
||||||
else j = 75;
|
else j = 75;
|
||||||
}
|
}
|
||||||
actor->ovel.X = j;
|
actor->tempsound = j;
|
||||||
}
|
}
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
case SE_30_TWO_WAY_TRAIN:
|
case SE_30_TWO_WAY_TRAIN:
|
||||||
|
|
|
@ -55,6 +55,7 @@ public:
|
||||||
{
|
{
|
||||||
int saved_ammo;
|
int saved_ammo;
|
||||||
int palvals;
|
int palvals;
|
||||||
|
int tempsound;
|
||||||
};
|
};
|
||||||
int temp_data[6];
|
int temp_data[6];
|
||||||
// Some SE's stored indices in temp_data. For purposes of clarity avoid that. These variables are meant to store these elements now
|
// Some SE's stored indices in temp_data. For purposes of clarity avoid that. These variables are meant to store these elements now
|
||||||
|
|
Loading…
Reference in a new issue