forked from github/server
parent
1ecdd3dd7f
commit
043380ae84
|
@ -352,8 +352,8 @@ curse_changevigour(attrib **ap, curse *c, int vigour)
|
||||||
int
|
int
|
||||||
curse_geteffect(const curse *c)
|
curse_geteffect(const curse *c)
|
||||||
{
|
{
|
||||||
assert(c);
|
if (c) return c->effect.i;
|
||||||
return c->effect.i;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------- */
|
/* ------------------------------------------------------------- */
|
||||||
|
|
|
@ -2162,7 +2162,7 @@ tagbegin(struct xml_stack * stack)
|
||||||
if (!strcmp(semi, "flags")) it->flags=i;
|
if (!strcmp(semi, "flags")) it->flags=i;
|
||||||
break;
|
break;
|
||||||
case 'g':
|
case 'g':
|
||||||
if (!strcmp(semi, "give")) it->give = (int (*)(const unit*, const unit*, const struct item_type *, int, const char *))get_function(s);
|
if (!strcmp(semi, "give")) it->give = (boolean (*)(const unit*, const unit*, const struct item_type *, int, const char *))get_function(s);
|
||||||
break;
|
break;
|
||||||
case 'u':
|
case 'u':
|
||||||
if (!strcmp(semi, "use")) it->use = (int (*)(unit *, const struct item_type *, int, const char *))get_function(s);
|
if (!strcmp(semi, "use")) it->use = (int (*)(unit *, const struct item_type *, int, const char *))get_function(s);
|
||||||
|
@ -2554,7 +2554,7 @@ it_read(FILE * F)
|
||||||
if (!strcmp(semi, "flags")) it->flags=i;
|
if (!strcmp(semi, "flags")) it->flags=i;
|
||||||
break;
|
break;
|
||||||
case 'g':
|
case 'g':
|
||||||
if (!strcmp(semi, "give")) it->give = (int (*)(const unit*, const unit*, const struct item_type *, int, const char *))get_function(s);
|
if (!strcmp(semi, "give")) it->give = (boolean (*)(const unit*, const unit*, const struct item_type *, int, const char *))get_function(s);
|
||||||
break;
|
break;
|
||||||
case 'u':
|
case 'u':
|
||||||
if (!strcmp(semi, "use")) it->use = (int (*)(unit *, const struct item_type *, int, const char *))get_function(s);
|
if (!strcmp(semi, "use")) it->use = (int (*)(unit *, const struct item_type *, int, const char *))get_function(s);
|
||||||
|
|
Loading…
Reference in New Issue