mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-13 06:13:39 +00:00
made Sys_ConsoleInput() to return const
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@508 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
7ff46cf8d8
commit
79e1fa29ee
4 changed files with 5 additions and 6 deletions
|
@ -598,7 +598,7 @@ Add them exactly as if they had been typed at the console
|
|||
*/
|
||||
void Host_GetConsoleCommands (void)
|
||||
{
|
||||
char *cmd;
|
||||
const char *cmd;
|
||||
|
||||
while (1)
|
||||
{
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/*
|
||||
Copyright (C) 1996-2001 Id Software, Inc.
|
||||
Copyright (C) 2002-2009 John Fitzgibbons and others
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
|
@ -56,7 +55,7 @@ void Sys_Quit (void) __attribute__((__noreturn__));
|
|||
|
||||
double Sys_FloatTime (void);
|
||||
|
||||
char *Sys_ConsoleInput (void);
|
||||
const char *Sys_ConsoleInput (void);
|
||||
|
||||
void Sys_Sleep (void);
|
||||
// called to yield for a little bit so as
|
||||
|
|
|
@ -202,7 +202,7 @@ double Sys_FloatTime (void)
|
|||
return SDL_GetTicks() / 1000.0;
|
||||
}
|
||||
|
||||
char *Sys_ConsoleInput (void)
|
||||
const char *Sys_ConsoleInput (void)
|
||||
{
|
||||
static char con_text[256];
|
||||
static int textlen;
|
||||
|
|
|
@ -277,7 +277,7 @@ double Sys_FloatTime (void)
|
|||
return SDL_GetTicks() / 1000.0;
|
||||
}
|
||||
|
||||
char *Sys_ConsoleInput (void)
|
||||
const char *Sys_ConsoleInput (void)
|
||||
{
|
||||
static char con_text[256];
|
||||
static int textlen;
|
||||
|
|
Loading…
Reference in a new issue