Fixing warnings

This commit is contained in:
Richard Allen 2011-07-18 18:26:05 +00:00
parent e10f277476
commit 2b2b396744
2 changed files with 6 additions and 5 deletions

View file

@ -2691,7 +2691,7 @@ void CG_ReplaceModels(void)
bg_itemlist[item - bg_itemlist].world_model[0] = (char *)&RQ3_mp5_model;
bg_itemlist[item - bg_itemlist].icon = (char *)&RQ3_mp5_icon;
} else
CG_Printf("^1Error loading mp5 replacement model\n", model);
CG_Printf("^1Error loading mp5 replacement model %s\n", model);
}
if (strcmp(skin, "default")) {
Com_sprintf(RQ3_mp5_icon, MAX_MODEL_LEN, "icons/iconw_%s", skin);

View file

@ -1170,7 +1170,7 @@ void G_InitMoveParents( void )
//Makro - determine moveparent order
void G_SetMoveParentOrder( void )
{
int i, j;
int i, j, x;
char info[MAX_INFO_STRING], *p;
for (i=0; i<MAX_GENTITIES; i++)
@ -1218,15 +1218,16 @@ void G_SetMoveParentOrder( void )
// JBravo: apparently unused
// gentity_t *ent = g_parentOrder[i];
Com_sprintf(p, 4, "%03i", g_parentOrder[i]-g_entities);
x = g_parentOrder[i]-g_entities;
Com_sprintf(p, 4, "%03i", x);
p += 3;
//SetIntBytes(((g_parentOrder[i] - g_entities) << 1) | 1, p, 2);
//p += 2;
Com_sprintf(p, 4, "%03i", g_parentOrder[i]->moveParent_rank);
p+=3;
p += 3;
//SetIntBytes(((g_parentOrder[i]->moveParent_rank) << 1) | 1, p, 2);
//p += 2;
G_Printf("%i (%i)> %s, rank %i\n", i, g_parentOrder[i]-g_entities,
G_Printf("%i (%i)> %s, rank %i\n", i, x,
g_parentOrder[i]->classname, g_parentOrder[i]->moveParent_rank);
}
//trailing zero