mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-13 14:28:01 +00:00
Made the cmd argument of CL_SendMove() const.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@511 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
08546599cf
commit
f4a3b2c9a2
3 changed files with 6 additions and 10 deletions
|
@ -339,7 +339,7 @@ void CL_BaseMove (usercmd_t *cmd)
|
||||||
CL_SendMove
|
CL_SendMove
|
||||||
==============
|
==============
|
||||||
*/
|
*/
|
||||||
void CL_SendMove (usercmd_t *cmd)
|
void CL_SendMove (const usercmd_t *cmd)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int bits;
|
int bits;
|
||||||
|
|
|
@ -703,12 +703,12 @@ void CL_SendCmd (void)
|
||||||
|
|
||||||
if (!NET_CanSendMessage (cls.netcon))
|
if (!NET_CanSendMessage (cls.netcon))
|
||||||
{
|
{
|
||||||
Con_DPrintf ("CL_WriteToServer: can't send\n");
|
Con_DPrintf ("CL_SendCmd: can't send\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (NET_SendMessage (cls.netcon, &cls.message) == -1)
|
if (NET_SendMessage (cls.netcon, &cls.message) == -1)
|
||||||
Host_Error ("CL_WriteToServer: lost server connection");
|
Host_Error ("CL_SendCmd: lost server connection");
|
||||||
|
|
||||||
SZ_Clear (&cls.message);
|
SZ_Clear (&cls.message);
|
||||||
}
|
}
|
||||||
|
|
|
@ -320,19 +320,15 @@ extern kbutton_t in_speed;
|
||||||
|
|
||||||
void CL_InitInput (void);
|
void CL_InitInput (void);
|
||||||
void CL_SendCmd (void);
|
void CL_SendCmd (void);
|
||||||
void CL_SendMove (usercmd_t *cmd);
|
void CL_SendMove (const usercmd_t *cmd);
|
||||||
|
int CL_ReadFromServer (void);
|
||||||
|
void CL_BaseMove (usercmd_t *cmd);
|
||||||
|
|
||||||
void CL_ParseTEnt (void);
|
void CL_ParseTEnt (void);
|
||||||
void CL_UpdateTEnts (void);
|
void CL_UpdateTEnts (void);
|
||||||
|
|
||||||
void CL_ClearState (void);
|
void CL_ClearState (void);
|
||||||
|
|
||||||
|
|
||||||
int CL_ReadFromServer (void);
|
|
||||||
void CL_WriteToServer (usercmd_t *cmd);
|
|
||||||
void CL_BaseMove (usercmd_t *cmd);
|
|
||||||
|
|
||||||
|
|
||||||
float CL_KeyState (kbutton_t *key);
|
float CL_KeyState (kbutton_t *key);
|
||||||
const char *Key_KeynumToString (int keynum);
|
const char *Key_KeynumToString (int keynum);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue