mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-31 05:20:51 +00:00
It's SINT8 not INT8
This commit is contained in:
parent
d508137bb9
commit
dbc27e9c9e
6 changed files with 21 additions and 21 deletions
|
@ -1973,7 +1973,7 @@ void D_SetupVote(void)
|
|||
SendNetXCmd(XD_SETUPVOTE, buf, p - buf);
|
||||
}
|
||||
|
||||
void D_ModifyClientVote(INT8 voted)
|
||||
void D_ModifyClientVote(SINT8 voted)
|
||||
{
|
||||
XBOXSTATIC UINT8 buf[1];
|
||||
buf[0] = (UINT8)(voted+1);
|
||||
|
@ -4599,14 +4599,14 @@ static void Got_SetupVotecmd(UINT8 **cp, INT32 playernum)
|
|||
|
||||
static void Got_ModifyVotecmd(UINT8 **cp, INT32 playernum)
|
||||
{
|
||||
INT8 voted = READUINT8(*cp);
|
||||
votes[playernum] = (INT8)(voted-1);
|
||||
SINT8 voted = READSINT8(*cp);
|
||||
votes[playernum] = (SINT8)(voted-1);
|
||||
}
|
||||
|
||||
static void Got_PickVotecmd(UINT8 **cp, INT32 playernum)
|
||||
{
|
||||
INT8 pick = READUINT8(*cp);
|
||||
INT8 level = READUINT8(*cp);
|
||||
SINT8 pick = READSINT8(*cp);
|
||||
SINT8 level = READSINT8(*cp);
|
||||
|
||||
if (playernum != serverplayer && !IsPlayerAdmin(playernum))
|
||||
{
|
||||
|
@ -4622,7 +4622,7 @@ static void Got_PickVotecmd(UINT8 **cp, INT32 playernum)
|
|||
return;
|
||||
}
|
||||
|
||||
Y_SetupVoteFinish((INT8)pick, (INT8)level);
|
||||
Y_SetupVoteFinish((SINT8)pick, (SINT8)level);
|
||||
}
|
||||
|
||||
/** Prints the number of the displayplayer.
|
||||
|
|
|
@ -252,7 +252,7 @@ void Command_Retry_f(void);
|
|||
void D_GameTypeChanged(INT32 lastgametype); // not a real _OnChange function anymore
|
||||
void D_MapChange(INT32 pmapnum, INT32 pgametype, boolean pultmode, boolean presetplayers, INT32 pdelay, boolean pskipprecutscene, boolean pfromlevelselect);
|
||||
void D_SetupVote(void);
|
||||
void D_ModifyClientVote(INT8 voted);
|
||||
void D_ModifyClientVote(SINT8 voted);
|
||||
void D_PickVote(void);
|
||||
void ObjectPlace_OnChange(void);
|
||||
boolean IsPlayerAdmin(INT32 playernum);
|
||||
|
|
|
@ -450,8 +450,8 @@ extern boolean comebackshowninfo;
|
|||
extern tic_t curlap, bestlap;
|
||||
|
||||
extern INT16 votelevels[4];
|
||||
extern INT8 votes[MAXPLAYERS];
|
||||
extern INT8 pickedvote;
|
||||
extern SINT8 votes[MAXPLAYERS];
|
||||
extern SINT8 pickedvote;
|
||||
|
||||
extern tic_t hidetime;
|
||||
|
||||
|
|
|
@ -249,8 +249,8 @@ boolean comeback; // Battle Mode's karma comeback is on/off
|
|||
|
||||
// Voting system
|
||||
INT16 votelevels[4]; // Levels that were rolled by the host
|
||||
INT8 votes[MAXPLAYERS]; // Each player's vote
|
||||
INT8 pickedvote; // What vote the host rolls
|
||||
SINT8 votes[MAXPLAYERS]; // Each player's vote
|
||||
SINT8 pickedvote; // What vote the host rolls
|
||||
|
||||
// Client-sided variables (NEVER use in anything that needs to be synced with other players)
|
||||
boolean legitimateexit; // Did this client actually finish the match?
|
||||
|
|
|
@ -177,7 +177,7 @@ typedef struct
|
|||
|
||||
typedef struct
|
||||
{
|
||||
INT8 selection;
|
||||
SINT8 selection;
|
||||
UINT8 delay;
|
||||
UINT8 ranim;
|
||||
UINT8 rtics;
|
||||
|
@ -2497,7 +2497,7 @@ static void Y_UnloadVoteData(void)
|
|||
//
|
||||
// Y_SetupVoteFinish
|
||||
//
|
||||
void Y_SetupVoteFinish(INT8 pick, INT8 level)
|
||||
void Y_SetupVoteFinish(SINT8 pick, SINT8 level)
|
||||
{
|
||||
if (pickedvote == -1)
|
||||
{
|
||||
|
|
|
@ -21,7 +21,7 @@ void Y_VoteDrawer(void);
|
|||
void Y_VoteTicker(void);
|
||||
void Y_StartVote(void);
|
||||
void Y_EndVote(void);
|
||||
void Y_SetupVoteFinish(INT8 pick, INT8 level);
|
||||
void Y_SetupVoteFinish(SINT8 pick, SINT8 level);
|
||||
|
||||
typedef enum
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue