Coding style, comments, spelling...
This commit is contained in:
parent
109dad1bee
commit
f3e85c2f70
9 changed files with 6 additions and 20 deletions
|
@ -4,7 +4,7 @@ Why backups
|
||||||
Running a game without regular backups is irresponsible. A bug, a
|
Running a game without regular backups is irresponsible. A bug, a
|
||||||
system crash or a deity error can destroy the game, leaving you no way
|
system crash or a deity error can destroy the game, leaving you no way
|
||||||
to recover except restoring from backup. If you foolishly neglected
|
to recover except restoring from backup. If you foolishly neglected
|
||||||
to make regular, working backups, players, who likely invested
|
to make regular, working backups, then players, who likely invested
|
||||||
substantial time in your game, will have every reason to be very angry
|
substantial time in your game, will have every reason to be very angry
|
||||||
with you.
|
with you.
|
||||||
|
|
||||||
|
|
|
@ -39,8 +39,6 @@
|
||||||
|
|
||||||
#include "item.h"
|
#include "item.h"
|
||||||
|
|
||||||
/* The order of the following elements is there to match up with genitem */
|
|
||||||
|
|
||||||
struct sctstr {
|
struct sctstr {
|
||||||
/* initial part must match struct genitem */
|
/* initial part must match struct genitem */
|
||||||
short ef_type;
|
short ef_type;
|
||||||
|
|
|
@ -289,7 +289,6 @@ pdump(void)
|
||||||
} else
|
} else
|
||||||
pr(" N/A");
|
pr(" N/A");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 21:
|
case 21:
|
||||||
pr(" %c", plane.pln_flags & PLN_AIRBURST ? 'A' : 'G');
|
pr(" %c", plane.pln_flags & PLN_AIRBURST ? 'A' : 'G');
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -154,13 +154,6 @@ trad(void)
|
||||||
}
|
}
|
||||||
switch (trade.trd_type) {
|
switch (trade.trd_type) {
|
||||||
case EF_NUKE:
|
case EF_NUKE:
|
||||||
/*
|
|
||||||
if (!getsect(tg.gen.trg_x, tg.gen.trg_y, §)) {
|
|
||||||
return RET_FAIL;
|
|
||||||
}
|
|
||||||
trade.trd_owner = sect.sct_own;
|
|
||||||
break;
|
|
||||||
*/
|
|
||||||
case EF_PLANE:
|
case EF_PLANE:
|
||||||
case EF_SHIP:
|
case EF_SHIP:
|
||||||
case EF_LAND:
|
case EF_LAND:
|
||||||
|
|
|
@ -265,8 +265,7 @@ loc_BlockThisThread(void)
|
||||||
static BOOL
|
static BOOL
|
||||||
loc_Exit_Handler(DWORD fdwCtrlType)
|
loc_Exit_Handler(DWORD fdwCtrlType)
|
||||||
{
|
{
|
||||||
switch (fdwCtrlType)
|
switch (fdwCtrlType) {
|
||||||
{
|
|
||||||
case CTRL_C_EVENT:
|
case CTRL_C_EVENT:
|
||||||
case CTRL_CLOSE_EVENT:
|
case CTRL_CLOSE_EVENT:
|
||||||
case CTRL_BREAK_EVENT:
|
case CTRL_BREAK_EVENT:
|
||||||
|
|
|
@ -139,8 +139,7 @@ static SERVICE_STATUS_HANDLE service_status_handle;
|
||||||
static void WINAPI
|
static void WINAPI
|
||||||
service_ctrl_handler(DWORD Opcode)
|
service_ctrl_handler(DWORD Opcode)
|
||||||
{
|
{
|
||||||
switch(Opcode)
|
switch(Opcode) {
|
||||||
{
|
|
||||||
case SERVICE_CONTROL_PAUSE:
|
case SERVICE_CONTROL_PAUSE:
|
||||||
service_status.dwCurrentState = SERVICE_PAUSED;
|
service_status.dwCurrentState = SERVICE_PAUSED;
|
||||||
logerror("Pausing the service not supported");
|
logerror("Pausing the service not supported");
|
||||||
|
|
|
@ -112,9 +112,7 @@ float plane_grow_scale = 2.0; /* how fast eff grows for planes (xETUS) */
|
||||||
double fgrate = 0.0012; /* food growth rate (dt * fert) */
|
double fgrate = 0.0012; /* food growth rate (dt * fert) */
|
||||||
double fcrate = 0.0013; /* food cultivate rate (dt * workforce) */
|
double fcrate = 0.0013; /* food cultivate rate (dt * workforce) */
|
||||||
double eatrate = 0.0005; /* food eating rate (dt * people) */
|
double eatrate = 0.0005; /* food eating rate (dt * people) */
|
||||||
/*double eatrate = 0.0001;*//* food eating rate (dt * people) */
|
|
||||||
double babyeat = 0.0060; /* food to mature 1 baby into a civilian */
|
double babyeat = 0.0060; /* food to mature 1 baby into a civilian */
|
||||||
/*double babyeat = 0.0000;*//* food to mature 1 baby into a civilian */
|
|
||||||
|
|
||||||
double obrate = 0.005; /* other sectors birth rate */
|
double obrate = 0.005; /* other sectors birth rate */
|
||||||
double uwbrate = 0.0025; /* uncompensated worker birth rate */
|
double uwbrate = 0.0025; /* uncompensated worker birth rate */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue