Comments, whitespace.
This commit is contained in:
parent
f70445af2b
commit
0b1f561e97
10 changed files with 3 additions and 17 deletions
|
@ -40,7 +40,6 @@ static struct as_node *as_newnode(struct as_node *backp, struct as_coord c,
|
||||||
* old node to the subsumed list.
|
* old node to the subsumed list.
|
||||||
* If not, ignore this neighbor.
|
* If not, ignore this neighbor.
|
||||||
* If this neighbor isn't in the queue, add it.
|
* If this neighbor isn't in the queue, add it.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
as_winnow(struct as_data *adp, struct as_coord *coords, int ncoords)
|
as_winnow(struct as_data *adp, struct as_coord *coords, int ncoords)
|
||||||
|
|
|
@ -50,7 +50,6 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* format: spy <SECTS>
|
* format: spy <SECTS>
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int check(coord *table, int *len, coord x, coord y);
|
static int check(coord *table, int *len, coord x, coord y);
|
||||||
|
|
|
@ -257,7 +257,6 @@ next_update_time(time_t *now, time_t *tim, time_t *delta)
|
||||||
*delta = (blitz_time * 60) - (*now % (blitz_time * 60));
|
*delta = (blitz_time * 60) - (*now % (blitz_time * 60));
|
||||||
*tim = *now + *delta;
|
*tim = *now + *delta;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case UDP_NOREG:
|
case UDP_NOREG:
|
||||||
default:
|
default:
|
||||||
regular_update_time(now, tim, delta);
|
regular_update_time(now, tim, delta);
|
||||||
|
|
|
@ -42,7 +42,6 @@
|
||||||
* WIN32 has a full pre-emptive threading environment. But Empire can
|
* WIN32 has a full pre-emptive threading environment. But Empire can
|
||||||
* not handle pre-emptive threading. Thus, we will use the threads,
|
* not handle pre-emptive threading. Thus, we will use the threads,
|
||||||
* but limit the preemption using a Mutex semaphore.
|
* but limit the preemption using a Mutex semaphore.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
@ -184,7 +183,6 @@ loc_debug(const char *pszFmt, ...)
|
||||||
|
|
||||||
/************************
|
/************************
|
||||||
* loc_FreeThreadInfo
|
* loc_FreeThreadInfo
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
loc_FreeThreadInfo(empth_t *pThread)
|
loc_FreeThreadInfo(empth_t *pThread)
|
||||||
|
|
|
@ -107,7 +107,7 @@ struct empfile empfile[] = {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Keep in mind that player command arguments are matched against
|
* Keep in mind that player command arguments are matched against
|
||||||
* member name; no whitespace please.
|
* values of member name: no whitespace there, please.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Dynamic game data */
|
/* Dynamic game data */
|
||||||
|
|
|
@ -47,7 +47,6 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Does the player->owner have military control of this sector?
|
* Does the player->owner have military control of this sector?
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
military_control(struct sctstr *sp)
|
military_control(struct sctstr *sp)
|
||||||
|
|
|
@ -282,7 +282,6 @@ num_shipsatxy(coord x, coord y, int wantflags, int nowantflags)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* is p a list of ships/planes/units?
|
* is p a list of ships/planes/units?
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
|
@ -174,7 +174,6 @@ only_subs(struct emp_qelem *list)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Interdict ships & land units
|
* Interdict ships & land units
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
unit_interdict(coord x, coord y, natid victim, char *s, int hardtarget,
|
unit_interdict(coord x, coord y, natid victim, char *s, int hardtarget,
|
||||||
|
@ -1139,7 +1138,6 @@ mission_pln_sel(struct emp_qelem *list, int wantflags, int nowantflags,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Arm only the planes at x,y
|
* Arm only the planes at x,y
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
mission_pln_arm(struct emp_qelem *list, coord x, coord y, int dist,
|
mission_pln_arm(struct emp_qelem *list, coord x, coord y, int dist,
|
||||||
|
|
|
@ -64,7 +64,6 @@ static int s_commod(int, int, int, i_type, int, int);
|
||||||
* unit will then call resupply, taking more time)
|
* unit will then call resupply, taking more time)
|
||||||
*
|
*
|
||||||
* May want to put code to resupply with SAMs here, later --ts
|
* May want to put code to resupply with SAMs here, later --ts
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -142,17 +142,13 @@ main(int argc, char **argv)
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
case 'I':
|
case 'I':
|
||||||
service_name = optarg;
|
service_name = optarg;
|
||||||
/*
|
/* fall through */
|
||||||
* fall out
|
|
||||||
*/
|
|
||||||
case 'i':
|
case 'i':
|
||||||
install_service_set++;
|
install_service_set++;
|
||||||
break;
|
break;
|
||||||
case 'R':
|
case 'R':
|
||||||
service_name = optarg;
|
service_name = optarg;
|
||||||
/*
|
/* fall through */
|
||||||
* fall out
|
|
||||||
*/
|
|
||||||
case 'r':
|
case 'r':
|
||||||
remove_service_set++;
|
remove_service_set++;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue