else if(c > r) { return -1; }
else { return 1; }
}
-
+
return 0;
}
// step 3: sort queue
heapsort(TUR_CONFIG_COUNT, T_Config_Queue_Swap, T_Config_Queue_Compare, world);
-
+
// step 4: write queue
TUR_CONFIG_WRITETOFILE(sprintf("// {{{ #%d: %s\n", i, TUR_NAME(i)))
for(x = 0; x <= TUR_CONFIG_COUNT; ++x)
TUR_CONFIG_WRITETOFILE("// }}}\n")
// step 5: debug info
- print(sprintf("#%d: %s: %d settings...\n", i, TUR_NAME(i), TUR_CONFIG_COUNT));
+ LOG_INFO(sprintf("#%d: %s: %d settings...\n", i, TUR_NAME(i), TUR_CONFIG_COUNT));
totalsettings += TUR_CONFIG_COUNT;
}
{ tur_config_queue[x] = string_null; }
// extra information
- print(sprintf("Totals: %d turrets, %d settings\n", (i - 1), totalsettings));
+ LOG_INFO(sprintf("Totals: %d turrets, %d settings\n", (i - 1), totalsettings));
}