mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-26 00:40:56 +00:00
Fix the menu animations so that they are what I actually intended. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@4689 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
5bbb4afd76
commit
3d43f1c346
1 changed files with 3 additions and 3 deletions
|
@ -3141,11 +3141,11 @@ static MenuAnimation_t m_animation;
|
||||||
|
|
||||||
int32_t M_Anim_SinRight(void)
|
int32_t M_Anim_SinRight(void)
|
||||||
{
|
{
|
||||||
return sintable[scale(512, totalclock - m_animation.start, m_animation.length) + 512];
|
return sintable[scale(1024, totalclock - m_animation.start, m_animation.length) + 512] + 16384;
|
||||||
}
|
}
|
||||||
int32_t M_Anim_SinLeft(void)
|
int32_t M_Anim_SinLeft(void)
|
||||||
{
|
{
|
||||||
return sintable[scale(512, totalclock - m_animation.start, m_animation.length)];
|
return -sintable[scale(1024, totalclock - m_animation.start, m_animation.length) + 512] + 16384;
|
||||||
}
|
}
|
||||||
|
|
||||||
void M_ChangeMenuAnimate(int32_t cm, MenuAnimationType_t animtype)
|
void M_ChangeMenuAnimate(int32_t cm, MenuAnimationType_t animtype)
|
||||||
|
@ -4943,7 +4943,7 @@ void M_DisplayMenus(void)
|
||||||
vec2_t previousOrigin = { 0, 0 };
|
vec2_t previousOrigin = { 0, 0 };
|
||||||
const int32_t screenwidth = scale(240<<16, xdim, ydim);
|
const int32_t screenwidth = scale(240<<16, xdim, ydim);
|
||||||
|
|
||||||
origin.x = scale(screenwidth, m_animation.func(), 16384);
|
origin.x = scale(screenwidth, m_animation.func(), 32768);
|
||||||
previousOrigin.x = origin.x - screenwidth;
|
previousOrigin.x = origin.x - screenwidth;
|
||||||
|
|
||||||
M_RunMenu(m_animation.a, previousOrigin);
|
M_RunMenu(m_animation.a, previousOrigin);
|
||||||
|
|
Loading…
Reference in a new issue