Use NULL instead of (FOO *)0, it's easier to read.
This commit is contained in:
parent
3252f8a907
commit
21bf6b41d4
23 changed files with 75 additions and 79 deletions
|
@ -199,8 +199,7 @@ s_commod(int own, int x, int y, i_type type, int total_wanted,
|
|||
continue;
|
||||
if (sect.sct_effic < 60)
|
||||
continue;
|
||||
if (BestLandPath(buf, &dest, §, &move_cost, MOB_ROAD) ==
|
||||
(s_char *)0)
|
||||
if (!BestLandPath(buf, &dest, §, &move_cost, MOB_ROAD))
|
||||
continue;
|
||||
if (!opt_NOFOOD && type == I_FOOD) {
|
||||
minimum = 2 + ((etu_per_update * eatrate)
|
||||
|
@ -275,8 +274,7 @@ s_commod(int own, int x, int y, i_type type, int total_wanted,
|
|||
continue;
|
||||
if (sect.sct_effic < 2)
|
||||
continue;
|
||||
if (BestLandPath(buf, &dest, §, &move_cost, MOB_ROAD) ==
|
||||
(s_char *)0)
|
||||
if (!BestLandPath(buf, &dest, §, &move_cost, MOB_ROAD))
|
||||
continue;
|
||||
if (!opt_NOFOOD && type == I_FOOD)
|
||||
minimum = 2 + ((etu_per_update * eatrate)
|
||||
|
@ -351,8 +349,7 @@ s_commod(int own, int x, int y, i_type type, int total_wanted,
|
|||
continue;
|
||||
|
||||
getsect(land.lnd_x, land.lnd_y, §);
|
||||
if (BestLandPath(buf, &dest, §, &move_cost, MOB_ROAD) ==
|
||||
(s_char *)0)
|
||||
if (!BestLandPath(buf, &dest, §, &move_cost, MOB_ROAD))
|
||||
continue;
|
||||
|
||||
if ((land.lnd_ship >= 0) && (sect.sct_type != SCT_HARBR))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue