Fix faulty assertions

This commit is contained in:
James R 2023-02-14 00:46:54 -08:00
parent b2bd5ecccd
commit f05f040cea
4 changed files with 3 additions and 7 deletions

View file

@ -4236,7 +4236,7 @@ static void G_DoContinued(void)
{
player_t *pl = &players[consoleplayer];
I_Assert(!netgame && !multiplayer);
I_Assert(pl->continues > 0);
//I_Assert(pl->continues > 0);
/*if (pl->continues)
pl->continues--;*/

View file

@ -537,8 +537,6 @@ static int pivotlist_get(lua_State *L)
spriteinfo_t *sprinfo = *((spriteinfo_t **)luaL_checkudata(L, 1, META_PIVOTLIST));
UINT8 frame = GetPivotFrame(L, 2);
I_Assert(framepivot != NULL);
// bypass LUA_PushUserdata
container = lua_newuserdata(L, sizeof *container);
container->sprinfo = sprinfo;
@ -563,8 +561,6 @@ static int pivotlist_set(lua_State *L)
if (hook_cmd_running)
return luaL_error(L, "Do not alter spriteframepivot_t in CMD building code!");
I_Assert(pivotlist != NULL);
frame = GetPivotFrame(L, 2);
// pivot[] is a table

View file

@ -429,7 +429,7 @@ void M_AddRawCondition(UINT8 set, UINT8 id, conditiontype_t c, INT32 r, INT16 x1
condition_t *cond;
UINT32 num, wnum;
I_Assert(set && set <= MAXCONDITIONSETS);
I_Assert(set < MAXCONDITIONSETS);
wnum = conditionSets[set].numconditions;
num = ++conditionSets[set].numconditions;

View file

@ -234,7 +234,7 @@ void R_SetColumnFunc(size_t id, boolean brightmapped)
void R_SetSpanFunc(size_t id, boolean npo2, boolean brightmapped)
{
I_Assert(id < COLDRAWFUNC_MAX);
I_Assert(id < SPANDRAWFUNC_MAX);
if (spanfuncs_npo2[id] != NULL && npo2 == true)
{