]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/radmap.c
Update copyright notice
[empserver] / src / lib / subs / radmap.c
index fec8c5ae774a77344d1639a6705f928da68024af..da698bbbeb9a70471f5619ce97017cb8bbc823c8 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-2018, 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/>.
  *
  *  ---
  *
  *
  *  Known contributors to this file:
  *     Dave Pare, 1989
+ *     Markus Armbruster, 2004-2010
  */
 
 #include <config.h>
 
 #include <stdlib.h>
-#include "file.h"
 #include "map.h"
 #include "misc.h"
 #include "nat.h"
@@ -59,9 +58,9 @@ static signed char **vis;
 static signed char *visbuf;
 
 /*
- * Draw a radar map for radar at CX,CY.
- * EFF is the radar's efficiency, TLEV its tech level, SPY its power.
- * Submarines are detected at fraction SEESUB of the range.
+ * Draw a radar map for radar at @cx,@cy.
+ * @eff is the radar's efficiency, @tlev its tech level, @spy its power.
+ * Submarines are detected at fraction @seesub of the range.
  */
 void
 radmap(int cx, int cy, int eff, double tlev, int spy, double seesub)
@@ -160,9 +159,9 @@ radmap(int cx, int cy, int eff, double tlev, int spy, double seesub)
 }
 
 /*
- * Return distance from left edge of R to X.
+ * Return distance from left edge of @r to @x.
  * Value is between 0 (inclusive) and WORLD_X (exclusive).
- * X must be normalized.
+ * @x must be normalized.
  */
 int
 deltx(struct range *r, coord x)
@@ -173,9 +172,9 @@ deltx(struct range *r, coord x)
 }
 
 /*
- * Return distance from top edge of R to Y.
+ * Return distance from top edge of @r to @y.
  * Value is between 0 (inclusive) and WORLD_Y (exclusive).
- * Y must be normalized.
+ * @y must be normalized.
  */
 int
 delty(struct range *r, coord y)
@@ -186,8 +185,8 @@ delty(struct range *r, coord y)
 }
 
 /*
- * Update OWNER's bmap for radar at CX,CY.
- * EFF is the radar's efficiency, TLEV its tech level, SPY its power.
+ * Update @owner's bmap for radar at @cx,@cy.
+ * @eff is the radar's efficiency, @tlev its tech level, @spy its power.
  */
 void
 rad_map_set(natid owner, int cx, int cy, int eff, double tlev, int spy)
@@ -208,7 +207,7 @@ rad_map_set(natid owner, int cx, int cy, int eff, double tlev, int spy)
 }
 
 /*
- * Range of a radar with EFF efficiency, TLEV tech, and SPY power.
+ * Range of a radar with @eff efficiency, @tlev tech, and @spy power.
  */
 static int
 rad_range(int eff, double tlev, int spy)
@@ -223,9 +222,9 @@ rad_range(int eff, double tlev, int spy)
 }
 
 /*
- * Return character to use in radar maps for sector SP.
- * DIST is the distance from the radar, RANGE its range.
- * Country CN is using the radar.
+ * Return character to use in radar maps for sector @sp.
+ * @dist is the distance from the radar, @range its range.
+ * Country @cn is using the radar.
  */
 static char
 rad_char(struct sctstr *sp, int dist, int range, natid cn)