I have enabled a whole suit of compiler flags to track things that might be annoying at some point, and i have this warning.
merc.h:1315: warning: 'int weapon_type(const char*)' hides constructor for 'struct weapon_type'
I do not understand the warning, could someone please explain whats going on with this, ROM is a nightmare ;)
merc.h:1315: warning: 'int weapon_type(const char*)' hides constructor for 'struct weapon_type'
int weapon_type ( const char* );
int weapon_type (const char *name)
{
int type;
for (type = 0; weapon_table[type].name != NULL; type++)
if (LOWER(name[0]) == LOWER(weapon_table[type].name[0]) && !str_prefix(name,weapon_table[type].name))
return weapon_table[type].type;
return WEAPON_EXOTIC;
}
I do not understand the warning, could someone please explain whats going on with this, ROM is a nightmare ;)