strife/p_plats.c: Add braces for for() loops and un-indent I_Error().

This commit is contained in:
Mike Swanson 2016-06-07 10:07:18 -07:00
parent c996c125b7
commit 77c680f7d3

View file

@ -325,13 +325,15 @@ void P_AddActivePlat(plat_t* plat)
int i;
for(i = 0; i < MAXPLATS; i++)
{
if (activeplats[i] == NULL)
{
activeplats[i] = plat;
return;
}
}
I_Error("P_AddActivePlat: no more plats!");
I_Error("P_AddActivePlat: no more plats!");
}
//
@ -341,6 +343,7 @@ void P_RemoveActivePlat(plat_t* plat)
{
int i;
for(i = 0; i < MAXPLATS; i++)
{
if(plat == activeplats[i])
{
(activeplats[i])->sector->specialdata = NULL;
@ -349,6 +352,7 @@ void P_RemoveActivePlat(plat_t* plat)
return;
}
}
I_Error("P_RemoveActivePlat: can't find plat!");
I_Error("P_RemoveActivePlat: can't find plat!");
}