strife/p_plats.c: Add braces for for() loops and un-indent I_Error().
This commit is contained in:
parent
c996c125b7
commit
77c680f7d3
1 changed files with 6 additions and 2 deletions
|
|
@ -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!");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue