forked from github/server
fix the loading of chaoscount attributes that I broke in the refactoring.
This commit is contained in:
parent
a2c98778fd
commit
f8136530ef
|
@ -44,7 +44,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
/* at_chaoscount */
|
/* at_chaoscount */
|
||||||
/*********************/
|
/*********************/
|
||||||
attrib_type at_chaoscount = {
|
attrib_type at_chaoscount = {
|
||||||
"get_chaoscount",
|
"chaoscount",
|
||||||
DEFAULT_INIT,
|
DEFAULT_INIT,
|
||||||
DEFAULT_FINALIZE,
|
DEFAULT_FINALIZE,
|
||||||
DEFAULT_AGE,
|
DEFAULT_AGE,
|
||||||
|
@ -251,6 +251,6 @@ void chaos_update(void) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void chaos_init(void) {
|
void chaos_register(void) {
|
||||||
at_register(&at_chaoscount);
|
at_register(&at_chaoscount);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@ extern "C" {
|
||||||
|
|
||||||
extern struct attrib_type at_chaoscount;
|
extern struct attrib_type at_chaoscount;
|
||||||
|
|
||||||
void chaos_init(void);
|
void chaos_register(void);
|
||||||
void chaos_update(void);
|
void chaos_update(void);
|
||||||
|
|
||||||
int get_chaoscount(const struct region * r);
|
int get_chaoscount(const struct region * r);
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
#include <modules/xmas.h>
|
#include <modules/xmas.h>
|
||||||
#include <items/itemtypes.h>
|
#include <items/itemtypes.h>
|
||||||
#include <attributes/attributes.h>
|
#include <attributes/attributes.h>
|
||||||
|
#include "chaos.h"
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
#include "items.h"
|
#include "items.h"
|
||||||
#include "creport.h"
|
#include "creport.h"
|
||||||
|
@ -73,4 +74,5 @@ void game_init(void)
|
||||||
register_attributes();
|
register_attributes();
|
||||||
register_gmcmd();
|
register_gmcmd();
|
||||||
|
|
||||||
|
chaos_register();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue