mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
P_IsLocalPlayer, P_IsMachineLocalPlayer, P_IsDisplayPlayer: let player pointer be const
This commit is contained in:
parent
455b402731
commit
764a692a5e
5 changed files with 9 additions and 9 deletions
|
|
@ -158,9 +158,9 @@ boolean P_PlayerInPain(player_t *player);
|
||||||
void P_ResetPlayer(player_t *player);
|
void P_ResetPlayer(player_t *player);
|
||||||
boolean P_PlayerCanDamage(player_t *player, mobj_t *thing);
|
boolean P_PlayerCanDamage(player_t *player, mobj_t *thing);
|
||||||
|
|
||||||
boolean P_IsLocalPlayer(player_t *player);
|
boolean P_IsLocalPlayer(const player_t *player);
|
||||||
boolean P_IsMachineLocalPlayer(player_t *player);
|
boolean P_IsMachineLocalPlayer(const player_t *player);
|
||||||
boolean P_IsDisplayPlayer(player_t *player);
|
boolean P_IsDisplayPlayer(const player_t *player);
|
||||||
|
|
||||||
void P_SetPlayerAngle(player_t *player, angle_t angle);
|
void P_SetPlayerAngle(player_t *player, angle_t angle);
|
||||||
void P_ForceLocalAngle(player_t *player, angle_t angle);
|
void P_ForceLocalAngle(player_t *player, angle_t angle);
|
||||||
|
|
|
||||||
|
|
@ -1026,7 +1026,7 @@ void P_SetObjectMomZ(mobj_t *mo, fixed_t value, boolean relative)
|
||||||
// Returns true if player is
|
// Returns true if player is
|
||||||
// ACTUALLY on the local machine
|
// ACTUALLY on the local machine
|
||||||
//
|
//
|
||||||
boolean P_IsMachineLocalPlayer(player_t *player)
|
boolean P_IsMachineLocalPlayer(const player_t *player)
|
||||||
{
|
{
|
||||||
UINT8 i;
|
UINT8 i;
|
||||||
|
|
||||||
|
|
@ -1051,7 +1051,7 @@ boolean P_IsMachineLocalPlayer(player_t *player)
|
||||||
// on the local machine
|
// on the local machine
|
||||||
// (or simulated party)
|
// (or simulated party)
|
||||||
//
|
//
|
||||||
boolean P_IsLocalPlayer(player_t *player)
|
boolean P_IsLocalPlayer(const player_t *player)
|
||||||
{
|
{
|
||||||
if (player == NULL)
|
if (player == NULL)
|
||||||
{
|
{
|
||||||
|
|
@ -1072,7 +1072,7 @@ boolean P_IsLocalPlayer(player_t *player)
|
||||||
// Returns true if player is
|
// Returns true if player is
|
||||||
// currently being watched.
|
// currently being watched.
|
||||||
//
|
//
|
||||||
boolean P_IsDisplayPlayer(player_t *player)
|
boolean P_IsDisplayPlayer(const player_t *player)
|
||||||
{
|
{
|
||||||
UINT8 i;
|
UINT8 i;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -613,7 +613,7 @@ void S_StartSound(const void *origin, sfxenum_t sfx_id)
|
||||||
S_StartSoundAtVolume(origin, sfx_id, 255);
|
S_StartSoundAtVolume(origin, sfx_id, 255);
|
||||||
}
|
}
|
||||||
|
|
||||||
void S_ReducedVFXSoundAtVolume(const void *origin, sfxenum_t sfx_id, INT32 volume, player_t *owner)
|
void S_ReducedVFXSoundAtVolume(const void *origin, sfxenum_t sfx_id, INT32 volume, const player_t *owner)
|
||||||
{
|
{
|
||||||
if (S_SoundDisabled())
|
if (S_SoundDisabled())
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -128,7 +128,7 @@ void S_StartSound(const void *origin, sfxenum_t sound_id);
|
||||||
void S_StartSoundAtVolume(const void *origin, sfxenum_t sound_id, INT32 volume);
|
void S_StartSoundAtVolume(const void *origin, sfxenum_t sound_id, INT32 volume);
|
||||||
|
|
||||||
// Will start a sound, but only if VFX reduce is off or the owner isn't a display player.
|
// Will start a sound, but only if VFX reduce is off or the owner isn't a display player.
|
||||||
void S_ReducedVFXSoundAtVolume(const void *origin, sfxenum_t sfx_id, INT32 volume, player_t *owner);
|
void S_ReducedVFXSoundAtVolume(const void *origin, sfxenum_t sfx_id, INT32 volume, const player_t *owner);
|
||||||
#define S_ReducedVFXSound(a, b, c) S_ReducedVFXSoundAtVolume(a, b, 255, c)
|
#define S_ReducedVFXSound(a, b, c) S_ReducedVFXSoundAtVolume(a, b, 255, c)
|
||||||
|
|
||||||
// Stop sound for thing at <origin>
|
// Stop sound for thing at <origin>
|
||||||
|
|
|
||||||
|
|
@ -515,7 +515,7 @@ void Y_PlayerStandingsDrawer(y_data_t *standings, INT32 xoffset)
|
||||||
|
|
||||||
returny = y;
|
returny = y;
|
||||||
|
|
||||||
boolean (*_isHighlightedPlayer)(player_t *) =
|
boolean (*_isHighlightedPlayer)(const player_t *) =
|
||||||
(demo.playback
|
(demo.playback
|
||||||
? P_IsDisplayPlayer
|
? P_IsDisplayPlayer
|
||||||
: P_IsLocalPlayer
|
: P_IsLocalPlayer
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue