From d54e0f3e2fa3232128b194479e908df0bc660315 Mon Sep 17 00:00:00 2001 From: Daveo Date: Tue, 14 Aug 2001 17:07:48 +0000 Subject: [PATCH] --- source/gfx/actor.cpp | 4 ++-- source/gfx/actor.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/gfx/actor.cpp b/source/gfx/actor.cpp index 61c1acd57..b4ed7904f 100644 --- a/source/gfx/actor.cpp +++ b/source/gfx/actor.cpp @@ -694,13 +694,13 @@ int HalfW=BBoxW>>1; static const VECTOR ZeroPos={0,0,0}; static const int ScaleXAspect=2050; // Odd hard coded number, sorry -POLY_FT4 *CActorGfx::RotateScale(POLY_FT4 *Ft4,DVECTOR &Pos,int Angle,int XScale,int YScale) +POLY_FT4 *CActorGfx::RotateScale(POLY_FT4 *Ft4,DVECTOR &Pos,int Angle,int XScale,int YScale,bool Force) { MATRIX Mtx; VECTOR Scale; Angle&=4095; - if (Angle==0 && XScale==ONE && YScale==ONE) return(Ft4); + if (Angle==0 && XScale==ONE && YScale==ONE && !Force) return(Ft4); Scale.vx=XScale; Scale.vy=YScale; diff --git a/source/gfx/actor.h b/source/gfx/actor.h index be76de8f7..ecfde21b2 100644 --- a/source/gfx/actor.h +++ b/source/gfx/actor.h @@ -136,7 +136,7 @@ virtual ~CActorGfx(); void setActor(sActorPool *ThisActor); POLY_FT4 *Render(DVECTOR &Pos,int Anim,int Frame,bool FlipX=false,bool FlipY=false); - POLY_FT4 *RotateScale(POLY_FT4 *Ft4,DVECTOR &Pos,int Angle,int XScale,int YScale); + POLY_FT4 *RotateScale(POLY_FT4 *Ft4,DVECTOR &Pos,int Angle,int XScale,int YScale,bool Force=false); void getFrameOffsets(int _anim,int _frame,int *_x,int *_y); int getFrameCount(int Anim) {return(PoolEntry->ActorGfx->AnimList[Anim].FrameCount);}