Remove silly superflous parenthesis.
This commit is contained in:
parent
beae3ea770
commit
0d0a305bf3
14 changed files with 31 additions and 31 deletions
|
@ -464,13 +464,13 @@ getin(s_char **what, s_char **p, int *arg, s_char *buf)
|
|||
if (**what == '\0')
|
||||
return END;
|
||||
while (**what && isspace(**what))
|
||||
(*what)++;
|
||||
*what++;
|
||||
if (**what == '\0')
|
||||
return RET_SYN;
|
||||
for (*p = *what; **p && !isspace(**p); (*p)++) /* skip non spaces */
|
||||
for (*p = *what; **p && !isspace(**p); *p++) /* skip non spaces */
|
||||
continue;
|
||||
while (**p && isspace(**p))
|
||||
(*p)++;
|
||||
*p++;
|
||||
if (**p == '\0')
|
||||
return RET_SYN;
|
||||
*arg = atoi(*p);
|
||||
|
|
|
@ -804,7 +804,7 @@ load_comm_ship(struct sctstr *sectp, struct shpstr *sp,
|
|||
wu(0, sectp->sct_own, buf);
|
||||
}
|
||||
}
|
||||
++(*nshipsp);
|
||||
++*nshipsp;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1011,7 +1011,7 @@ load_comm_land(struct sctstr *sectp, struct lndstr *lp,
|
|||
wu(0, sectp->sct_own, buf);
|
||||
}
|
||||
}
|
||||
++(*nunitsp);
|
||||
++*nunitsp;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -812,7 +812,7 @@ quiet_bigdef(int attacker, struct emp_qelem *list, natid own, natid aown,
|
|||
if (!line_of_sight(NULL, ship.shp_x, ship.shp_y, ax, ay))
|
||||
continue;
|
||||
|
||||
(*nfiring)++;
|
||||
*nfiring++;
|
||||
fp = malloc(sizeof(struct flist));
|
||||
memset(fp, 0, sizeof(struct flist));
|
||||
fp->type = targ_ship;
|
||||
|
@ -843,7 +843,7 @@ quiet_bigdef(int attacker, struct emp_qelem *list, natid own, natid aown,
|
|||
nshot = MIN(nshot, ship.shp_glim);
|
||||
if (nshot == 0)
|
||||
continue;
|
||||
(*nfiring)++;
|
||||
*nfiring++;
|
||||
fp = malloc(sizeof(struct flist));
|
||||
memset(fp, 0, sizeof(struct flist));
|
||||
fp->type = targ_ship;
|
||||
|
@ -896,7 +896,7 @@ quiet_bigdef(int attacker, struct emp_qelem *list, natid own, natid aown,
|
|||
dam2 = (int)landunitgun(land.lnd_effic, land.lnd_dam, gun,
|
||||
land.lnd_ammo, shell);
|
||||
|
||||
(*nfiring)++;
|
||||
*nfiring++;
|
||||
fp = malloc(sizeof(struct flist));
|
||||
memset(fp, 0, sizeof(struct flist));
|
||||
fp->type = targ_unit;
|
||||
|
@ -949,7 +949,7 @@ quiet_bigdef(int attacker, struct emp_qelem *list, natid own, natid aown,
|
|||
I_SHELL, 1);
|
||||
if (gun == 0 || firing.sct_item[I_MILIT] < 5 || shell == 0)
|
||||
continue;
|
||||
(*nfiring)++;
|
||||
*nfiring++;
|
||||
fp = malloc(sizeof(struct flist));
|
||||
memset(fp, 0, sizeof(struct flist));
|
||||
fp->x = firing.sct_x;
|
||||
|
|
|
@ -340,7 +340,7 @@ eta_calc(struct shpstr *sp, s_char *path, int *len, int *nupdates)
|
|||
i--;
|
||||
} else {
|
||||
mobil += (ship_mob_scale * (float)etu_per_update);
|
||||
(*nupdates)++;
|
||||
*nupdates++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -46,9 +46,9 @@ int
|
|||
show(void)
|
||||
{
|
||||
s_char *p;
|
||||
void (*cfunc) (int);
|
||||
void (*sfunc) (int);
|
||||
void (*bfunc) (int);
|
||||
void (*cfunc)(int);
|
||||
void (*sfunc)(int);
|
||||
void (*bfunc)(int);
|
||||
struct natstr *natp;
|
||||
int tlev;
|
||||
s_char buf[1024];
|
||||
|
@ -126,11 +126,11 @@ show(void)
|
|||
|| !*p)
|
||||
return RET_SYN;
|
||||
if (*p == 'B' || *p == 'b')
|
||||
(*bfunc) (tlev);
|
||||
bfunc(tlev);
|
||||
else if (*p == 'C' || *p == 'c')
|
||||
(*cfunc) (tlev);
|
||||
cfunc(tlev);
|
||||
else if (*p == 'S' || *p == 's')
|
||||
(*sfunc) (tlev);
|
||||
sfunc(tlev);
|
||||
else
|
||||
return RET_SYN;
|
||||
return RET_OK;
|
||||
|
|
|
@ -227,7 +227,7 @@ spyline(struct sctstr *sp)
|
|||
prxy("%4d,%-4d", sp->sct_x, sp->sct_y, player->cnum);
|
||||
pr(" %c%c %3d %3d %3d %3d %3d %3d %4d %4d %4d %3d %4d %4d %4d %3d %3d\n",
|
||||
dchr[sp->sct_type].d_mnem,
|
||||
(sp->sct_newtype == sp->sct_type) ? ' ' : dchr[sp->sct_newtype].d_mnem,
|
||||
sp->sct_newtype == sp->sct_type ? ' ' : dchr[sp->sct_newtype].d_mnem,
|
||||
sp->sct_own,
|
||||
sp->sct_oldown,
|
||||
roundintby((int)sp->sct_effic, 10),
|
||||
|
@ -253,8 +253,8 @@ static void
|
|||
insert(coord *table, int *len, coord x, coord y)
|
||||
{
|
||||
if (!check(table, len, x, y)) {
|
||||
table[(*len)++] = x;
|
||||
table[(*len)++] = y;
|
||||
table[*len++] = x;
|
||||
table[*len++] = y;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -126,7 +126,7 @@ starv_sects(s_char *range)
|
|||
pr("%3d ", sect.sct_own);
|
||||
prxy("%4d,%-4d", nstr.x, nstr.y, player->cnum);
|
||||
pr(" %c", dchr[sect.sct_type].d_mnem);
|
||||
pr(" %c", (sect.sct_own != sect.sct_oldown ? '*' : ' '));
|
||||
pr(" %c", sect.sct_own != sect.sct_oldown ? '*' : ' ');
|
||||
if (sect.sct_newtype != sect.sct_type)
|
||||
pr("%c", dchr[sect.sct_newtype].d_mnem);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue