- removed old process input code.

This commit is contained in:
Christoph Oelckers 2020-05-19 19:50:31 +02:00
parent a966e34caa
commit 7ec3232a3a
5 changed files with 23 additions and 1518 deletions

View file

@ -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)
{

View file

@ -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);

View file

@ -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);

View file

@ -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