mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-02 00:42:08 +00:00
This commit is contained in:
commit
bad3a130cf
2 changed files with 10 additions and 1 deletions
|
@ -455,6 +455,10 @@ bool P_TeleportMove(AActor* thing, const DVector3 &pos, bool telefrag, bool modi
|
|||
if (!P_CanCollideWith(tmf.thing, th))
|
||||
continue;
|
||||
|
||||
// Don't let players and monsters block item teleports (all other actor types will still block.)
|
||||
if (thing->IsKindOf(RUNTIME_CLASS(AInventory)) && !(thing->flags & MF_SOLID) && ((th->flags3 & MF3_ISMONSTER) || th->player != nullptr))
|
||||
continue;
|
||||
|
||||
// monsters don't stomp things except on boss level
|
||||
// [RH] Some Heretic/Hexen monsters can telestomp
|
||||
// ... and some items can never be telefragged while others will be telefragged by everything that teleports upon them.
|
||||
|
|
|
@ -227,7 +227,12 @@ void MusInfo::Start(bool loop, float rel_vol, int subsong)
|
|||
{
|
||||
if (nomusic) return;
|
||||
|
||||
if (rel_vol > 0.f) saved_relative_volume = relative_volume = rel_vol;
|
||||
if (rel_vol > 0.f)
|
||||
{
|
||||
float factor = relative_volume / saved_relative_volume;
|
||||
saved_relative_volume = rel_vol;
|
||||
relative_volume = saved_relative_volume * factor;
|
||||
}
|
||||
Stop ();
|
||||
Play (loop, subsong);
|
||||
m_NotStartedYet = false;
|
||||
|
|
Loading…
Reference in a new issue