Fix a few warnings

This commit is contained in:
Tim Angus 2014-08-30 17:29:09 +01:00
parent c621589157
commit 621a72e698
18 changed files with 76 additions and 74 deletions

View file

@ -690,12 +690,12 @@ UI_DrawPlayer
*/
void UI_DrawPlayer( float x, float y, float w, float h, playerInfo_t *pi, int time ) {
refdef_t refdef;
refEntity_t legs;
refEntity_t torso;
refEntity_t head;
refEntity_t gun;
refEntity_t barrel;
refEntity_t flash;
refEntity_t legs = {0};
refEntity_t torso = {0};
refEntity_t head = {0};
refEntity_t gun = {0};
refEntity_t barrel = {0};
refEntity_t flash = {0};
vec3_t origin;
int renderfx;
vec3_t mins = {-16, -16, -24};

View file

@ -417,6 +417,8 @@ qboolean PC_Int_Parse(int handle, int *i) {
pc_token_t token;
int negative = qfalse;
if (!i)
return qfalse;
if (!trap_PC_ReadToken(handle, &token))
return qfalse;
if (token.string[0] == '-') {
@ -606,7 +608,7 @@ void Fade(int *flags, float *f, float clamp, int *nextTime, int offsetTime, qboo
void Window_Paint(Window *w, float fadeAmount, float fadeClamp, float fadeCycle) {
//float bordersize = 0;
vec4_t color;
vec4_t color = {0};
rectDef_t fillRect = w->rect;
@ -4128,6 +4130,10 @@ menuDef_t *Menus_ActivateByName(const char *p) {
void Item_Init(itemDef_t *item) {
if (item == NULL) {
return;
}
memset(item, 0, sizeof(itemDef_t));
item->textscale = 0.55f;
Window_Init(&item->window);