]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/retreat.c
retreat: Drop unused parameter @code
[empserver] / src / lib / subs / retreat.c
index fad0e96b5e25a0a36db25e2c6d78d0cee16c2ede..4767ebb3df35a231c020a7c18a1a760c21025a3e 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2015, 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
  *  Known contributors to this file:
  *     Steve McClure, 2000
  *     Ron Koenderink, 2005-2006
- *     Markus Armbruster, 2006-2015
+ *     Markus Armbruster, 2006-2021
  */
 
 #include <config.h>
 
-#include "file.h"
 #include "nsc.h"
 #include "path.h"
 #include "player.h"
@@ -68,7 +67,7 @@ consume_step(char *rpath, int *rflags)
 }
 
 void
-retreat_ship(struct shpstr *sp, natid own, char code)
+retreat_ship(struct shpstr *sp, natid own)
 {
     int n, i;
     struct emp_qelem list;
@@ -111,7 +110,7 @@ retreat_ship(struct shpstr *sp, natid own, char code)
        }
     }
 
-    /* Loop similar to the one in unit_move().  Keep it that way!  */
+    /* Loop similar to the one in unit_move().  Keep it that way! */
     for (i = 0; i < n && !QEMPTY(&list); i++) {
        /*
         * Invariant: shp_may_nav() true for all ships
@@ -174,7 +173,7 @@ retreat_ships_step(struct emp_qelem *list, char step, natid actor)
 }
 
 void
-retreat_land(struct lndstr *lp, natid own, char code)
+retreat_land(struct lndstr *lp, natid own)
 {
     int n, i;
     struct emp_qelem list;
@@ -211,7 +210,7 @@ retreat_land(struct lndstr *lp, natid own, char code)
        }
     }
 
-    /* Loop similar to the one in unit_move().  Keep it that way!  */
+    /* Loop similar to the one in unit_move().  Keep it that way! */
     for (i = 0; i < n && !QEMPTY(&list); i++) {
        /*
         * Invariant: lnd_may_nav() true for all land units