Remove superflous casts and parenthesis.

This commit is contained in:
Markus Armbruster 2006-05-21 12:24:30 +00:00
parent f883710417
commit cd73a47dfa
28 changed files with 136 additions and 145 deletions

View file

@ -63,7 +63,7 @@ move_ground(struct sctstr *start, struct sctstr *end,
double sect_mcost;
double total_mcost;
double mv_cost;
double mobility = (double)start->sct_mobil;
double mobility = start->sct_mobil;
int dir;
int intcost;
int takedam = *dam;
@ -230,7 +230,7 @@ move_ground(struct sctstr *start, struct sctstr *end,
if (takedam && chance(weight / 100.0) &&
((curx != oldx) || (cury != oldy)))
*dam += ground_interdict(curx, cury, player->cnum,
"commodities");
"commodities");
if (*dam >= 100)
break;
}