From 25be14ccc09a6fbd1c6bb9e97f4200dcfbd23f39 Mon Sep 17 00:00:00 2001 From: NY00123 Date: Tue, 14 Apr 2020 00:15:03 +0300 Subject: [PATCH] Another change modifying saved game format in SW: Increase MAXINTERPOLATIONS from 1024 to MAXSPRITES. --- source/sw/src/interp.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/source/sw/src/interp.h b/source/sw/src/interp.h index 678db9630..c9d36e4ea 100644 --- a/source/sw/src/interp.h +++ b/source/sw/src/interp.h @@ -25,13 +25,19 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms //------------------------------------------------------------------------- BEGIN_SW_NS +#ifndef INTERP_H + +#define INTERP_H + +#include "build.h" + #define SHORT_MAXINTERPOLATIONS 256 extern short short_numinterpolations; extern short short_oldipos[SHORT_MAXINTERPOLATIONS]; extern short short_bakipos[SHORT_MAXINTERPOLATIONS]; extern short *short_curipos[SHORT_MAXINTERPOLATIONS]; -#define MAXINTERPOLATIONS 1024 +#define MAXINTERPOLATIONS MAXSPRITES extern int numinterpolations; extern int oldipos[MAXINTERPOLATIONS]; extern int bakipos[MAXINTERPOLATIONS]; @@ -42,4 +48,7 @@ void stopinterpolation(int *posptr); void updateinterpolations(void); void dointerpolations(int smoothratio); void restoreinterpolations(void); + +#endif + END_SW_NS