mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-01-23 01:50:41 +00:00
--warnings;
This commit is contained in:
parent
611951d070
commit
95ec01d160
1 changed files with 3 additions and 2 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue