ref: 77c680f7d3f238902e4036bd6d2908b68dd198c4
parent: c996c125b7dc26ea47bfce278208a5eab458b6b8
author: Mike Swanson <[email protected]>
date: Tue Jun 7 06:07:18 EDT 2016
strife/p_plats.c: Add braces for for() loops and un-indent I_Error().
--- a/src/strife/p_plats.c
+++ b/src/strife/p_plats.c
@@ -325,13 +325,15 @@
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 @@
{
int i;
for(i = 0; i < MAXPLATS; i++)
+ {
if(plat == activeplats[i])
{
(activeplats[i])->sector->specialdata = NULL;
@@ -349,6 +352,7 @@
return;
}
+ }
- I_Error("P_RemoveActivePlat: can't find plat!");
+ I_Error("P_RemoveActivePlat: can't find plat!");
}