code in adjust_tooling_crossover?
Jim Kingdon
kingdon@panix.com
Fri Jul 12 17:04:00 GMT 2002
> As for the "vanishes on" fix I was working on, when I work on
> plan_colonize, I can't seem to access anything within unit2 without
> causing a segfault. I tried adding the following line of code after it
> decides if the cell is "good":
>
> if (!ut_vanishes_on(unit2->type, terrain_at(x, y))) {
Uh, I think you are looking for plan->maingoal->args[0] rather than
unit2->type.
Cleaning up the variable names in this function would be helpful.
unit2 is only used in one small place (and so I'd move it there).
Likewise for u2 (and unit2 and u2 don't have anything to do with each
other :-().
More information about the Xconq7
mailing list