]> git.pond.sub.org Git - empserver/commitdiff
Remove some unused stuff, mostly Empire 3 leftovers.
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 28 Feb 2004 09:45:10 +0000 (09:45 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 28 Feb 2004 09:45:10 +0000 (09:45 +0000)
include/item.h
include/map.h
include/mission.h
include/nat.h
include/news.h
include/nsc.h
include/treaty.h
src/lib/global/item.c
src/lib/global/news.c
src/lib/global/nsc.c
src/lib/global/treaty.c

index 5013171c481735800aaba0c8ff6d2b90cd24899e..953d6cb62abb329ad0f5ada7f0aa656e3b2d538a 100644 (file)
@@ -55,6 +55,4 @@ extern int maxitem;
 
 extern struct ichrstr *whatitem(s_char *ptr, s_char *prompt);
 
 
 extern struct ichrstr *whatitem(s_char *ptr, s_char *prompt);
 
-extern int itm_maxno;
-
 #endif /* _ITEM_H_ */
 #endif /* _ITEM_H_ */
index 6c45786a12137a470da4713502d0c5f861b4487c..aa42317f53e843bf64cfd6f60f69c5c12f48c2e5 100644 (file)
@@ -55,11 +55,4 @@ extern void border(struct range *, s_char *, s_char *);
 #define MAP_HIGH       bit(3)
 #define MAP_ALL                MAP_SHIP | MAP_LAND | MAP_PLANE
 
 #define MAP_HIGH       bit(3)
 #define MAP_ALL                MAP_SHIP | MAP_LAND | MAP_PLANE
 
-struct mapstr {
-    short ef_type;
-    coord map_x;
-    coord map_y;
-    s_char map_des;
-};
-
 #endif /* _MAP_H_ */
 #endif /* _MAP_H_ */
index 52adb3c03fbf525cb962a3cd97936396efdb8ee8..3ffe289fafa2e9ed3813fc390588ba28f75729a6 100644 (file)
 #define MI_DSUPPORT    7
 #define MI_OSUPPORT    8
 
 #define MI_DSUPPORT    7
 #define MI_OSUPPORT    8
 
-/* The following "missions" do not need to be set--they are automatic */
-#define MI_FINTERDICT   9      /* forts interdicting ships */
-#define MI_MINTERDICT  10      /* missiles interdicting ships or land units */
-#define MI_MINTERCEPT  11      /* missile interception */
-#define MI_SINTERCEPT  12      /* sattelite interception */
-#define MI_PINTERCEPT  13      /* intercept planes */
-#define MI_SAM         14      /* SAM interception */
-#define MI_LREACT      15      /* land units react */
-#define MI_MAX         15
-
 struct genlist {
     struct emp_qelem queue;    /* list of units */
     int type;                  /* type of unit */
 struct genlist {
     struct emp_qelem queue;    /* list of units */
     int type;                  /* type of unit */
index 41fbfeaf6f25dd7bae790bf1729182fa2ab60674..8cf7006fcae60347a6c3387f59705084015fb231 100644 (file)
@@ -36,7 +36,6 @@
 #ifndef _NAT_H_
 #define _NAT_H_
 
 #ifndef _NAT_H_
 #define _NAT_H_
 
-#include "mission.h"
 #include "sect.h"
 
 #define        MAXNOR          50      /* max # realms */
 #include "sect.h"
 
 #define        MAXNOR          50      /* max # realms */
@@ -75,11 +74,11 @@ struct natstr {
     float nat_level[4];                /* technology, etc */
     struct boundstr nat_b[MAXNOR];     /* realm bounds */
     short nat_relate[MAXNOC];
     float nat_level[4];                /* technology, etc */
     struct boundstr nat_b[MAXNOR];     /* realm bounds */
     short nat_relate[MAXNOC];
-    short nat_contact[MAXNOC]; /* short for everyone */
+    short nat_contact[MAXNOC];
     short nat_rejects[(MAXNOC + 3) / 4];       /* four bits for each country */
     s_char nat_priorities[SCT_MAXDEF + 8];     /* priority for each SCT_MAXDEF+8 */
     long nat_flags;            /* nation flags */
     short nat_rejects[(MAXNOC + 3) / 4];       /* four bits for each country */
     s_char nat_priorities[SCT_MAXDEF + 8];     /* priority for each SCT_MAXDEF+8 */
     long nat_flags;            /* nation flags */
-    s_char nat_mission_trigger[MI_MAX];        /* not used -- relation to trig */
+    char nat_spare[15];
 };
 
        /* Priorities */
 };
 
        /* Priorities */
@@ -129,36 +128,12 @@ struct natstr {
 #define        NAT_ELEV        2
 #define        NAT_HLEV        3
 
 #define        NAT_ELEV        2
 #define        NAT_HLEV        3
 
-#define        NF_CHAR         1
-#define        NF_UCHAR        2
-#define        NF_SHORT        3
-#define        NF_LONG         4
-#define        NF_STRING       5
-#define        NF_FLOAT        6
-#define        NF_DOUBLE       7
-#define        NF_BOUND        8
-
-#define NF_NOTIFY      1
-#define NF_PRIVATE     2
-
-#define NF_NATID       NF_UCHAR
-#define NF_COORD       NF_SHORT
-
 #define FOUND_FLY      3       /* Number of updates contact lasts */
 #define FOUND_LOOK     5       /* These are only useful with the */
 #define FOUND_SPY      6       /* LOSE_CONTACT option (and HIDDEN) */
 #define FOUND_FLY      3       /* Number of updates contact lasts */
 #define FOUND_LOOK     5       /* These are only useful with the */
 #define FOUND_SPY      6       /* LOSE_CONTACT option (and HIDDEN) */
-#define FOUND_MAP      6
 #define FOUND_TELE     3
 #define FOUND_COAST    3
 
 #define FOUND_TELE     3
 #define FOUND_COAST    3
 
-struct fixnat {
-    s_char *name;
-    int type;
-    int index;
-    int notify;
-    int offset;
-};
-
 extern s_char *relates[];
 
 /* procedures relating to nation stuff */
 extern s_char *relates[];
 
 /* procedures relating to nation stuff */
@@ -194,6 +169,7 @@ extern void putreject(struct natstr *np, natid them, int how, int what);
 extern void putcontact(struct natstr *np, natid them, int contact);
 extern void agecontact(struct natstr *np);
 
 extern void putcontact(struct natstr *np, natid them, int contact);
 extern void agecontact(struct natstr *np);
 
+/* nation flags */
 #define NF_INFORM      bit(0)  /* Inform me of telegrams right away */
 #define NF_FLASH       bit(1)  /* Allow other players to flash me (sicko :) */
 #define NF_BEEP        bit(2)  /* Make beeping sounds when appropriate */
 #define NF_INFORM      bit(0)  /* Inform me of telegrams right away */
 #define NF_FLASH       bit(1)  /* Allow other players to flash me (sicko :) */
 #define NF_BEEP        bit(2)  /* Make beeping sounds when appropriate */
index 85193de19549c890926376aada61f00efcb6926d..0fabd0683fd737cc585707e8b387bcbf47f37ecf 100644 (file)
@@ -168,6 +168,5 @@ struct rptstr {
 
 extern struct rptstr rpt[];
 extern s_char *page_headings[];
 
 extern struct rptstr rpt[];
 extern s_char *page_headings[];
-extern int nws_maxno;
 
 #endif /* _NEWS_H_ */
 
 #endif /* _NEWS_H_ */
index 44af2b29ba939d07d3360c70cbf53a53622dfe37..92c8584eb6585a41e9676f2fce82e5c056327c47 100644 (file)
@@ -154,7 +154,6 @@ extern struct castr treaty_ca[];
 extern struct castr trade_ca[];
 extern struct castr loan_ca[];
 extern struct castr genitem_ca[];
 extern struct castr trade_ca[];
 extern struct castr loan_ca[];
 extern struct castr genitem_ca[];
-extern struct castr map_ca[];
 extern struct castr lost_ca[];
 extern struct castr commodity_ca[];
 
 extern struct castr lost_ca[];
 extern struct castr commodity_ca[];
 
index c9a6caf0324bf93331f9ced74d64916fc7a2c533..35a968e626541db90d04deca1302d6e0d1e9a9b3 100644 (file)
@@ -79,6 +79,4 @@ struct tchrstr {
 
 extern struct tchrstr tchr[];
 
 
 extern struct tchrstr tchr[];
 
-extern int trt_maxno;
-
 #endif /* _TREATY_H_ */
 #endif /* _TREATY_H_ */
index 60924b60655b14eacf1290c9136877e2d9726657..264630d0c7510d51779ca00cb6da552533792810 100644 (file)
@@ -59,5 +59,3 @@ struct ichrstr ichr[I_MAX + 2] = {
     {'r', V_RAD, 150, 1, 8, {1, 10, 1, 1}, "radioactive materials"},
     {0, 0, 0, 0, 0, {0, 0, 0, 0}, 0}
 };
     {'r', V_RAD, 150, 1, 8, {1, 10, 1, 1}, "radioactive materials"},
     {0, 0, 0, 0, 0, {0, 0, 0, 0}, 0}
 };
-
-int itm_maxno = (sizeof(ichr) / sizeof(struct ichrstr)) - 1;
index 45f8721c0dc8ffaa5f8cfad9cddc0ea4f746ff65..69c761ac453a242b48eb985908438b65d0147ac1 100644 (file)
@@ -241,5 +241,3 @@ struct rptstr rpt[N_MAX_VERB + 1] = {
     {-2, N_FRONT, {"mercenaries board one of %s's land units",
 /* 82*/ "elite forces board %s land unit"}}
 };
     {-2, N_FRONT, {"mercenaries board one of %s's land units",
 /* 82*/ "elite forces board %s land unit"}}
 };
-
-int nws_maxno = (sizeof(rpt) / sizeof(struct rptstr)) - 1;
index c230e367c9a07d98651affdb2b2c67e4ec6e3c78..e0dbf2dd61f715efbec08bf34179ea910d1a034a 100644 (file)
@@ -340,10 +340,3 @@ struct castr nat_ca[] = {
 /* {NSC_LONG | NSC_OFF | fldoff(natstr, nat_flags),"flags",0}, */
     {0, 0, 0}
 };
 /* {NSC_LONG | NSC_OFF | fldoff(natstr, nat_flags),"flags",0}, */
     {0, 0, 0}
 };
-
-struct castr map_ca[] = {
-    {NSC_XCOORD | NSC_OFF | fldoff(mapstr, map_x), "x", 0},
-    {NSC_YCOORD | NSC_OFF | fldoff(mapstr, map_y), "y", 0},
-    {NSC_CHAR | NSC_OFF | fldoff(mapstr, map_des), "des", 0},
-    {0, 0, 0}
-};
index b4569a58a54940fba604d0246848c56c624265fb..c8a96ce930f5e0ff662abdd76989f0a52b9808e3 100644 (file)
@@ -49,5 +49,3 @@ struct tchrstr tchr[] = {
     {TRTENL, "no enlistment"},
     {0, 0}
 };
     {TRTENL, "no enlistment"},
     {0, 0}
 };
-
-int trt_maxno = (sizeof(tchr) / sizeof(struct tchrstr)) - 1;