- Made AActor's xscale and yscale properties full precision fixed point

so now larger scales than 4 can be done.


SVN r381 (trunk)
This commit is contained in:
Christoph Oelckers 2006-11-14 16:54:02 +00:00
commit 1502215009
24 changed files with 71 additions and 63 deletions

View file

@ -51,6 +51,7 @@
#include "decallib.h"
#include "i_system.h"
#include "thingdef.h"
#include "vectors.h"
// MACROS ------------------------------------------------------------------
@ -668,7 +669,7 @@ static void ParseInsideDecoration (FActorInfo *info, AActor *defaults,
else if (SC_Compare ("Scale"))
{
SC_MustGetFloat ();
defaults->xscale = defaults->yscale = clamp (int(sc_Float * 64.f), 1, 256) - 1;
defaults->scaleX = defaults->scaleY = FLOAT2FIXED(sc_Float);
}
else if (SC_Compare ("RenderStyle"))
{