]> git.pond.sub.org Git - empserver/blobdiff - include/news.h
client: Unbreak standalone build
[empserver] / include / news.h
index 67b70f985f326a0939645204189ae0b94ec61caf..12927101781d758441cd752e0a9ef46242ebac0f 100644 (file)
@@ -1,11 +1,11 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2010, Dave Pare, Jeff Bailey, Thomas Ruschak,
- *                           Ken Stevens, Steve McClure
+ *  Copyright (C) 1986-2021, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *                Ken Stevens, Steve McClure, Markus Armbruster
  *
- *  This program is free software; you can redistribute it and/or modify
+ *  Empire is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
+ *  the Free Software Foundation, either version 3 of the License, or
  *  (at your option) any later version.
  *
  *  This program is distributed in the hope that it will be useful,
@@ -14,8 +14,7 @@
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *
  *  ---
  *
@@ -31,6 +30,7 @@
  *     Dave Pare
  *     Thomas Ruschak
  *     Steve McClure
+ *     Markus Armbruster, 2004-2016
  */
 
 /*
 #ifndef NEWS_H
 #define NEWS_H
 
-#include <time.h>
+#include "file.h"
 #include "nsc.h"
 
 struct nwsstr {
     natid nws_ano;             /* "actor" country # */
     unsigned char nws_vrb;     /* action (verb) */
     natid nws_vno;             /* "victim" country # */
-    signed char nws_ntm;       /* number of times */
+    unsigned short nws_ntm;    /* number of times */
     short nws_duration;                /* last time at nws_when + nws_duration */
     time_t nws_when;           /* time of action */
 };
@@ -67,7 +67,7 @@ struct rptstr {
 #define N_SCT_LOSE     2
 #define N_SPY_SHOT     3
 #define N_SENT_TEL     4
-#define N_SIGN_TRE     5
+/* unused              5 */
 #define N_MAKE_LOAN    6
 #define N_REPAY_LOAN   7
 #define N_MAKE_SALE    8
@@ -84,8 +84,8 @@ struct rptstr {
 #define N_SHP_LOSE     19
 /* unused              20 */
 #define N_SEIZE_SECT   21
-#define N_HONOR_TRE    22
-#define N_VIOL_TRE     23
+/* unused              22 */
+/* unused              23 */
 /* unused              24 */
 #define N_HIT_MINE     25
 #define N_DECL_ALLY    26