diff --git a/src/d_clisrv.c b/src/d_clisrv.c index d76e67e88..51abad01d 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -6305,7 +6305,8 @@ static void Local_Maketic(INT32 realtics) D_ProcessEvents(); // menu responder, cons responder, // game responder calls HU_Responder, AM_Responder, F_Responder, // and G_MapEventsToControls - if (!dedicated) rendergametic = gametic; + if (!dedicated) + rendergametic = gametic; // translate inputs (keyboard/mouse/joystick) into game controls for (i = 0; i <= splitscreen; i++) diff --git a/src/d_netcmd.c b/src/d_netcmd.c index cd9c354fe..4d41ada94 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -2691,7 +2691,8 @@ static tic_t last_map_cmd = 0; // static void Command_Map_f(void) { - if (I_GetTime() - last_map_cmd < 20) { + if (I_GetTime() - last_map_cmd < 20) + { CONS_Alert(CONS_WARNING, "Map command is used too frequently!\n"); return; } @@ -2749,8 +2750,7 @@ static void Command_Map_f(void) { if (!multiplayer) { - CONS_Printf(M_GetText( - "You can't switch gametypes in single player!\n")); + CONS_Printf(M_GetText("You can't switch gametypes in single player!\n")); return; } else if (COM_Argc() < option_gametype + 2)/* no argument after? */ diff --git a/src/g_game.c b/src/g_game.c index 18b7f94c0..77257a6fb 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -4010,7 +4010,7 @@ void G_InitNew(UINT8 pencoremode, const char *mapname, boolean resetplayer, bool unlocktriggers = 0; // clear itemfinder, just in case - if (!dedicated) // except in dedicated servers, where it is not registered and can actually I_Error debug builds + if (!dedicated) // except in dedicated servers, where it is not registered and can actually I_Error debug builds CV_StealthSetValue(&cv_itemfinder, 0); } @@ -4028,7 +4028,7 @@ void G_InitNew(UINT8 pencoremode, const char *mapname, boolean resetplayer, bool // gamemap changed; we assume that its map header is always valid, // so make it so - if(!mapheaderinfo[gamemap-1]) + if (!mapheaderinfo[gamemap-1]) P_AllocMapHeader(gamemap-1); maptol = mapheaderinfo[gamemap-1]->typeoflevel; @@ -5345,7 +5345,8 @@ void G_ConsGhostTic(INT32 playernum) void G_GhostTicker(void) { demoghost *g,*p; - for(g = ghosts, p = NULL; g; g = g->next) + + for (g = ghosts, p = NULL; g; g = g->next) { // Skip normal demo data. UINT8 ziptic = READUINT8(g->p); diff --git a/src/m_menu.c b/src/m_menu.c index b78e72ee5..283870f7c 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -9290,7 +9290,7 @@ static void M_TimeAttack(INT32 choice) if (M_CountLevelsToShowInList() == 0) { - M_StartMessage(M_GetText("No record-attackable levels found.\n"),NULL,MM_NOTHING); + M_StartMessage(M_GetText("No record-attackable levels found.\n"), NULL, MM_NOTHING); return; } diff --git a/src/tables.c b/src/tables.c index e293842bc..98a2c8a17 100644 --- a/src/tables.c +++ b/src/tables.c @@ -274,7 +274,7 @@ boolean FV2_InsidePolygon(const vector2_t *vIntersection, const vector2_t *Poly, // with floating point numbers. It usually won't always be perfectly 2 * PI, so we need // to use a little twiddling. I use .9999, but you can change this to fit your own desired accuracy. - if(Angle >= ANGLE_MAX) // If the angle is greater than 2 PI, (360 degrees) + if (Angle >= ANGLE_MAX) // If the angle is greater than 2 PI, (360 degrees) return 1; // The point is inside of the polygon return 0; // If you get here, it obviously wasn't inside the polygon.