angel2d/angel2d — pull request #19 by Alicemargatroid (2014-03-21 20:20:34+00:00)
Title: Visual Studio Warning Suppression

Angel on windows is hampered by the sheer amount of warnings Angel will readily emit, even on level 3.
This patch reduces this to 7 C++ warnings and 5 linker warnings on warning level 3.
With 4100, 4127, and 4505 suppressed, Angel, IntroGame, and ClientGame can be set to warning level 4.

SWIG was responsible for most of the warnings; Lua uses double, where as Vector* uses float.
Additionally, const TYPE& typemaps were invoking undefined behavior by using a reference to a local variable.

The removal of all doubles was also done, to prevent confusion, since Angel uses float's exclusively.

Finally, a number of function parameters that accepted or returned signed values when such values were not in the domain of the function were changed to unsigned, or reduced to the lowest type which encompassed all possible values (char instead of int, for example).

Only one breaking change: GetTextureSize returns Vec2ui instead of Vec2i, as {0,0} is used to indicate failure.