[btech-checkins] CVS: btechmux/tree mux_tree.c,1.2,1.3
Brought to you by:
twouters
From: Thomas W. <two...@us...> - 2004-08-09 00:31:28
|
Update of /cvsroot/btech/btechmux/tree In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19526/tree Modified Files: mux_tree.c Log Message: Annual (ahem) sync with the BitKeeper btechmux tree (at btechmux.bkbits.net/btechmux). I should sync more often but I've been short on time. If you want to keep in touch with the changes, consider using BK directly. This sync contains these BK changesets (many merged from the stable tree in BitKeeper): # -------------------------------------------- # 03/09/30 th...@st... 1.13.1.12 # Reformat a bit (purely a whitspace change.) # -------------------------------------------- # 03/09/30 th...@st... 1.13.1.13 # Skip sections that have no internals, when calculating weight of a unit. The MUX treats these sections as 'nonexistant' in all other places, too, but it's still possible (albeit difficult) to get something into those sections, eating up phantom weight. # # -------------------------------------------- # 03/09/30 th...@st... 1.24 # Merge # -------------------------------------------- # 03/10/01 th...@st... 1.13.1.14 # Safeguard against a 'shouldn't-happen' scenario that seems to have happened several times now on 3030MUX. (but was probably just generic memory corruption.) # -------------------------------------------- # 03/10/01 th...@st... 1.25 # Merge stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux-stable # into stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux # -------------------------------------------- # 03/10/01 th...@st... 1.26 # Remove duplicate maps that screw up case-insensitive systems. # -------------------------------------------- # 03/10/01 th...@st... 1.13.1.15 # Remove duplicate maps that screw up case-insensitive systems. # -------------------------------------------- # 03/10/01 th...@st... 1.13.1.16 # Also actally delete these dupes. # -------------------------------------------- # 03/10/01 th...@st... 1.27 # Merge stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux-stable # into stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux # -------------------------------------------- # 03/10/01 th...@st... 1.13.3.1 # Rather than safeguard against something, do the proper fix :) wcAmmoItems was incremented twice, in some circumstances. That's not very healthy. Remove the safeguard, it serves no purpose other than protect against hardware errors or memory corruption, both of which would cause other problems anyhow. # -------------------------------------------- # 03/10/01 th...@st... 1.13.1.17 # Merge stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux-stable # into stalker.xs4all.nl:/home/thomas/btsrc/btechmux-stable # -------------------------------------------- # 03/10/01 th...@st... 1.28 # Merge stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux-stable # into stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux # -------------------------------------------- # 03/10/01 th...@ce... 1.13.1.18 # Ice glitchfixes: break through it while standing, and don't survive as tank breaking ice. # -------------------------------------------- # 03/10/01 th...@ce... 1.13.1.19 # More ice glitch fixes: properly break ice when picking a unit (but not a MechWarrior) up through it. # -------------------------------------------- # 03/10/01 th...@st... 1.29 # Manual merge. # -------------------------------------------- # 03/10/01 th...@ce... 1.13.1.20 # Wups... don't sink hovertows. # -------------------------------------------- # 03/10/01 th...@st... 1.30 # Merge stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux-stable # into stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux # -------------------------------------------- # 03/10/05 th...@st... 1.13.1.21 # Make MUX function 'btgetdbrefbyid' accept a map as well as a 'mech as its first argument. # -------------------------------------------- # 03/10/12 th...@st... 1.13.1.22 # - Fix bug in MechPrefs (MUX +bug #1152) and make sure it doesn't happen again. # - Add MechPrefs to xcodevalues. # # -------------------------------------------- # 03/10/12 th...@st... 1.31 # Merge stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux-stable # into stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux # -------------------------------------------- # 03/10/12 th...@st... 1.13.1.23 # - Consider OOD-ing 'mechs as Jumping 'mechs where appropriate. # -------------------------------------------- # 03/10/14 th...@st... 1.13.1.24 # Add new 'c' option to LRS, for colorized terrain. # -------------------------------------------- # 03/10/14 th...@st... 1.32 # Manual merge. # -------------------------------------------- # 03/10/14 th...@st... 1.13.1.25 # Don't cliff hovers that go from l0 bridge to l1 bridge. # -------------------------------------------- # 03/10/14 th...@st... 1.13.1.26 # Don't drown vehicles that manage to break l0 ice. # -------------------------------------------- # 03/10/14 th...@st... 1.33 # Merge stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux-stable # into stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux # -------------------------------------------- # 03/10/15 th...@st... 1.13.1.27 # Add tactical/lrs-like argument handling to navigate. You can now say 'navigate 120 1' to see the hex bearing 120 of you as if you were in it, or 'navigate qq' to see the navigate for 'Mech 'qq'. Max range is the same as for 'tactical'. # -------------------------------------------- # 03/10/18 th...@st... 1.13.1.28 # - Add 'tactical b', for displaying valid DropShip landing zones # - Add the ability to run 'checklz x y' for hexes in TacRange. # -------------------------------------------- # 03/10/18 th...@st... 1.34 # Merge 'tactical b' changes. # -------------------------------------------- # 03/10/18 th...@st... 1.35 # Typo fix. # -------------------------------------------- # 03/10/19 th...@st... 1.13.1.29 # - Add new 'btmechfreqs' function, returning the radio freqs on a 'Mech. It returns a comma separated list of entries, each of which is: # # <freqnum> | <frequency> | <freqflags> | <colorcode> # # Where freqnum starts at 1, frequency is the actual frequency set, colormode is the color setting for that channel (captial letters meaning bold), and freqflags is a bitvector-string with the following meaning: # # - 'a': Freq is digital # - 'b': Freq is muted # - 'c': Freq is set Relay # - 'd': Freq is set Info # - 'e': Freq is set Scan # # Comtitles are not returned because of escaping issues. # -------------------------------------------- # 03/10/19 th...@st... 1.36 # Merge stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux-stable # into stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux # -------------------------------------------- # 03/10/19 th...@st... 1.13.1.30 # Make second argument to 'btstores' optional. When not passed, 'btstores' will return partname:amount pairs, separated by |'s, for all parts in the inventory of the object. # -------------------------------------------- # 03/10/19 th...@st... 1.37 # Merge stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux-stable # into stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux # -------------------------------------------- # 03/10/19 th...@st... 1.13.1.31 # Patch from Tony to make tel() and @tel 'teleport' exits the same way the 'drop' command does. # -------------------------------------------- # 03/10/19 th...@st... 1.38 # Merge stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux-stable # into stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux # -------------------------------------------- # 03/10/21 th...@st... 1.13.1.32 # Fix eternal loop when calling btdamagemech() with a 'clustersize' of 0. # -------------------------------------------- # 03/10/31 th...@st... 1.13.1.33 # Glitchfix. # -------------------------------------------- # 03/10/31 th...@st... 1.13.1.34 # Possibly fix memory corruption problems 3030 has been having, by fixing around tprintf (as suggested by Null @ 3029.) # -------------------------------------------- # 03/11/14 th...@ce... 1.13.4.1 # Fix buglet in btlostohex(): use proper range. # -------------------------------------------- # 03/11/15 th...@st... 1.13.1.35 # Fix possibly malicious crashing bug in macros. # -------------------------------------------- # 03/11/15 th...@st... 1.39 # Merge stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux-stable # into stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux # -------------------------------------------- # 03/11/15 th...@ce... 1.13.1.36 # Merge http://btechmux.bkbits.net/btechmux-stable # into centurion.xs4all.nl:/home/thomas/btsrc/btechmux-stable # -------------------------------------------- # 03/11/15 th...@st... 1.40 # Merge stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux-stable # into stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux # -------------------------------------------- # 03/11/20 th...@st... 1.13.1.37 # Misc cleanup fixes. Stuff that probably didn't cause any real-world bugs, but should be fixed anyway. # -------------------------------------------- # 03/11/23 th...@st... 1.13.1.38 # - Facilitate debugging by not closing stdin/stdout. Old behaviour can be had by defining CLOSE_STDIN somewhere, but I have no use for it yet. # - Zap rediculous 'filedecriptor caching' that just re-used fd0 for everything, brutally closing it if needed. I'm suprised this hasn't caused odd bugs where data went to the wrong file. Totally unnecessary. # - Various memory buglets found by Valgrind. Some things were obviously wrong but never went wrong thanks to the reliability of stack layout in GCC. Others were potentially wrong but probably never did any harm -- but I could be wrong. # # -------------------------------------------- # 04/02/02 th...@st... 1.41 # Merge stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux-stable # into stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux # -------------------------------------------- # 04/02/09 th...@st... 1.13.1.39 # Fix off-by-one error in reading maps with an X size of MAPX (1000 by default.) # -------------------------------------------- # 04/02/10 th...@st... 1.13.1.40 # Open help/news files for reading, not writing. Oopsie from last changeset. # -------------------------------------------- # 04/02/12 th...@st... 1.42 # Merge conflicts. # -------------------------------------------- # 04/02/12 th...@st... 1.13.1.41 # remove unused file. # -------------------------------------------- # 04/02/12 th...@st... 1.43 # Merge stalker.xs4all.nl:/home/thomas/btsrc/bt-stable-test # into stalker.xs4all.nl:/home/thomas/btsrc/bt-dev-test # -------------------------------------------- # 04/02/13 th...@st... 1.44 # Undo previous change that deletes map.build.functions.c. # -------------------------------------------- # 04/03/05 th...@ce... 1.13.5.1 # foobar changeset # -------------------------------------------- # 04/03/05 th...@ce... 1.13.5.2 # foobar2 # -------------------------------------------- # 04/05/08 th...@st... 1.13.1.42 # Properly display valid/invalid LZ's in 'tactical b' even when not using colours. Previously, the characters \240 and \241 (inverted exclamation mark and non-break space, respectively, in ISO 8859-1 and -15) were displayed. # # -------------------------------------------- # 04/05/08 th...@st... 1.13.1.43 # Protect some xcodevalues from being changed, to avoid memory corruption and the like. # -------------------------------------------- # 04/05/09 th...@st... 1.45 # Merge stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux-stable # into stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux # -------------------------------------------- # 04/05/09 th...@st... 1.46 # SF patch #920275: Fixes a bug in mech.combat.c:FireWeapon(), from Martin Murray. # Fixes a crashing bug when firing on hexes. # -------------------------------------------- # 04/05/09 th...@st... 1.13.1.44 # Fix some buglets in previous fixes: don't close fd's that weren't opened, and when using memmove instead of strcpy, include the terminating NUL manually. # -------------------------------------------- # 04/05/09 th...@st... 1.47 # Merge stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux-stable # into stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux # -------------------------------------------- # 04/05/09 th...@st... 1.13.1.45 # Fix typo in previous checkin, and compile before checking in. # -------------------------------------------- # 04/05/09 th...@st... 1.48 # Merge stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux-stable # into stalker.xs4all.nl:/home/thomas/btsrc/bitkeeper/btechmux # -------------------------------------------- # 04/05/11 th...@ce... 1.13.1.46 # Merge http://btechmux.bkbits.net/btechmux-stable # into centurion.xs4all.nl:/home/thomas/btsrc/btechmux-stable # -------------------------------------------- # 04/05/11 th...@ce... 1.13.1.47 # Fix compiler warnings: # - Add a few missing include files # - Remove unused variables # -------------------------------------------- # 04/05/11 th...@ce... 1.13.1.48 # Fix small loophole where you could tell an out-of-LOS unit's approximate location by triangulating 'out of arc' messages. Always give the same 'out of los' message for mechID's that are not in LOS, even if the mechID's don't exist or if they are out of range or out of arc. # -------------------------------------------- # 04/05/11 th...@st... 1.13.1.49 # Fix off-by-one error in the kick-decision range check in autopilots. # -------------------------------------------- # 04/07/29 th...@st... 1.13.1.50 # Attempt to improve the dieroll's randomness somewhat. # -------------------------------------------- # 04/08/09 th...@st... 1.49 # manual merge of stable branch with devel branch. # # -------------------------------------------- # Index: mux_tree.c =================================================================== RCS file: /cvsroot/btech/btechmux/tree/mux_tree.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** mux_tree.c 2 Feb 2002 11:53:32 -0000 1.2 --- mux_tree.c 9 Aug 2004 00:31:18 -0000 1.3 *************** *** 30,33 **** --- 30,35 ---- #include <malloc.h> #include <stdio.h> + #include <stdlib.h> + #include <string.h> #include "tree.h" |