diff --git a/src/am_map.cpp b/src/am_map.cpp index 765443c20..dcfb361bf 100644 --- a/src/am_map.cpp +++ b/src/am_map.cpp @@ -1144,7 +1144,7 @@ static void AM_ScrollParchment (double dmapx, double dmapy) mapystart = mapystart - dmapy * scale_mtof; mapxstart = clamp(mapxstart, -40000., 40000.); - mapystart = clamp(mapxstart, -40000., 40000.); + mapystart = clamp(mapystart, -40000., 40000.); if (mapback.isValid()) { diff --git a/src/p_acs.cpp b/src/p_acs.cpp index 0877ad2c9..27adce19e 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -81,6 +81,7 @@ #include "p_effect.h" #include "r_utility.h" #include "a_morph.h" +#include "i_music.h" #include "g_shared/a_pickups.h" @@ -4500,6 +4501,8 @@ enum EACSFunctions ACSF_SetSectorDamage, ACSF_SetSectorTerrain, ACSF_SpawnParticle, + ACSF_SetMusicVolume, + // 2 more left... /* Zandronum's - these must be skipped when we reach 99! -100:ResetMap(0), @@ -6087,6 +6090,10 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound) color, fullbright, startalpha/255., lifetime, size, fadestep/255.); } break; + + case ACSF_SetMusicVolume: + I_SetMusicVolume(ACSToFloat(args[0])); + break; default: break; diff --git a/src/p_saveg.cpp b/src/p_saveg.cpp index 0197a347b..308a3a26a 100644 --- a/src/p_saveg.cpp +++ b/src/p_saveg.cpp @@ -547,15 +547,7 @@ void P_SerializePolyobjs (FArchive &arc) arc << seg << po_NumPolyobjs; for(i = 0, po = polyobjs; i < po_NumPolyobjs; i++, po++) { - arc << po->tag << po->Angle << po->StartSpot.pos << po->interpolation; - if (SaveVersion >= 4537) - { - arc << po->bBlocked; - } - else - { - po->bBlocked = false; - } + arc << po->tag << po->Angle << po->StartSpot.pos << po->interpolation << po->bBlocked; } } else @@ -581,6 +573,15 @@ void P_SerializePolyobjs (FArchive &arc) I_Error ("UnarchivePolyobjs: Invalid polyobj tag"); } arc << angle << delta << po->interpolation; + if (SaveVersion >= 4537) + { + arc << po->bBlocked; + } + else + { + po->bBlocked = false; + } + po->RotatePolyobj (angle, true); delta -= po->StartSpot.pos; po->MovePolyobj (delta, true); diff --git a/src/p_trace.cpp b/src/p_trace.cpp index b75fc090e..0e11e29a6 100644 --- a/src/p_trace.cpp +++ b/src/p_trace.cpp @@ -463,7 +463,6 @@ bool FTraceInfo::LineCheck(intercept_t *in, double dist, DVector3 hit) hit.Z < bf || hit.Z > bc || in->d.line->flags & WallMask) { -normalline: // hit the wall Results->HitType = TRACE_HitWall; Results->Tier =