------------------------------------------------------------------------ r2136 | helixhorned | 2011-11-26 14:39:50 -0800 (Sat, 26 Nov 2011) | 15 lines In backing up highlighted sectors code: also back up TROR information so that bunches and nextwall links are restores, too. Now, to coalesce two TROR maps (e.g. for a CBP), one could do for i allsectors, sethighlightsector i 1 on the console, and then load the 'other' map to copy over the contents of the first, including all TROR stuff. Note that neither selecting all sectors with RAlt, nor duplicating them with Insert would lead to the desired effect (yet). Internally, - yax_setbunch() now has different behavior for bunchnums -1, -2 and -3 (it either clears the nextwalls or not) - build.c has a helper function free_n_ptrs(). This could be handy in other situations where many blocks of memory must be allocated consecutively and freed in case of failure ------------------------------------------------------------------------ r2135 | helixhorned | 2011-11-26 06:12:59 -0800 (Sat, 26 Nov 2011) | 3 lines When restoring temporarily backed up map, clear all TROR bunches. This is suboptimal, but at least 'correct' and won't produce the aforementioned corruptions anymore. ------------------------------------------------------------------------