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