forked from github/server
we are about to remove rt_register, but not quite yet.
This commit is contained in:
parent
773f3767d3
commit
95929a99b5
|
@ -193,7 +193,6 @@ void it_register(item_type * itype)
|
|||
|
||||
assert(len<sizeof(buffer)-sizeof(itype));
|
||||
len = cb_new_kv(name, len, &itype, sizeof(itype), buffer);
|
||||
rt_register(itype->rtype);
|
||||
}
|
||||
|
||||
static const char *it_aliases[][2] = {
|
||||
|
|
|
@ -225,7 +225,7 @@ extern "C" {
|
|||
int *deaths);
|
||||
} weapon_type;
|
||||
|
||||
extern void rt_register(resource_type * it);
|
||||
void rt_register(resource_type * it);
|
||||
resource_type *rt_find(const char *name);
|
||||
item_type *it_find(const char *name);
|
||||
|
||||
|
|
|
@ -124,6 +124,7 @@ item_type * test_create_itemtype(const char ** names) {
|
|||
item_type * itype;
|
||||
|
||||
rtype = new_resourcetype(names, NULL, RTF_ITEM);
|
||||
rt_register(rtype);
|
||||
itype = new_itemtype(rtype, ITF_ANIMAL | ITF_BIG, 5000, 7000);
|
||||
|
||||
return itype;
|
||||
|
|
Loading…
Reference in New Issue