From bc2a5b3f1617662bb58a601723b4a20d16d03cc9 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 17 Apr 2016 10:19:56 +0200 Subject: [PATCH 1/4] - fixed typo in automap background position calculation. --- src/am_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/am_map.cpp b/src/am_map.cpp index 765443c20a..dcfb361bfc 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()) { From 5e73cdc670ec02946578262e91d5bd4661af38a6 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 17 Apr 2016 10:41:13 +0200 Subject: [PATCH 2/4] - deleted leftover label in trace code. --- src/p_trace.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/p_trace.cpp b/src/p_trace.cpp index b75fc090e2..0e11e29a6a 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 = From a1e8d83724d3d86b1b0f92970d007abbaa479eed Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 17 Apr 2016 10:56:46 +0200 Subject: [PATCH 3/4] - added SetMusicVolume ACS function. --- src/p_acs.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/p_acs.cpp b/src/p_acs.cpp index 0877ad2c95..27adce19e8 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; From a199fe182548ac9d5d11cd29cd9697175500203d Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 17 Apr 2016 12:04:32 +0200 Subject: [PATCH 4/4] - fixed: loading polyobjects from a savegame was incomplete. --- src/p_saveg.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/p_saveg.cpp b/src/p_saveg.cpp index 050e4ae76e..8744ec7409 100644 --- a/src/p_saveg.cpp +++ b/src/p_saveg.cpp @@ -539,15 +539,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 @@ -573,6 +565,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);