- removed Blood's loadboard replacement hook.

It never calls engineLoadBoard but always its own map loading function directly.
This commit is contained in:
Christoph Oelckers 2020-09-21 22:34:06 +02:00
parent fdbc4d0e67
commit 43a9be0ad0
3 changed files with 0 additions and 6 deletions

View file

@ -88,7 +88,6 @@ void HookReplaceFunctions(void)
deletesprite_replace = qdeletesprite;
changespritesect_replace = qchangespritesect;
changespritestat_replace = qchangespritestat;
loadboard_replace = qloadboard;
}
END_BLD_NS

View file

@ -1044,7 +1044,6 @@ extern int32_t(*insertsprite_replace)(int16_t sectnum, int16_t statnum);
extern int32_t(*deletesprite_replace)(int16_t spritenum);
extern int32_t(*changespritesect_replace)(int16_t spritenum, int16_t newsectnum);
extern int32_t(*changespritestat_replace)(int16_t spritenum, int16_t newstatnum);
extern int32_t(*loadboard_replace)(const char *filename, char flags, vec3_t *dapos, int16_t *daang, int16_t *dacursectnum);
#ifdef USE_OPENGL
extern void(*PolymostProcessVoxels_Callback)(void);
#endif

View file

@ -2080,8 +2080,6 @@ static void check_sprite(int32_t i)
#include "md4.h"
int32_t(*loadboard_replace)(const char *filename, char flags, vec3_t *dapos, int16_t *daang, int16_t *dacursectnum) = NULL;
// flags: 1, 2: former parameter "fromwhere"
// 4: don't call polymer_loadboard
// 8: don't autoexec <mapname>.cfg
@ -2093,8 +2091,6 @@ int32_t(*loadboard_replace)(const char *filename, char flags, vec3_t *dapos, int
int32_t engineLoadBoard(const char *filename, char flags, vec3_t *dapos, int16_t *daang, int16_t *dacursectnum)
{
inputState.ClearAllInput();
if (loadboard_replace)
return loadboard_replace(filename, flags, dapos, daang, dacursectnum);
int32_t i;
int16_t numsprites;
const char myflags = flags&(~3);