This commit is contained in:
Charles 2001-08-09 14:23:58 +00:00
parent f491382245
commit 8a5c5f76df
3 changed files with 5 additions and 5 deletions

View File

@ -763,7 +763,7 @@ void CNpcMotherJellyfishEnemy::renderOnMapScreen( DVECTOR drawPos )
m_actorGfx->RotateScale( SprFrame, drawPos, 0, ONE, ONE ); m_actorGfx->RotateScale( SprFrame, drawPos, 0, ONE, ONE );
for ( int i = 0 ; i < 4 ; i++ ) for ( int i = 0 ; i < 4 ; i++ )
{ {
legs[i]->renderOnMapScreen( drawPos ); legs[i]->renderOnMapScreen( drawPos, legsPos[i].vx, legsPos[i].vy );
} }
} }

View File

@ -122,7 +122,7 @@ int XInc=LegXInc;
/*****************************************************************************/ /*****************************************************************************/
/*** Render on map ***********************************************************/ /*** Render on map ***********************************************************/
/*****************************************************************************/ /*****************************************************************************/
void CFXJellyFishLegs::renderOnMapScreen( DVECTOR drawPos ) void CFXJellyFishLegs::renderOnMapScreen( DVECTOR drawPos, int XOfs, int YOfs )
{ {
SpriteBank *SprBank=CGameScene::getSpriteBank();; SpriteBank *SprBank=CGameScene::getSpriteBank();;
DVECTOR RenderPos=drawPos; DVECTOR RenderPos=drawPos;
@ -134,8 +134,8 @@ int ScaleWInc=(ONE*LegWInc)>>12;
int ScaleHInc=(ONE*LegHInc)>>12; int ScaleHInc=(ONE*LegHInc)>>12;
int XInc=LegXInc; int XInc=LegXInc;
RenderPos.vx+=Ofs.vx; RenderPos.vx+=XOfs;
RenderPos.vy+=Ofs.vy; RenderPos.vy+=YOfs;
if (!XFlip) XInc=-XInc; if (!XFlip) XInc=-XInc;
for (int i=0; i<LegCount; i++) for (int i=0; i<LegCount; i++)

View File

@ -15,7 +15,7 @@ public:
/*virtual */void init(DVECTOR const &Pos); /*virtual */void init(DVECTOR const &Pos);
/*virtual */void think(int _frames); /*virtual */void think(int _frames);
/*virtual */void render(); /*virtual */void render();
void renderOnMapScreen( DVECTOR drawPos ); void renderOnMapScreen( DVECTOR drawPos, int XOfs, int YOfs );
void Setup(int XOfs,int YOfs,bool XFlip); void Setup(int XOfs,int YOfs,bool XFlip);
void setScale( s16 newScale ) {Scale = newScale;} void setScale( s16 newScale ) {Scale = newScale;}