forked from github/server
functions need to be defined before used by items (before xml)
This commit is contained in:
parent
e31215f8f1
commit
756b65b1ed
|
@ -19,6 +19,8 @@
|
|||
#include <kernel/study.h>
|
||||
#include <kernel/unit.h>
|
||||
|
||||
#include <items/demonseye.h>
|
||||
|
||||
#include <util/attrib.h>
|
||||
#include <util/functions.h>
|
||||
#include <util/rand.h>
|
||||
|
@ -260,6 +262,7 @@ use_aurapotion50(struct unit * u, const struct item_type * itype,
|
|||
void
|
||||
register_itemfunctions(void)
|
||||
{
|
||||
register_demonseye();
|
||||
register_function((pf_generic)use_antimagiccrystal, "use_antimagiccrystal");
|
||||
register_function((pf_generic)use_instantartsculpture, "use_instantartsculpture");
|
||||
register_function((pf_generic)use_studypotion, "use_studypotion");
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#include <eressea.h>
|
||||
#include "itemtypes.h"
|
||||
|
||||
#include "demonseye.h"
|
||||
#include "xerewards.h"
|
||||
#include "artrewards.h"
|
||||
#include "weapons.h"
|
||||
|
@ -24,7 +23,6 @@ void
|
|||
init_itemtypes(void)
|
||||
{
|
||||
register_weapons();
|
||||
register_demonseye();
|
||||
register_xerewards();
|
||||
register_artrewards();
|
||||
init_weapons();
|
||||
|
|
Loading…
Reference in New Issue