Coding style, comments, spelling...

This commit is contained in:
Markus Armbruster 2006-05-26 18:46:50 +00:00
parent 109dad1bee
commit f3e85c2f70
9 changed files with 6 additions and 20 deletions

View file

@ -289,7 +289,6 @@ pdump(void)
} else
pr(" N/A");
break;
case 21:
pr(" %c", plane.pln_flags & PLN_AIRBURST ? 'A' : 'G');
break;

View file

@ -154,13 +154,6 @@ trad(void)
}
switch (trade.trd_type) {
case EF_NUKE:
/*
if (!getsect(tg.gen.trg_x, tg.gen.trg_y, &sect)) {
return RET_FAIL;
}
trade.trd_owner = sect.sct_own;
break;
*/
case EF_PLANE:
case EF_SHIP:
case EF_LAND:

View file

@ -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:

View file

@ -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);

View file

@ -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");

View file

@ -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 */

View file

@ -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':