Fixed errors and warnings from the last commits.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2663 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
ddf8b91984
commit
9893099eb6
5 changed files with 8 additions and 7 deletions
|
@ -883,9 +883,9 @@ vec3_t listener_up;
|
||||||
case CG_GETGLCONFIG:
|
case CG_GETGLCONFIG:
|
||||||
VALIDATEPOINTER(arg[0], 11332);
|
VALIDATEPOINTER(arg[0], 11332);
|
||||||
|
|
||||||
//do any needed work
|
|
||||||
unsigned char *glconfig = VM_POINTER(arg[0]);
|
|
||||||
{ //FIXME: Clean this shit up
|
{ //FIXME: Clean this shit up
|
||||||
|
//do any needed work
|
||||||
|
unsigned char *glconfig = VM_POINTER(arg[0]);
|
||||||
memset(glconfig, 0, 11304);
|
memset(glconfig, 0, 11304);
|
||||||
*(int *)(glconfig+11304) = vid.width;
|
*(int *)(glconfig+11304) = vid.width;
|
||||||
*(int *)(glconfig+11308) = vid.height;
|
*(int *)(glconfig+11308) = vid.height;
|
||||||
|
|
|
@ -791,10 +791,7 @@ int UI_SystemCallsEx(void *offset, unsigned int mask, int fn, const int *arg)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case UI_R_REGISTERSKIN:
|
case UI_R_REGISTERSKIN:
|
||||||
{
|
VM_LONG(ret) = VM_TOSTRCACHE(arg[0]);
|
||||||
char *buf;
|
|
||||||
VM_LONG(ret) = VM_TOSTRCACHE(arg[0]);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case UI_R_REGISTERFONT: //register font
|
case UI_R_REGISTERFONT: //register font
|
||||||
|
|
|
@ -998,8 +998,11 @@ void Skin_FlushPlayers(void);
|
||||||
|
|
||||||
|
|
||||||
//valid.c
|
//valid.c
|
||||||
|
void RulesetLatch(cvar_t *cvar);
|
||||||
|
void Validation_Apply_Ruleset(void);
|
||||||
void Validation_FlushFileList(void);
|
void Validation_FlushFileList(void);
|
||||||
void Validation_CheckIfResponse(char *text);
|
void Validation_CheckIfResponse(char *text);
|
||||||
|
void Validation_DelatchRulesets(void);
|
||||||
void InitValidation(void);
|
void InitValidation(void);
|
||||||
void Validation_IncludeFile(char *filename, char *file, int filelen);
|
void Validation_IncludeFile(char *filename, char *file, int filelen);
|
||||||
void Validation_Auto_Response(int playernum, char *s);
|
void Validation_Auto_Response(int playernum, char *s);
|
||||||
|
|
|
@ -130,6 +130,8 @@ cvar_t *Cvar_Set (cvar_t *var, const char *value);
|
||||||
void Cvar_SetValue (cvar_t *var, float value);
|
void Cvar_SetValue (cvar_t *var, float value);
|
||||||
// expands value to a string and calls Cvar_Set
|
// expands value to a string and calls Cvar_Set
|
||||||
|
|
||||||
|
qboolean Cvar_ApplyLatchFlag(cvar_t *var, char *value, int flag);
|
||||||
|
|
||||||
void Cvar_ApplyLatches(int latchflag);
|
void Cvar_ApplyLatches(int latchflag);
|
||||||
//sets vars to thier latched values
|
//sets vars to thier latched values
|
||||||
|
|
||||||
|
|
|
@ -409,7 +409,6 @@ vfsfile_t *IWebGenerateFile(char *name, char *content, int contentlength)
|
||||||
int fnum;
|
int fnum;
|
||||||
char *parms;
|
char *parms;
|
||||||
int len;
|
int len;
|
||||||
IWeb_FileGen_t *fbuf;
|
|
||||||
|
|
||||||
if (!sv.state)
|
if (!sv.state)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue