mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-30 13:21:04 +00:00
- removed old process input code.
This commit is contained in:
parent
a966e34caa
commit
7ec3232a3a
5 changed files with 23 additions and 1518 deletions
|
@ -413,7 +413,6 @@ void P_UpdatePosWhenViewingCam(DukePlayer_t *pPlayer);
|
|||
void P_ProcessInput(int playerNum);
|
||||
void P_DHProcessInput(int playerNum);
|
||||
void quickkill(DukePlayer_t* pPlayer);
|
||||
void P_SelectNextInvItem(DukePlayer_t *pPlayer);
|
||||
void P_UpdateScreenPal(DukePlayer_t *pPlayer);
|
||||
inline void setpal(DukePlayer_t* pPlayer)
|
||||
{
|
||||
|
|
|
@ -2598,6 +2598,9 @@ void processinput_d(int snum)
|
|||
pi = p->i;
|
||||
s = &sprite[pi];
|
||||
|
||||
g_player[snum].horizAngleAdjust = 0;
|
||||
g_player[snum].horizSkew = 0;
|
||||
|
||||
if (p->cheat_phase <= 0) sb_snum = g_player[snum].input->bits;// sync[snum].bits;
|
||||
else sb_snum = 0;
|
||||
|
||||
|
@ -2711,19 +2714,6 @@ void processinput_d(int snum)
|
|||
return;
|
||||
}
|
||||
|
||||
if (p->pals.f > 0) // JBF 20040101: was > 0
|
||||
p->pals.f--;
|
||||
|
||||
// todo: Take this out of here. HUD text should be a new mode of the notification display.
|
||||
if (p->fta > 0)
|
||||
{
|
||||
p->fta--;
|
||||
if (p->fta == 0)
|
||||
{
|
||||
p->ftq = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (s->extra <= 0)
|
||||
{
|
||||
playerisdead(snum, psectlotag, fz, cz);
|
||||
|
@ -3089,7 +3079,6 @@ HORIZONLY:
|
|||
{
|
||||
playerAimUp(snum, sb_snum);
|
||||
}
|
||||
|
||||
else if (sb_snum & SKB_AIM_DOWN)
|
||||
{ // aim_down
|
||||
playerAimDown(snum, sb_snum);
|
||||
|
|
|
@ -3441,6 +3441,9 @@ void processinput_r(int snum)
|
|||
pi = p->i;
|
||||
s = &sprite[pi];
|
||||
|
||||
g_player[snum].horizAngleAdjust = 0;
|
||||
g_player[snum].horizSkew = 0;
|
||||
|
||||
if (p->cheat_phase <= 0) sb_snum = g_player[snum].input->bits;// sync[snum].bits;
|
||||
else sb_snum = 0;
|
||||
|
||||
|
@ -3652,19 +3655,6 @@ void processinput_r(int snum)
|
|||
return;
|
||||
}
|
||||
|
||||
if (p->pals.f > 0)
|
||||
p->pals.f--;
|
||||
|
||||
// todo: Take this out of here. HUD text should be a new mode of the notification display.
|
||||
if (p->fta > 0)
|
||||
{
|
||||
p->fta--;
|
||||
if (p->fta == 0)
|
||||
{
|
||||
p->ftq = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (s->extra <= 0)
|
||||
{
|
||||
playerisdead(snum, psectlotag, fz, cz);
|
||||
|
|
|
@ -4363,6 +4363,23 @@ int G_DoMoveThings(void)
|
|||
|
||||
if (ud.pause_on == 0)
|
||||
{
|
||||
// todo: take HUD timer stuff out of the main game loop
|
||||
auto p = &ps[i];
|
||||
if (p->pals.f > 0)
|
||||
p->pals.f--;
|
||||
|
||||
if (p->fta > 0)
|
||||
{
|
||||
p->fta--;
|
||||
if (p->fta == 0)
|
||||
{
|
||||
p->ftq = 0;
|
||||
}
|
||||
}
|
||||
if (g_levelTextTime > 0)
|
||||
g_levelTextTime--;
|
||||
|
||||
|
||||
//P_ProcessInput(i);
|
||||
fi.processinput(i);
|
||||
fi.checksectors(i);
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue