Raise SNDSEQ limit to 4096 sequences

This commit is contained in:
Nikolay Ambartsumov 2020-10-24 05:29:22 +03:00 committed by Christoph Oelckers
commit 10c833f37e
3 changed files with 22 additions and 17 deletions

View file

@ -36,6 +36,7 @@
#include "g_levellocals.h"
#include "actorinlines.h"
#include "v_text.h"
#include "s_sndseq.h"
#include "maploader/maploader.h"
@ -184,7 +185,7 @@ void MapLoader::SpawnPolyobj (int index, int tag, int type)
po->bHurtOnTouch = (type == SMT_PolySpawnHurt);
po->tag = tag;
po->seqType = sd->linedef->args[2];
if (po->seqType < 0 || po->seqType > 63)
if (po->seqType < 0 || po->seqType > (MAX_SNDSEQS - 1))
{
po->seqType = 0;
}
@ -414,4 +415,3 @@ void MapLoader::PO_Init (void)
}
}
}