Remove a bunch of redundant casts.

This commit is contained in:
Markus Armbruster 2005-06-12 06:31:48 +00:00
parent ee6d72f3b8
commit 4f59fc9967
125 changed files with 417 additions and 432 deletions

View file

@ -262,7 +262,7 @@ s_commod(int own, int x, int y, i_type type, int total_wanted,
/* look for an owned ship in a harbor */
snxtitem_dist(&ni, EF_SHIP, x, y, lookrange);
while (nxtitem(&ni, (s_char *)&ship) && wanted) {
while (nxtitem(&ni, &ship) && wanted) {
if (ship.shp_own != own)
continue;
@ -335,7 +335,7 @@ s_commod(int own, int x, int y, i_type type, int total_wanted,
/* look for an owned supply unit */
snxtitem_dist(&ni, EF_LAND, x, y, lookrange);
while (nxtitem(&ni, (s_char *)&land) && wanted) {
while (nxtitem(&ni, &land) && wanted) {
int min;
if (land.lnd_own != own)