--warnings;

This commit is contained in:
Andrei Drexler 2011-03-13 15:27:05 +00:00
parent 611951d070
commit 95ec01d160

View file

@ -1447,15 +1447,16 @@ void Script_SetRandomItemColor(itemDef_t * item, char **args)
{ {
const char *itemname; const char *itemname;
const char *name; const char *name;
vec4_t tempColor, color;
int i, colorCount; int i, colorCount;
vec4_t *out;
if (String_Parse(args, &itemname) && String_Parse(args, &name) && Int_Parse(args, &colorCount)) { if (String_Parse(args, &itemname) && String_Parse(args, &name) && Int_Parse(args, &colorCount)) {
vec4_t tempColor, color, *out;
itemDef_t *item2; itemDef_t *item2;
int j, k, rnd = rand() % colorCount; int j, k, rnd = rand() % colorCount;
int count = Menu_ItemsMatchingGroup(item->parent, itemname); int count = Menu_ItemsMatchingGroup(item->parent, itemname);
MAKERGBA(color, 1.f, 1.f, 1.f, 1.f);
for (k=0; k<colorCount; k++) for (k=0; k<colorCount; k++)
{ {
if (!Color_Parse(args, &tempColor)) { if (!Color_Parse(args, &tempColor)) {