- converted scale variables in AActor, FMapThing and skin to float.
This commit is contained in:
parent
5875e91f39
commit
ada5097e34
33 changed files with 112 additions and 123 deletions
|
|
@ -591,8 +591,7 @@ void DIntermissionScreenCast::Drawer ()
|
|||
// draw the current frame in the middle of the screen
|
||||
if (caststate != NULL)
|
||||
{
|
||||
double castscalex = FIXED2DBL(mDefaults->scaleX);
|
||||
double castscaley = FIXED2DBL(mDefaults->scaleY);
|
||||
DVector2 castscale = mDefaults->Scale;
|
||||
|
||||
int castsprite = caststate->sprite;
|
||||
|
||||
|
|
@ -612,8 +611,7 @@ void DIntermissionScreenCast::Drawer ()
|
|||
|
||||
if (!(mDefaults->flags4 & MF4_NOSKIN))
|
||||
{
|
||||
castscaley = FIXED2DBL(skin->ScaleY);
|
||||
castscalex = FIXED2DBL(skin->ScaleX);
|
||||
castscale = skin->Scale;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -626,8 +624,8 @@ void DIntermissionScreenCast::Drawer ()
|
|||
screen->DrawTexture (pic, 160, 170,
|
||||
DTA_320x200, true,
|
||||
DTA_FlipX, sprframe->Flip & 1,
|
||||
DTA_DestHeightF, pic->GetScaledHeightDouble() * castscaley,
|
||||
DTA_DestWidthF, pic->GetScaledWidthDouble() * castscalex,
|
||||
DTA_DestHeightF, pic->GetScaledHeightDouble() * castscale.Y,
|
||||
DTA_DestWidthF, pic->GetScaledWidthDouble() * castscale.X,
|
||||
DTA_RenderStyle, mDefaults->RenderStyle,
|
||||
DTA_Alpha, mDefaults->alpha,
|
||||
DTA_Translation, casttranslation,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue