if(wheat_gradient > 240)
use old algo
else
if(255-teleporter_gradient+255-teleporters_wheat_level+teleporters_delay<255-wheat_gradient)
walk the teleporters gradient
255-teleporter_gradient = distance to teleporter
255-teleporters_wheat_level = distance of the TPs to the nearest wheat
teleporters_delay = time spent in the tp-system
255-wheat_gradient = direct walking distance
_______________________________________________
glob2-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/glob2-devel