]> git.pond.sub.org Git - empserver/blobdiff - src/lib/player/player.c
Update copyright notice
[empserver] / src / lib / player / player.c
index 96d3b73254d7f6fb4c8945b79c06a982f4b32881..4846953eb4644c318db1314ef20bbc9597da8c4c 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2014, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2021, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                Ken Stevens, Steve McClure, Markus Armbruster
  *
  *  Empire is free software: you can redistribute it and/or modify
@@ -28,7 +28,7 @@
  *
  *  Known contributors to this file:
  *     Steve McClure, 2000
- *     Markus Armbruster, 2004-2014
+ *     Markus Armbruster, 2004-2017
  *     Ron Koenderink, 2004-2009
  */
 
 #include "chance.h"
 #include "empio.h"
 #include "empthread.h"
-#include "file.h"
 #include "misc.h"
 #include "nat.h"
 #include "optlist.h"
 #include "player.h"
 #include "prototypes.h"
-
+#include "version.h"
 
 static int command(void);
 static int status(void);
@@ -64,6 +63,11 @@ player_main(struct player *p)
        pr("\n"
           "***          Server configured for testing          ***\n"
           "*** If you see this in a game, it is misconfigured! ***\n");
+    else if (strstr(version, "UNKNOWN-"))
+       pr("\n"
+          "***              Server version is unknown               ***\n"
+          "*** If you see this in a game, it was built incorrectly! ***\n");
+
     if (init_nats() < 0) {
        pr("Server confused, try again later\n");
        return;
@@ -202,7 +206,7 @@ status(void)
 }
 
 /*
- * Make all objects stale if ARG is one of the player's command arguments.
+ * Make all objects stale if @arg is one of the player's command arguments.
  * See ef_make_stale() for what "making stale" means.
  * Useful for functions that prompt for missing arguments.
  * These can yield the processor, so we'd like to call ef_make_stale()