- clear interpolations when starting a new map.

This commit is contained in:
Christoph Oelckers 2021-11-27 13:47:53 +01:00
parent 5bd53cbe8c
commit 2d806d415a

View file

@ -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);