diff --git a/doc/backups b/doc/backups index 78e93c9a..38439911 100644 --- a/doc/backups +++ b/doc/backups @@ -4,7 +4,7 @@ Why backups 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 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 with you. @@ -28,7 +28,7 @@ Automatic backups ----------------- The server lets you run an arbitrary command right before the update, -with players locked out. You can use this feature to make a back up +with players locked out. You can use this feature to make a backup on each update automatically. The command runs in the data directory. stdin, stdout, stderr are diff --git a/include/sect.h b/include/sect.h index 7c6e338f..a932fda6 100644 --- a/include/sect.h +++ b/include/sect.h @@ -39,8 +39,6 @@ #include "item.h" -/* The order of the following elements is there to match up with genitem */ - struct sctstr { /* initial part must match struct genitem */ short ef_type; diff --git a/src/lib/commands/pdump.c b/src/lib/commands/pdump.c index 626e3a21..ae2058da 100644 --- a/src/lib/commands/pdump.c +++ b/src/lib/commands/pdump.c @@ -289,7 +289,6 @@ pdump(void) } else pr(" N/A"); break; - case 21: pr(" %c", plane.pln_flags & PLN_AIRBURST ? 'A' : 'G'); break; diff --git a/src/lib/commands/trad.c b/src/lib/commands/trad.c index f9933c8d..1dfc4a94 100644 --- a/src/lib/commands/trad.c +++ b/src/lib/commands/trad.c @@ -154,13 +154,6 @@ trad(void) } switch (trade.trd_type) { 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_SHIP: case EF_LAND: diff --git a/src/lib/empthread/ntthread.c b/src/lib/empthread/ntthread.c index 0fb8c4cc..3aabec10 100644 --- a/src/lib/empthread/ntthread.c +++ b/src/lib/empthread/ntthread.c @@ -265,8 +265,7 @@ loc_BlockThisThread(void) static BOOL loc_Exit_Handler(DWORD fdwCtrlType) { - switch (fdwCtrlType) - { + switch (fdwCtrlType) { case CTRL_C_EVENT: case CTRL_CLOSE_EVENT: case CTRL_BREAK_EVENT: diff --git a/src/lib/gen/plur.c b/src/lib/gen/plur.c index 60854e8e..5cc4c0e5 100644 --- a/src/lib/gen/plur.c +++ b/src/lib/gen/plur.c @@ -67,7 +67,7 @@ plurize(char *buf, int size, int n) if (!len || n <= 1) return buf; - switch(buf[len - 1]) { + switch (buf[len - 1]) { case 'y': buf[len - 1] = '\0'; strncat(buf, "ies", size - len); diff --git a/src/lib/gen/service.c b/src/lib/gen/service.c index 11dfd5c0..8737fc5a 100644 --- a/src/lib/gen/service.c +++ b/src/lib/gen/service.c @@ -139,8 +139,7 @@ static SERVICE_STATUS_HANDLE service_status_handle; static void WINAPI service_ctrl_handler(DWORD Opcode) { - switch(Opcode) - { + switch(Opcode) { case SERVICE_CONTROL_PAUSE: service_status.dwCurrentState = SERVICE_PAUSED; logerror("Pausing the service not supported"); diff --git a/src/lib/global/constants.c b/src/lib/global/constants.c index 1d93dda6..4effdd64 100644 --- a/src/lib/global/constants.c +++ b/src/lib/global/constants.c @@ -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 fcrate = 0.0013; /* food cultivate rate (dt * workforce) */ 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.0000;*//* food to mature 1 baby into a civilian */ double obrate = 0.005; /* other sectors birth rate */ double uwbrate = 0.0025; /* uncompensated worker birth rate */ diff --git a/src/lib/subs/getele.c b/src/lib/subs/getele.c index 68da3961..483dc685 100644 --- a/src/lib/subs/getele.c +++ b/src/lib/subs/getele.c @@ -62,7 +62,7 @@ getele(char *recipient, char *buf) sprintf(left, "%4d left: ", (int)(buf + MAXTELSIZE - bp)); if (uprmptrd(left, buffer, sizeof(buffer) - 2) <= 0) return -1; - switch(tilde_escape(buffer)) { + switch (tilde_escape(buffer)) { case 'q': return -1; case 'u':