chiark / gitweb /
routesearch: todo list items
[ypp-sc-tools.main.git] / yarrg / rsmain.c
index f99f866d2ee0e39316403e2cd682bc5e7ef98c3a..345c8825d2443ba576fa7625a7a46449620d5d0c 100644 (file)
@@ -7,7 +7,7 @@
 int o_quiet= 0;
 double max_mass=-1, max_volu=-1, max_capi=-1;
 double distance_loss_factor_per_league;
-int max_dist= -1;
+int max_dist=-1, min_trade_maxprofit=0;
 
 FILE *debug_file;
 FILE *output;
@@ -49,8 +49,8 @@ int main(int argc, const char **argv) {
       debug_flags= 0;
     } else if (!strcmp(arg,"-D1")) {
       debug_flags= ~(dbg_sql2|dbg_lp|dbg_value2);
-    } else {
 #endif
+    } else {
       abort();
     }
   }
@@ -90,6 +90,8 @@ int main(int argc, const char **argv) {
   double loss_per_league= atof(*argv++);
   distance_loss_factor_per_league= 1.0 - loss_per_league;
 
+  min_trade_maxprofit= atoi(*argv++);
+
   setup_sql(database);
   setup_value();
   setup_search();