Format for better consistency with the codebase

This commit is contained in:
fickleheart 2019-02-06 20:25:45 -06:00
parent 61bb44463f
commit e140127180
5 changed files with 13 additions and 16 deletions

View File

@ -1892,8 +1892,8 @@ static void Command_ResetCamera_f(void)
P_ResetCamera(&players[displayplayer], &camera);
}
static INT32/* Consider replacing nametonum with this */
LookupPlayer (const char *s)
/* Consider replacing nametonum with this */
static INT32 LookupPlayer(const char *s)
{
INT32 playernum;
@ -1923,8 +1923,7 @@ LookupPlayer (const char *s)
#define PRINTVIEWPOINT( pre,suf ) \
CONS_Printf(pre"viewing \x84(%d) \x83%s\x80"suf".\n",\
(*displayplayerp), player_names[(*displayplayerp)]);
static void
Command_View_f (void)
static void Command_View_f(void)
{
INT32 *displayplayerp;
INT32 olddisplayplayer;

View File

@ -2120,8 +2120,7 @@ static INT32 G_FindView(INT32 startview)
return startview;
}
INT32 *
G_GetDisplayplayerPtr (UINT8 viewnum)
INT32 *G_GetDisplayplayerPtr(UINT8 viewnum)
{
switch (viewnum)
{
@ -2132,11 +2131,11 @@ G_GetDisplayplayerPtr (UINT8 viewnum)
return &displayplayer;
}
/*
Ensure a viewpoint is valid.
*/
void
G_ResetView (UINT8 viewnum)
//
// G_ResetView
// Ensures a viewpoint is valid.
//
void G_ResetView(UINT8 viewnum)
{
INT32 *displayplayerp;
camera_t *camerap;

View File

@ -8124,8 +8124,7 @@ fixed_t t_cam4_rotate = -42;
#define MAXCAMERADIST 140*FRACUNIT // Max distance the camera can be in front of the player (2D mode)
camera_t *
P_GetCameraPtr (UINT8 viewnum)
camera_t *P_GetCameraPtr(UINT8 viewnum)
{
switch (viewnum)
{