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:
Molgrum 2007-09-18 01:08:49 +00:00
parent ddf8b91984
commit 9893099eb6
5 changed files with 8 additions and 7 deletions

View file

@ -883,9 +883,9 @@ vec3_t listener_up;
case CG_GETGLCONFIG:
VALIDATEPOINTER(arg[0], 11332);
//do any needed work
unsigned char *glconfig = VM_POINTER(arg[0]);
{ //FIXME: Clean this shit up
//do any needed work
unsigned char *glconfig = VM_POINTER(arg[0]);
memset(glconfig, 0, 11304);
*(int *)(glconfig+11304) = vid.width;
*(int *)(glconfig+11308) = vid.height;

View file

@ -791,10 +791,7 @@ int UI_SystemCallsEx(void *offset, unsigned int mask, int fn, const int *arg)
break;
case UI_R_REGISTERSKIN:
{
char *buf;
VM_LONG(ret) = VM_TOSTRCACHE(arg[0]);
}
VM_LONG(ret) = VM_TOSTRCACHE(arg[0]);
break;
case UI_R_REGISTERFONT: //register font

View file

@ -998,8 +998,11 @@ void Skin_FlushPlayers(void);
//valid.c
void RulesetLatch(cvar_t *cvar);
void Validation_Apply_Ruleset(void);
void Validation_FlushFileList(void);
void Validation_CheckIfResponse(char *text);
void Validation_DelatchRulesets(void);
void InitValidation(void);
void Validation_IncludeFile(char *filename, char *file, int filelen);
void Validation_Auto_Response(int playernum, char *s);

View file

@ -130,6 +130,8 @@ cvar_t *Cvar_Set (cvar_t *var, const char *value);
void Cvar_SetValue (cvar_t *var, float value);
// expands value to a string and calls Cvar_Set
qboolean Cvar_ApplyLatchFlag(cvar_t *var, char *value, int flag);
void Cvar_ApplyLatches(int latchflag);
//sets vars to thier latched values

View file

@ -409,7 +409,6 @@ vfsfile_t *IWebGenerateFile(char *name, char *content, int contentlength)
int fnum;
char *parms;
int len;
IWeb_FileGen_t *fbuf;
if (!sv.state)
return NULL;