***************************************************************************** cleanway.c - A utility to clean up and sort waypoint code snippets taken from QCONSOLE.LOG (or BOTWAY.QC) for use in CTFBOT's (currently version 1.3b) BOTWAY.QC. Author - Jack Perdue (aka Silicon Slick) - si_slick@cy-net.net Date - July 12th, 1997 Compiler - Borland TurboC 2.0 for MS-DOS Credits - Drew "BZ" Davidson for CTFBOT http://www.interpath.com/~davidson/ctfbot.htm Copyright(C) 1997 - Silicon Slick's Software, Supplies and Support Services http://www2.cy-net.net/~si_slick si_slick@cy-net.net You are welcome to copy and modify this code at will as long as you include this copyright statement in all derivative works. ***************************************************************************** Use: CLEANWAY [] should be a file containing a waypoint code snippet for a single level. This can be either from QCONSOLE.LOG or can be the waypoints for a particular level snipped from BOTWAY.QC. MAKE SURE .ext IS NOT ".OUT"!!! The waypoints will be cleaned (ie. removing of leading spaces inside of single quotes) and sorted (by team/waypoint number) and then written to infile.OUT (<<<- THAT'S WHY). The optional will renumber the waypoints using the increment specified. This will not change the order of the waypoints, it just provides a way to space them out in case you'd like to add some intermediate points. Enjoy. jack (aka Silicon Slick) si_slick@cy-net.net Clan 13th Man - http://http.tamu.edu/~jkp2866/Clan13thMan/ *****************************************************************************