1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-04 21:34:41 +00:00

Minor debug improvements + misc

- Spend less time starting up when not compiled with AQUARIA_FULL/DEMO
- removed entity_setTouchDamage and bone_setTouchDamage, the used variable was never read
- repositioned debug overlay texts, that they are not in the way on wide resolutions
- show used Lua memory in debug text
- very slow slowmo on Shift+F devkey
- fixed RenderObject::isfhr()/isfvr() to be really recursive
  (they were never used until the animation editor fixes - this rotates
   bones on one or more h.flipped parents in the same direction as
   never h.flipped ones)
- removed some unused stuff
This commit is contained in:
fgenesis 2012-01-31 19:25:13 +01:00
commit f2d112b693
7 changed files with 50 additions and 106 deletions

View file

@ -318,16 +318,19 @@ void Quad::destroy()
bool Quad::isCoordinateInside(Vector coord, int minSize)
{
int hw = fabsf((width)*getRealScale().x)*0.5f;
int hh = fabsf((height)*getRealScale().y)*0.5f;
Vector realscale = getRealScale();
int hw = fabsf((width)*realscale.x)*0.5f;
int hh = fabsf((height)*realscale.y)*0.5f;
if (hw < minSize)
hw = minSize;
if (hh < minSize)
hh = minSize;
if (coord.x >= getRealPosition().x - hw && coord.x <= getRealPosition().x + hw)
Vector pos = getRealPosition();
if (coord.x >= pos.x - hw && coord.x <= pos.x + hw)
{
if (coord.y >= getRealPosition().y - hh && coord.y <= getRealPosition().y + hh)
if (coord.y >= pos.y - hh && coord.y <= pos.y + hh)
{
return true;
}