pioneerspacesim/pioneer — pull request #753 by johnbartholomew (2011-10-30 01:05:30+00:00)
Title: Minor cleanup

Several small things. They should all be isolated into reasonable commits, so the easiest way to see what's happened is to look at the commit list.

Overview:

* Update some Lua codedoc entries to have `Availability: alpha 16` instead of `not yet`
* Various extra asserts and reduced duplication in `EquipSet`
* Fix `Space::GetRandomPosition` to distribute points uniformly rather than bunching at the poles.
* Add a helper function `pi_lua_warn()` to print out a warning message including a Lua stack trace.
* Make the `vector3` converting constructors explicit and fix uses accordingly.
* Fix a minor bug in `Space::DoHyperspaceTo` when called by the debug point setup code.
* Add extra argument range checks for a few Lua `Ship` methods.
* Rename Lua `Ship:GetEquipSlotSize` to `GetEquipSlotCapacity` to match documentation and the method of `ShipType`.
* Minor mathematical improvement to `BezierCurve::BinomialCoeff`. **Note:** `BezierCurve` is not actually used anywhere! (it used to be used by some AI path following code; I've left it in because it's a potentially useful utility class that we may want again in the future).