diff --git a/src/g_demo.c b/src/g_demo.c index 17ed25d85..f4240a42d 100644 --- a/src/g_demo.c +++ b/src/g_demo.c @@ -934,7 +934,7 @@ void G_ConsAllGhostTics(void) void G_ConsGhostTic(INT32 playernum) { UINT8 ziptic; - fixed_t px,py,pz,gx,gy,gz; + fixed_t px, py, pz, gx, gy, gz; mobj_t *testmo; fixed_t syncleeway; boolean nightsfail = false; diff --git a/src/p_setup.c b/src/p_setup.c index 28c02d52d..54b461665 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -1047,22 +1047,22 @@ static void P_SpawnEmblems(boolean loademblems) for (i = 0; i < numemblems; i++) { - if (emblemlocations[i].level != gamemap || emblemlocations[i].type > ET_SKIN) + const emblem_t *emblemlocation = &emblemlocations[i]; + + if (emblemlocation->level != gamemap || emblemlocation->type > ET_SKIN) continue; - emblemmobj = P_SpawnMobj(emblemlocations[i].x<x<y<z<= 'A' && emblemlocations[i].sprite <= 'Z'); - P_SetMobjStateNF(emblemmobj, emblemmobj->info->spawnstate + (emblemlocations[i].sprite - 'A')); + I_Assert(emblemlocation->sprite >= 'A' && emblemlocation->sprite <= 'Z'); + P_SetMobjStateNF(emblemmobj, emblemmobj->info->spawnstate + (emblemlocation->sprite - 'A')); emblemmobj->health = i+1; color = M_GetEmblemColor(&emblemlocations[i]); emblemmobj->color = (UINT8)color; - if (emblemlocations[i].collected - || (emblemlocations[i].type == ET_SKIN && emblemlocations[i].var != players[0].skin)) + if (emblemlocation->collected || (emblemlocation->type == ET_SKIN && emblemlocation->var != players[0].skin)) { P_UnsetThingPosition(emblemmobj); emblemmobj->flags |= MF_NOCLIP; diff --git a/src/r_skins.c b/src/r_skins.c index b45dd0d58..181fd3319 100644 --- a/src/r_skins.c +++ b/src/r_skins.c @@ -817,7 +817,6 @@ void R_AddSkins(UINT16 wadnum, boolean local) } #undef lnumskins - //sortSkinGrid(); return; }