//pathfinding waypoint map[WAYPOINTS]; int map_counter=0; //anzahl der mapeinträge (indizes: -1) void find_possible_ways(int point, char *points, int *num_points) { int i; for(i=point;i= map_counter)) { //fertig } else { arraycopy(wege[aktueller_weg],tmp, len_weg[aktueller_weg]); len_tmp=len_weg[aktueller_weg]; wege[aktueller_weg][len_weg[aktueller_weg]++]=possible_ways[0]; checkwege(wege,len_weg,num_wege, aktueller_weg); for(i=1;i