mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-30 13:10:55 +00:00
Merge branch 'staggersaves' into 'next'
Draw save files from outwards in See merge request STJr/SRB2!1228
This commit is contained in:
commit
0bbdde2fb2
1 changed files with 3 additions and 2 deletions
|
@ -8246,7 +8246,7 @@ static void M_CacheLoadGameData(void)
|
||||||
|
|
||||||
static void M_DrawLoadGameData(void)
|
static void M_DrawLoadGameData(void)
|
||||||
{
|
{
|
||||||
INT32 i, savetodraw, x, y, hsep = 90;
|
INT32 i, prev_i = 1, savetodraw, x, y, hsep = 90;
|
||||||
skin_t *charskin = NULL;
|
skin_t *charskin = NULL;
|
||||||
|
|
||||||
if (vid.width != BASEVIDWIDTH*vid.dupx)
|
if (vid.width != BASEVIDWIDTH*vid.dupx)
|
||||||
|
@ -8255,8 +8255,9 @@ static void M_DrawLoadGameData(void)
|
||||||
if (needpatchrecache)
|
if (needpatchrecache)
|
||||||
M_CacheLoadGameData();
|
M_CacheLoadGameData();
|
||||||
|
|
||||||
for (i = -2; i <= 2; i++)
|
for (i = 2; prev_i; i = -(i + ((UINT32)i >> 31))) // draws from outwards in; 2, -2, 1, -1, 0
|
||||||
{
|
{
|
||||||
|
prev_i = i;
|
||||||
savetodraw = (saveSlotSelected + i + numsaves)%numsaves;
|
savetodraw = (saveSlotSelected + i + numsaves)%numsaves;
|
||||||
x = (BASEVIDWIDTH/2 - 42 + loadgamescroll) + (i*hsep);
|
x = (BASEVIDWIDTH/2 - 42 + loadgamescroll) + (i*hsep);
|
||||||
y = 33 + 9;
|
y = 33 + 9;
|
||||||
|
|
Loading…
Reference in a new issue