new_itemtype has been replaced, delete it.

This commit is contained in:
Enno Rehling 2014-06-29 19:09:37 -07:00
parent 22f64abaf2
commit 12661fc373
1 changed files with 0 additions and 23 deletions

View File

@ -230,29 +230,6 @@ item_type *it_get_or_create(resource_type *rtype) {
return itype;
}
item_type *new_itemtype(resource_type * rtype,
int iflags, int weight, int capacity)
{
item_type *itype;
assert(!rtype->itype);
assert(!rtype->uchange || rtype->uchange==res_changeitem);
itype = calloc(sizeof(item_type), 1);
itype->rtype = rtype;
itype->weight = weight;
itype->capacity = capacity;
itype->flags |= iflags;
it_register(itype);
rtype->itype = itype;
rtype->flags |= RTF_ITEM;
rtype->uchange = res_changeitem;
return itype;
}
static void lt_register(luxury_type * ltype)
{
ltype->itype->rtype->ltype = ltype;