commit 77c680f7d3f238902e4036bd6d2908b68dd198c4
Author: Mike Swanson <mikeonthecomputer@gmail.com>
AuthorDate: Tue Jun 7 10:07:18 2016 -0700
Commit: Mike Swanson <mikeonthecomputer@gmail.com>
CommitDate: Tue Jun 7 10:07:18 2016 -0700
strife/p_plats.c: Add braces for for() loops and un-indent I_Error().
---
src/strife/p_plats.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/strife/p_plats.c b/src/strife/p_plats.c
index 09387c81..aeb0eb5a 100644
--- a/src/strife/p_plats.c
+++ b/src/strife/p_plats.c
@@ -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!");
}