New server.h for server startup, control and shutdown, i.e. stuff in
src/server. Use it.
This commit is contained in:
parent
8115388a58
commit
22a356b1e1
19 changed files with 73 additions and 24 deletions
|
@ -51,8 +51,8 @@
|
|||
#include "path.h"
|
||||
#include "prototypes.h"
|
||||
#include "optlist.h"
|
||||
#include "server.h"
|
||||
|
||||
extern int update_pending;
|
||||
|
||||
#ifndef MIN
|
||||
#define MIN(x,y) ((x) < (y) ? (x) : (y))
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
#include "com.h"
|
||||
#include "news.h"
|
||||
#include "tel.h"
|
||||
extern int update_pending;
|
||||
#include "server.h"
|
||||
#include "prototypes.h"
|
||||
|
||||
static void outid(struct player *pl, int n);
|
||||
|
|
|
@ -38,9 +38,9 @@
|
|||
#include "player.h"
|
||||
#include "prototypes.h"
|
||||
#include "optlist.h"
|
||||
#include "server.h"
|
||||
|
||||
extern s_char *relates[];
|
||||
extern int update_pending;
|
||||
|
||||
int
|
||||
setrel(natid us, natid them, int rel)
|
||||
|
|
|
@ -50,6 +50,7 @@
|
|||
#include "mission.h"
|
||||
#include "optlist.h"
|
||||
#include "damage.h"
|
||||
#include "server.h"
|
||||
#include "prototypes.h"
|
||||
|
||||
extern double tfactfire(natid, double);
|
||||
|
@ -119,7 +120,6 @@ void
|
|||
shp_nav(struct emp_qelem *list, double *minmobp, double *maxmobp,
|
||||
int *togetherp, natid actor)
|
||||
{
|
||||
extern int update_pending;
|
||||
struct emp_qelem *qp;
|
||||
struct emp_qelem *next;
|
||||
struct mlist *mlp;
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
#include "tel.h"
|
||||
#include "file.h"
|
||||
#include "player.h"
|
||||
#include "server.h"
|
||||
#include "prototypes.h"
|
||||
|
||||
static struct telstr last_tel[MAXNOC];
|
||||
|
@ -62,7 +63,6 @@ clear_telegram_is_new(natid to)
|
|||
static int
|
||||
telegram_is_new(natid to, struct telstr *tel)
|
||||
{
|
||||
extern int update_pending;
|
||||
int is_new = 0;
|
||||
|
||||
is_new |= tel->tel_type != last_tel[to].tel_type;
|
||||
|
@ -84,7 +84,6 @@ wu(natid from, natid to, s_char *format, ...)
|
|||
struct natstr *np;
|
||||
va_list ap;
|
||||
s_char buf[4096];
|
||||
extern int update_pending;
|
||||
|
||||
va_start(ap, format);
|
||||
(void)vsprintf(buf, format, ap);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue