From 2d806d415af62eefbc38719173ecc87dc713f78e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 27 Nov 2021 13:47:53 +0100 Subject: [PATCH] - clear interpolations when starting a new map. --- source/core/maploader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/core/maploader.cpp b/source/core/maploader.cpp index 64c331856..c7b8306f6 100644 --- a/source/core/maploader.cpp +++ b/source/core/maploader.cpp @@ -45,6 +45,7 @@ #include "sectorgeometry.h" #include "render.h" #include "hw_sections.h" +#include "interpolate.h" // needed for skipping over to get the map size first. enum @@ -390,6 +391,7 @@ void addBlockingPairs(); // allocates global map storage. Blood will also call this. void allocateMapArrays(int numsprites) { + ClearInterpolations(); memset(sector, 0, sizeof(*sector) * MAXSECTORS); memset(wall, 0, sizeof(*wall) * MAXWALLS);