Merged from trunk (a somewhat hairy manual merge this time). Fixed
bug (on this branch only) where inverted axes were broken.
Authored by: mdboom 2007-10-04
Parent: [r3914]
Child: [r3916]