Fix a few warnings
This commit is contained in:
parent
c621589157
commit
621a72e698
18 changed files with 76 additions and 74 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue