mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-29 20:50:38 +00:00
Format for better consistency with the codebase
This commit is contained in:
parent
61bb44463f
commit
e140127180
5 changed files with 13 additions and 16 deletions
|
@ -1892,8 +1892,8 @@ static void Command_ResetCamera_f(void)
|
||||||
P_ResetCamera(&players[displayplayer], &camera);
|
P_ResetCamera(&players[displayplayer], &camera);
|
||||||
}
|
}
|
||||||
|
|
||||||
static INT32/* Consider replacing nametonum with this */
|
/* Consider replacing nametonum with this */
|
||||||
LookupPlayer (const char *s)
|
static INT32 LookupPlayer(const char *s)
|
||||||
{
|
{
|
||||||
INT32 playernum;
|
INT32 playernum;
|
||||||
|
|
||||||
|
@ -1923,8 +1923,7 @@ LookupPlayer (const char *s)
|
||||||
#define PRINTVIEWPOINT( pre,suf ) \
|
#define PRINTVIEWPOINT( pre,suf ) \
|
||||||
CONS_Printf(pre"viewing \x84(%d) \x83%s\x80"suf".\n",\
|
CONS_Printf(pre"viewing \x84(%d) \x83%s\x80"suf".\n",\
|
||||||
(*displayplayerp), player_names[(*displayplayerp)]);
|
(*displayplayerp), player_names[(*displayplayerp)]);
|
||||||
static void
|
static void Command_View_f(void)
|
||||||
Command_View_f (void)
|
|
||||||
{
|
{
|
||||||
INT32 *displayplayerp;
|
INT32 *displayplayerp;
|
||||||
INT32 olddisplayplayer;
|
INT32 olddisplayplayer;
|
||||||
|
|
13
src/g_game.c
13
src/g_game.c
|
@ -2120,8 +2120,7 @@ static INT32 G_FindView(INT32 startview)
|
||||||
return startview;
|
return startview;
|
||||||
}
|
}
|
||||||
|
|
||||||
INT32 *
|
INT32 *G_GetDisplayplayerPtr(UINT8 viewnum)
|
||||||
G_GetDisplayplayerPtr (UINT8 viewnum)
|
|
||||||
{
|
{
|
||||||
switch (viewnum)
|
switch (viewnum)
|
||||||
{
|
{
|
||||||
|
@ -2132,11 +2131,11 @@ G_GetDisplayplayerPtr (UINT8 viewnum)
|
||||||
return &displayplayer;
|
return &displayplayer;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
//
|
||||||
Ensure a viewpoint is valid.
|
// G_ResetView
|
||||||
*/
|
// Ensures a viewpoint is valid.
|
||||||
void
|
//
|
||||||
G_ResetView (UINT8 viewnum)
|
void G_ResetView(UINT8 viewnum)
|
||||||
{
|
{
|
||||||
INT32 *displayplayerp;
|
INT32 *displayplayerp;
|
||||||
camera_t *camerap;
|
camera_t *camerap;
|
||||||
|
|
|
@ -226,10 +226,10 @@ void G_EndGame(void); // moved from y_inter.c/h and renamed
|
||||||
void G_Ticker(boolean run);
|
void G_Ticker(boolean run);
|
||||||
boolean G_Responder(event_t *ev);
|
boolean G_Responder(event_t *ev);
|
||||||
|
|
||||||
INT32 * G_GetDisplayplayerPtr (UINT8 viewnum);
|
INT32 *G_GetDisplayplayerPtr(UINT8 viewnum);
|
||||||
|
|
||||||
void G_ResetViews(void);
|
void G_ResetViews(void);
|
||||||
void G_ResetView (UINT8 viewnum);
|
void G_ResetView(UINT8 viewnum);
|
||||||
|
|
||||||
void G_AddPlayer(INT32 playernum);
|
void G_AddPlayer(INT32 playernum);
|
||||||
|
|
||||||
|
|
|
@ -126,7 +126,7 @@ extern fixed_t t_cam2_dist, t_cam2_height, t_cam2_rotate;
|
||||||
extern fixed_t t_cam3_dist, t_cam3_height, t_cam3_rotate;
|
extern fixed_t t_cam3_dist, t_cam3_height, t_cam3_rotate;
|
||||||
extern fixed_t t_cam4_dist, t_cam4_height, t_cam4_rotate;
|
extern fixed_t t_cam4_dist, t_cam4_height, t_cam4_rotate;
|
||||||
|
|
||||||
camera_t * P_GetCameraPtr (UINT8 viewnum);
|
camera_t *P_GetCameraPtr(UINT8 viewnum);
|
||||||
|
|
||||||
fixed_t P_GetPlayerHeight(player_t *player);
|
fixed_t P_GetPlayerHeight(player_t *player);
|
||||||
fixed_t P_GetPlayerSpinHeight(player_t *player);
|
fixed_t P_GetPlayerSpinHeight(player_t *player);
|
||||||
|
|
|
@ -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)
|
#define MAXCAMERADIST 140*FRACUNIT // Max distance the camera can be in front of the player (2D mode)
|
||||||
|
|
||||||
camera_t *
|
camera_t *P_GetCameraPtr(UINT8 viewnum)
|
||||||
P_GetCameraPtr (UINT8 viewnum)
|
|
||||||
{
|
{
|
||||||
switch (viewnum)
|
switch (viewnum)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue