mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-05-04 00:01:39 +00:00
Right align world map info box.
This commit is contained in:
parent
63a622740c
commit
11a717e246
1 changed files with 7 additions and 0 deletions
|
|
@ -290,6 +290,10 @@ PPC_FUNC(sub_8258B558)
|
||||||
ctx.r3.u32 = scene;
|
ctx.r3.u32 = scene;
|
||||||
ctx.f1.f64 = offsetX + g_worldMapOffset * 140.0f;
|
ctx.f1.f64 = offsetX + g_worldMapOffset * 140.0f;
|
||||||
ctx.f2.f64 = offsetY;
|
ctx.f2.f64 = offsetY;
|
||||||
|
|
||||||
|
if (g_worldMapOffset >= 1.0f)
|
||||||
|
ctx.f1.f64 += g_offsetX;
|
||||||
|
|
||||||
sub_830BB3D0(ctx, base);
|
sub_830BB3D0(ctx, base);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -309,6 +313,9 @@ PPC_FUNC(sub_8258B558)
|
||||||
if (textBox != NULL)
|
if (textBox != NULL)
|
||||||
{
|
{
|
||||||
float value = 708.0f + g_worldMapOffset * 140.0f;
|
float value = 708.0f + g_worldMapOffset * 140.0f;
|
||||||
|
if (g_worldMapOffset >= 1.0f)
|
||||||
|
value += g_offsetX;
|
||||||
|
|
||||||
PPC_STORE_U32(textBox + 0x38, reinterpret_cast<uint32_t&>(value));
|
PPC_STORE_U32(textBox + 0x38, reinterpret_cast<uint32_t&>(value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue