Remove a bunch of redundant casts.
This commit is contained in:
parent
ee6d72f3b8
commit
4f59fc9967
125 changed files with 417 additions and 432 deletions
|
@ -94,7 +94,7 @@ rada(void)
|
|||
pr("Specify at least one ship\n");
|
||||
return RET_SYN;
|
||||
}
|
||||
while (nxtitem(&ni, (s_char *)&ship)) {
|
||||
while (nxtitem(&ni, &ship)) {
|
||||
if (!player->owner)
|
||||
continue;
|
||||
if (mchr[(int)ship.shp_type].m_flags & M_SONAR)
|
||||
|
@ -117,7 +117,7 @@ rada(void)
|
|||
pr("Specify at least one unit\n");
|
||||
return RET_SYN;
|
||||
}
|
||||
while (nxtitem(&ni, (s_char *)&land)) {
|
||||
while (nxtitem(&ni, &land)) {
|
||||
if (!player->owner)
|
||||
continue;
|
||||
if (!(lchr[(int)land.lnd_type].l_flags & L_RADAR)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue