mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-13 11:30:44 +00:00
In fake multi-mode, always draw the original mini status bar.
git-svn-id: https://svn.eduke32.com/eduke32@2900 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
fca10f420a
commit
4076f5a1c4
2 changed files with 49 additions and 39 deletions
|
@ -1173,9 +1173,12 @@ static int32_t G_GetInvOn(const DukePlayer_t *p)
|
||||||
static void G_DrawStatusBar(int32_t snum)
|
static void G_DrawStatusBar(int32_t snum)
|
||||||
{
|
{
|
||||||
const DukePlayer_t *const p = g_player[snum].ps;
|
const DukePlayer_t *const p = g_player[snum].ps;
|
||||||
int32_t i, j, o, ss = ud.screen_size, u;
|
int32_t i, j, o, u;
|
||||||
int32_t permbit = 0;
|
int32_t permbit = 0;
|
||||||
|
|
||||||
|
const int32_t ss = g_fakeMultiMode ? 4 : ud.screen_size;
|
||||||
|
const int32_t althud = g_fakeMultiMode ? 0 : ud.althud;
|
||||||
|
|
||||||
const int32_t SBY = (200-tilesizy[BOTTOMSTATUSBAR]);
|
const int32_t SBY = (200-tilesizy[BOTTOMSTATUSBAR]);
|
||||||
|
|
||||||
const int32_t sb15 = sbarsc(32768), sb15h = sbarsc(49152);
|
const int32_t sb15 = sbarsc(32768), sb15h = sbarsc(49152);
|
||||||
|
@ -1195,7 +1198,7 @@ static void G_DrawStatusBar(int32_t snum)
|
||||||
|
|
||||||
if (getrendermode() >= 3) pus = NUMPAGES; // JBF 20040101: always redraw in GL
|
if (getrendermode() >= 3) pus = NUMPAGES; // JBF 20040101: always redraw in GL
|
||||||
|
|
||||||
if ((g_netServer || (g_netServer || ud.multimode > 1)) && (GametypeFlags[ud.coop] & GAMETYPE_FRAGBAR))
|
if ((g_netServer || ud.multimode > 1) && (GametypeFlags[ud.coop] & GAMETYPE_FRAGBAR))
|
||||||
{
|
{
|
||||||
if (pus)
|
if (pus)
|
||||||
G_DrawFrags();
|
G_DrawFrags();
|
||||||
|
@ -1216,8 +1219,10 @@ static void G_DrawStatusBar(int32_t snum)
|
||||||
|
|
||||||
if (ss == 4) //DRAW MINI STATUS BAR:
|
if (ss == 4) //DRAW MINI STATUS BAR:
|
||||||
{
|
{
|
||||||
if (ud.althud) // althud
|
if (althud)
|
||||||
{
|
{
|
||||||
|
// ALTERNATIVE STATUS BAR
|
||||||
|
|
||||||
static int32_t ammo_sprites[MAX_WEAPONS];
|
static int32_t ammo_sprites[MAX_WEAPONS];
|
||||||
|
|
||||||
if (ammo_sprites[0] == 0)
|
if (ammo_sprites[0] == 0)
|
||||||
|
@ -1328,8 +1333,10 @@ static void G_DrawStatusBar(int32_t snum)
|
||||||
minitext(284-35-o,180-3,"Auto",2, orient+ROTATESPRITE_MAX);
|
minitext(284-35-o,180-3,"Auto",2, orient+ROTATESPRITE_MAX);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// ORIGINAL MINI STATUS BAR
|
||||||
|
|
||||||
rotatesprite_fs(sbarx(5),sbary(200-28),sb16,0,HEALTHBOX,0,21,10+16+256);
|
rotatesprite_fs(sbarx(5),sbary(200-28),sb16,0,HEALTHBOX,0,21,10+16+256);
|
||||||
if (p->inven_icon)
|
if (p->inven_icon)
|
||||||
|
@ -1370,6 +1377,8 @@ static void G_DrawStatusBar(int32_t snum)
|
||||||
if (p->inven_icon >= 6)
|
if (p->inven_icon >= 6)
|
||||||
minitext(284-35-o,180,"Auto",2, orient+ROTATESPRITE_MAX);
|
minitext(284-35-o,180,"Auto",2, orient+ROTATESPRITE_MAX);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10662,7 +10671,8 @@ int32_t G_DoMoveThings(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// everyothertime++; moved lower so it is restored correctly by diffs
|
// Moved lower so it is restored correctly by diffs:
|
||||||
|
// everyothertime++;
|
||||||
|
|
||||||
if (g_netServer || g_netClient)
|
if (g_netServer || g_netClient)
|
||||||
randomseed = ticrandomseed;
|
randomseed = ticrandomseed;
|
||||||
|
|
|
@ -4409,8 +4409,8 @@ static void getzsofslope_player(int16_t sectnum, int32_t dax, int32_t day, int32
|
||||||
|
|
||||||
void P_ProcessInput(int32_t snum)
|
void P_ProcessInput(int32_t snum)
|
||||||
{
|
{
|
||||||
DukePlayer_t *p = g_player[snum].ps;
|
DukePlayer_t *const p = g_player[snum].ps;
|
||||||
spritetype *s = &sprite[p->i];
|
spritetype *const s = &sprite[p->i];
|
||||||
|
|
||||||
uint32_t sb_snum = g_player[snum].sync->bits;
|
uint32_t sb_snum = g_player[snum].sync->bits;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue