Raise SNDSEQ limit to 4096 sequences
This commit is contained in:
parent
3bd365f934
commit
10c833f37e
3 changed files with 22 additions and 17 deletions
|
|
@ -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)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue