Fix trailing whitespace
This commit is contained in:
parent
a9653c475b
commit
d702068457
509 changed files with 922 additions and 922 deletions
|
@ -1,36 +1,36 @@
|
|||
#
|
||||
#
|
||||
# Empire - A multi-player, client/server Internet based war game.
|
||||
# Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
|
||||
# Ken Stevens, Steve McClure
|
||||
#
|
||||
#
|
||||
# This program 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
|
||||
# (at your option) any later version.
|
||||
#
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# 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
|
||||
#
|
||||
#
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# See files README, COPYING and CREDITS in the root of the source
|
||||
# tree for related information and legal notices. It is expected
|
||||
# that future projects/authors will amend these files as needed.
|
||||
#
|
||||
#
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# @configure_input@
|
||||
# Makefile.in: Makefile template for configure
|
||||
#
|
||||
#
|
||||
# Known contributors to this file:
|
||||
# Markus Armbruster, 2005-2006
|
||||
#
|
||||
#
|
||||
|
||||
CC = @CC@
|
||||
CFLAGS = @CFLAGS@ @CPPFLAGS@ @DEFS@ -I.
|
||||
|
|
|
@ -1,35 +1,35 @@
|
|||
#
|
||||
#
|
||||
# Empire - A multi-player, client/server Internet based war game.
|
||||
# Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
|
||||
# Ken Stevens, Steve McClure
|
||||
#
|
||||
#
|
||||
# This program 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
|
||||
# (at your option) any later version.
|
||||
#
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# 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
|
||||
#
|
||||
#
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# See files README, COPYING and CREDITS in the root of the source
|
||||
# tree for related information and legal notices. It is expected
|
||||
# that future projects/authors will amend these files as needed.
|
||||
#
|
||||
#
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# configure.ac: Autoconf input file
|
||||
#
|
||||
#
|
||||
# Known contributors to this file:
|
||||
# Markus Armbruster, 2005
|
||||
#
|
||||
#
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
# Autoconf makes checking for and programming around assorted ancient
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* expect.c: Read from the socket, expecting to see a particular code.
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Steve McClure, 1998
|
||||
* Markus Armbruster, 2007
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* host.c: make stream connection to empire
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1989
|
||||
* Steve McClure, 1998
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
*
|
||||
* @configure_input@
|
||||
* ipglob.c.in: IP globals.
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Markus Armbruster, 2005
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* linebuf.c: Simple line buffer
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Markus Armbruster, 2007
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* linebuf.h: Simple line buffer
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Markus Armbruster, 2007
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* login.c: Log into an empire server
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1989
|
||||
* Steve McClure, 1998
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* main.c: client main function
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1986
|
||||
* Steve McClure, 1998
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* misc.h: Misc client definitions
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Steve McClure, 1998
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* play.c: Playing the game
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Markus Armbruster, 2007
|
||||
* Ron Koenderink, 2007
|
||||
|
@ -104,7 +104,7 @@ sigaction(int signal, struct sigaction *action, struct sigaction *oaction)
|
|||
{
|
||||
assert(!oaction);
|
||||
assert(action);
|
||||
|
||||
|
||||
if (signal == SIGPIPE)
|
||||
assert(action->sa_handler == SIG_IGN);
|
||||
else {
|
||||
|
@ -218,7 +218,7 @@ w32_select(int nfds, fd_set *rdfd, fd_set *wrfd, fd_set *errfd, struct timeval*
|
|||
return -1;
|
||||
}
|
||||
WSACloseEvent(handles[num_handles - 1]);
|
||||
|
||||
|
||||
if (num_handles == 3 && result == WAIT_OBJECT_0) {
|
||||
errno = EINTR;
|
||||
return -1;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* ringbuf.c: Simple ring buffer
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Markus Armbruster, 2007
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* ringbuf.h: Simple ring buffer
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Markus Armbruster, 2007
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* secure.c: Check redir etc. to protect against tampering deity
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Markus Armbruster, 2007
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* secure.h: Check redir etc. to protect against tampering deity
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Markus Armbruster, 2007
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* servercmd.c: Change the state depending on the command from the server.
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1989
|
||||
* Steve McClure, 1998
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* sysdep_w32.c: system dependent functions for WIN32 environments
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Ron Koenderink, 2007
|
||||
*/
|
||||
|
@ -95,7 +95,7 @@ int
|
|||
w32_socket(int family, int sock_type, int protocol)
|
||||
{
|
||||
SOCKET result;
|
||||
|
||||
|
||||
result = socket(family, sock_type, protocol);
|
||||
if (result == INVALID_SOCKET) {
|
||||
errno = WSAGetLastError();
|
||||
|
@ -112,7 +112,7 @@ int
|
|||
w32_connect(int sock, struct sockaddr *addr, int addrlen)
|
||||
{
|
||||
int result;
|
||||
|
||||
|
||||
result = connect(sock, addr, addrlen);
|
||||
if (result == SOCKET_ERROR) {
|
||||
errno = WSAGetLastError();
|
||||
|
@ -197,7 +197,7 @@ int
|
|||
w32_close_socket(int fd)
|
||||
{
|
||||
int result;
|
||||
|
||||
|
||||
result = closesocket(fd);
|
||||
if (result == SOCKET_ERROR)
|
||||
errno = WSAGetLastError();
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* sysdep_w32.h: system dependent support for WIN32 environments
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Ron Koenderink, 2007
|
||||
*/
|
||||
|
@ -84,7 +84,7 @@ extern void sysdep_init(void);
|
|||
w32_socket((family), (sock_type), (protocol))
|
||||
#define connect(sock, addr, addrlen) \
|
||||
w32_connect((sock), (addr), (addrlen))
|
||||
|
||||
|
||||
#define pclose _pclose
|
||||
#define popen _popen
|
||||
#define snprintf _snprintf
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* termlib.c: Various termlib stuff
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1986
|
||||
* Steve McClure, 1998
|
||||
|
|
|
@ -162,7 +162,7 @@ arbitrary cost function we get off of a map. E.g.,
|
|||
|
||||
0 1 2 3
|
||||
0 0 0 0 0
|
||||
1 0 0 0 0
|
||||
1 0 0 0 0
|
||||
Y 2 0 0 2 0
|
||||
3 0 0 0 0
|
||||
|
||||
|
@ -238,7 +238,7 @@ to move on. The secondary sort function is then used to break the tie --
|
|||
it says, "Take the one that moves you closer to the destination".
|
||||
|
||||
Fourth, all of the information we need about a sector (its mobility
|
||||
cost, who owns it, etc.) is stored in the sector file on disk. This
|
||||
cost, who owns it, etc.) is stored in the sector file on disk. This
|
||||
means that the getsect() function to get it off disk will do a read(),
|
||||
which is VERY expensive. Because of the weak lower bound, A* ends up
|
||||
checking lots of sectors, including sectors that it's seen before.
|
||||
|
|
|
@ -114,7 +114,7 @@ struct as_data {
|
|||
struct as_node **neighbor_nodes;
|
||||
};
|
||||
|
||||
/*
|
||||
/*
|
||||
* Added these for caching of paths as we stumble across them
|
||||
*/
|
||||
|
||||
|
|
|
@ -26,9 +26,9 @@
|
|||
* ---
|
||||
*
|
||||
* acce.c: Report rejection status of telegrams/treaties/annos/loans
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* add.c: Add a new country to the game
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Steve McClure, 2000
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* anti.c: Take action against che
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Pat Loney, 1992
|
||||
* Steve McClure, 1997
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* arm.c: Arm planes (missiles) with nuclear devices
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1986
|
||||
* Ken Stevens, 1995
|
||||
|
|
|
@ -26,9 +26,9 @@
|
|||
* ---
|
||||
*
|
||||
* army.c: Add units to an army
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* assa.c: Hit the beaches!
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Ken Stevens, 1995
|
||||
* Steve McClure, 1997
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* atta.c: Attack another sector
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare
|
||||
* Ken Stevens, 1995
|
||||
|
|
|
@ -26,9 +26,9 @@
|
|||
* ---
|
||||
*
|
||||
* bdes.c: Change bmap designations
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
|
|
@ -26,9 +26,9 @@
|
|||
* ---
|
||||
*
|
||||
* best.c: Show the best path between two sectors
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* boar.c: Board an enemy ship
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Ken Stevens, 1995
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* bomb.c: Fly bombing missions
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1986
|
||||
* Ken Stevens, 1995
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* brea.c: Break out of sanctuary
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Jeff Wallace, 1989
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* budg.c: Calculate production levels, prioritize
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Thomas Ruschak, 1992
|
||||
* Ville Virrankoski, 1995
|
||||
|
@ -195,7 +195,7 @@ calc_all(long p_sect[][2],
|
|||
*ships = *sbuild = *nsbuild = *smaint = 0;
|
||||
*units = *lbuild = *nlbuild = *lmaint = 0;
|
||||
*planes = *pbuild = *npbuild = *pmaint = 0;
|
||||
|
||||
|
||||
np = getnatp(player->cnum);
|
||||
bp = bp_alloc();
|
||||
for (n = 0; NULL != (sp = getsectid(n)); n++) {
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* buil.c: Build ships, nukes, bridges, planes, land units, bridge towers
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Steve McClure, 1998-2000
|
||||
* Markus Armbruster, 2004-2008
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* buy.c: Buy commodities from other nations
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1986
|
||||
* Pat Loney, 1992
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* capi.c: Move your capital
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1986
|
||||
* Steve McClure, 2000
|
||||
|
|
|
@ -26,9 +26,9 @@
|
|||
* ---
|
||||
*
|
||||
* carg.c: List cargo contents of a ship
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* cede.c: Give a sector to a neighbor
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare
|
||||
* Thomas Ruschak
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* cens.c: Do a census report
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Steve McClure, 2000
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* chan.c: Change country/representative name
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Steve McClure, 2000
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* coas.c: Look at all the ships in the world
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Keith Muller, 1983
|
||||
* Dave Pare, 1986 (rewrite)
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* coll.c: Collet on a loan
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Pat Loney, 1992
|
||||
* Steve McClure, 1996-2000
|
||||
|
|
|
@ -26,9 +26,9 @@
|
|||
* ---
|
||||
*
|
||||
* comm.c: Do a commodity report
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
|
|
@ -26,9 +26,9 @@
|
|||
* ---
|
||||
*
|
||||
* cons.c: Consider a loan or treaty
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* conv.c: Convert conquered populace into uw's
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1986
|
||||
*/
|
||||
|
|
|
@ -26,9 +26,9 @@
|
|||
* ---
|
||||
*
|
||||
* coun.c: Do a country roster
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* cuto.c: Do a delivery cutoff level report
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* David Muir Sharnoff, 1987
|
||||
*/
|
||||
|
|
|
@ -26,9 +26,9 @@
|
|||
* ---
|
||||
*
|
||||
* decl.c: Declare war, neutrality, alliance, hostile or friendly
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
|
|
@ -26,9 +26,9 @@
|
|||
* ---
|
||||
*
|
||||
* deli.c: Set deliveries from a sector
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* demo.c: De-mobilize "n" military in a given sector
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1986
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* desi.c: Redesignate sectors
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Steve McClure, 1998-2000
|
||||
* Markus Armbruster, 2004-2008
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* disa.c: Disable updates (deity)
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Markus Armbruster, 2007
|
||||
*/
|
||||
|
|
|
@ -26,10 +26,10 @@
|
|||
* ---
|
||||
*
|
||||
* dist.c: Name distribution sector for a given range of sectors
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1986
|
||||
* Thomas Ruschak, 1993 (rewritten)
|
||||
* Thomas Ruschak, 1993 (rewritten)
|
||||
* Steve McClure, 1998
|
||||
*/
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* drop.c: Air-drop commodities
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1986
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* dump.c: Dump sector information
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Jeff Wallace, 1989
|
||||
* Steve McClure, 1997 (added timestamping)
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* echo.c: Just echo something
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Ken Stevens, 1995
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* edit.c: Edit things (sectors, ships, planes, units, nukes, countries)
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* David Muir Sharnoff
|
||||
* Chad Zabel, 1994
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* enab.c: Enable the updates (deity)
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Markus Armbruster, 2007
|
||||
*/
|
||||
|
|
|
@ -26,9 +26,9 @@
|
|||
* ---
|
||||
*
|
||||
* enli.c: Enlist some military
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* expl.c: Take over unoccupied sectors
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Jeff Wallace, 1989
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* fina.c: Financial report on current status of loans to countries
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1986
|
||||
* Steve McClure, 1996
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* flash.c: Flash a message to another player
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Ken Stevens, 1995
|
||||
* Steve McClure, 1998
|
||||
|
|
|
@ -26,9 +26,9 @@
|
|||
* ---
|
||||
*
|
||||
* flee.c: Add ships to a fleet
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* fly.c: fly a plane
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1986
|
||||
* Steve McClure, 2000
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* foll.c: Set leader of a set of ships
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Robert Forsman
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* force.c: Force an update to occur (deity)
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1994
|
||||
* Markus Armbruster, 2007
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* fort.c: Increase the fortification value of land units
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Steve McClure, 1999
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* give.c: give stuff to countries (deity)
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* David Muir Sharnoff
|
||||
* Steve McClure, 1997
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* grin.c: Grind gold bars into dust
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Markus Armbruster, 2004-2006
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* hard.c: Increases the silo protection of a given missile
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1986
|
||||
*/
|
||||
|
|
|
@ -26,9 +26,9 @@
|
|||
* ---
|
||||
*
|
||||
* head.c: Print headlines of the Empire News
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* improve.c: Improve the infrastructure of a sector
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Steve McClure, 1996-2000
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* info.c: display an info page
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1986
|
||||
* Mike Wise, 1997 - added apropos and case insensitivity
|
||||
|
@ -79,7 +79,7 @@ info(void)
|
|||
int nmatch = 0;
|
||||
int width = 0;
|
||||
char sep;
|
||||
|
||||
|
||||
name = player->argp[1];
|
||||
if (name) {
|
||||
/*
|
||||
|
@ -90,7 +90,7 @@ info(void)
|
|||
}
|
||||
if (!name || !*name)
|
||||
name = "TOP";
|
||||
|
||||
|
||||
snprintf(filename, sizeof(filename), "%s/%s", infodir, name);
|
||||
fp = fopen(filename, "r");
|
||||
if (fp == NULL) {
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* land.c: List land units
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Steve McClure, 1998
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* laun.c: Launch missiles from land or sea
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1986
|
||||
* Ken Stevens, 1995
|
||||
|
@ -93,7 +93,7 @@ laun(void)
|
|||
}
|
||||
}
|
||||
|
||||
if (plane.pln_effic < 40) {
|
||||
if (plane.pln_effic < 40) {
|
||||
pr("%s is damaged (%d%%)\n", prplane(&plane), plane.pln_effic);
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* lboard.c: Board an enemy land unit (heavily borrowing from boar.c)
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Steve McClure, 1998
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* ldump.c: Dump land unit information
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* John Yockey, 1997
|
||||
* Steve McClure, 1998
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* ledg.c: Get a report of the current ledger
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Steve McClure, 1996
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* leve.c: Do a distribution threshold level report
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* David Muir Sharnoff, 1987
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* load.c: load/unload goods from a sector onto a ship or land unit
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* David Sharnoff, 1987
|
||||
* Ken Stevens, 1995 (rewritten)
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* look.c: Lookout from a ship or land unit
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Ron Koenderink, 2006-2007
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* lost.c: List lost items
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Steve McClure, 1997
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* lstat.c: Show the stats of your land units
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Steve McClure, 1996
|
||||
*/
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
*
|
||||
* lten.c: Transfer commodity from a ship to a land unit the ship is
|
||||
* carrying
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1986
|
||||
* Thomas Ruschak
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* map.c: Display a map of sectors.
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1986
|
||||
* Ken Stevens, 1995
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* marc.c: March units around
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Thomas Ruschak
|
||||
* Ken Stevens, 1995 (rewrite)
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* mark.c: Display report for commodities
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1986
|
||||
* Pat Loney, 1992
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* multifire.c: Fire at other sectors/ships
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Steve McClure, 2000
|
||||
* Markus Armbruster, 2004-2008
|
||||
|
|
|
@ -26,9 +26,9 @@
|
|||
* ---
|
||||
*
|
||||
* mine.c: Lay mines from ships or units
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* miss.c: set missions for ships/planes/units
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Thomas Ruschak, 1992
|
||||
* Steve McClure, 2000
|
||||
|
@ -77,7 +77,7 @@ mission(void)
|
|||
buf)) == 0)
|
||||
return RET_SYN;
|
||||
|
||||
/*
|
||||
/*
|
||||
* 'i' interdiction
|
||||
* 's' support
|
||||
* 'o' support attacks
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* mobq.c: Set the sailing mobility quota for a ship
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Robert Forsman
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* mora.c: Edit morale of a land unit
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Jeff Bailey
|
||||
*/
|
||||
|
|
|
@ -26,9 +26,9 @@
|
|||
* ---
|
||||
*
|
||||
* move.c: Move commodities around
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* name.c: Name a ship
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Jeff Bailey
|
||||
*/
|
||||
|
|
|
@ -26,9 +26,9 @@
|
|||
* ---
|
||||
*
|
||||
* nati.c: List nation information
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* navi.c: Navigate ships and such
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Ken Stevens, 1995 (rewritten)
|
||||
* Ron Koenderink, 2006-2007
|
||||
|
@ -130,7 +130,7 @@ do_unit_move(struct emp_qelem *ulist, int *together,
|
|||
else
|
||||
skip = 0;
|
||||
sprintf(prompt, "<%.1f:%.1f: %s> ", *maxmob,
|
||||
*minmob, xyas(leader->x, leader->y, player->cnum));
|
||||
*minmob, xyas(leader->x, leader->y, player->cnum));
|
||||
cp = getstring(prompt, buf);
|
||||
/* Just in case any of our units were shelled while we were
|
||||
* at the prompt, we call shp_nav() or lnd_mar() again.
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* ndump.c: Dump nuke information
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* John Yockey, 1997
|
||||
* Steve McClure, 1998
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* new.c: Create a new capital for a player
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1986
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* ---
|
||||
*
|
||||
* newe.c: Show new sector efficiency (projected)
|
||||
*
|
||||
*
|
||||
* Known contributors to this file:
|
||||
* Thomas Ruschak, 1993
|
||||
*/
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue