mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix faulty assertions
This commit is contained in:
parent
b2bd5ecccd
commit
f05f040cea
4 changed files with 3 additions and 7 deletions
|
|
@ -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--;*/
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue