From b5e2fd8b36295f8d3bc17777dc75f9f4f1365e07 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 9 May 2002 11:41:20 +0000 Subject: [PATCH] region- und shipcurse kompilieren auch --- src/common/spells/regioncurse.c | 14 ++++++++++---- src/common/spells/regioncurse.h | 4 ++++ src/common/spells/shipcurse.c | 15 ++++++++------- src/common/spells/shipcurse.h | 2 ++ 4 files changed, 24 insertions(+), 11 deletions(-) diff --git a/src/common/spells/regioncurse.c b/src/common/spells/regioncurse.c index 5ff5f44fb..0768b5614 100644 --- a/src/common/spells/regioncurse.c +++ b/src/common/spells/regioncurse.c @@ -16,10 +16,11 @@ #include "regioncurse.h" /* kernel includes */ -#include "message.h" -#include "nrmessage.h" -#include "objtypes.h" -#include "curse.h" +#include +#include +#include +#include +#include /* util includes */ #include @@ -112,3 +113,8 @@ cinfo_magicstreet(const locale * lang,void * obj, typ_t typ, curse *c, int self) return 1; } + +void register_regioncurse(void) +{ +} + diff --git a/src/common/spells/regioncurse.h b/src/common/spells/regioncurse.h index 5e7e2ca1a..51d639b5b 100644 --- a/src/common/spells/regioncurse.h +++ b/src/common/spells/regioncurse.h @@ -14,10 +14,14 @@ #ifndef _RCURSE_H #define _RCURSE_H +/* int cinfo_region(const locale *, void *, typ_t, curse *, int); int cinfo_cursed_by_the_gods(const locale *, void *, typ_t, curse *, int); int cinfo_dreamcurse(const locale *, void *, typ_t, curse *, int); int cinfo_magicstreet(const locale *, void *, typ_t, curse *, int); +*/ + +extern void register_regioncurse(void); #endif /* _RCURSE_H */ diff --git a/src/common/spells/shipcurse.c b/src/common/spells/shipcurse.c index 82a4caad6..50c224acb 100644 --- a/src/common/spells/shipcurse.c +++ b/src/common/spells/shipcurse.c @@ -16,13 +16,15 @@ #include "shipcurse.h" /* kernel includes */ -#include "message.h" -#include "nrmessage.h" -#include "objtypes.h" -#include "curse.h" +#include +#include +#include +#include +#include /* util includes */ #include +#include /* libc includes */ #include @@ -53,11 +55,10 @@ static int cinfo_ship_onlyowner(const locale * lang, void * obj, typ_t typ, curse *c, int self) { message * msg; - ship * sh; - + + unused(obj); unused(typ); assert(typ == TYP_SHIP); - sh = (ship*)obj; if (self){ msg = msg_message(mkname("curseinfo", c->type->cname), "id", c->no); diff --git a/src/common/spells/shipcurse.h b/src/common/spells/shipcurse.h index f69fea734..440f30ee2 100644 --- a/src/common/spells/shipcurse.h +++ b/src/common/spells/shipcurse.h @@ -14,6 +14,8 @@ #ifndef _SCURSE_H #define _SCURSE_H +/* int cinfo_shipnodrift(const locale *, void *, typ_t, curse *, int); +*/ #endif /* _SCURSE_H */