From a966e34caab569f11518d8e55f780d3c9f1f72db Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 19 May 2020 18:47:01 +0200 Subject: [PATCH] - broken palette checks fixed - the new input routine mostly works. --- source/games/duke/src/player_d.cpp | 2 +- source/games/duke/src/player_r.cpp | 2 +- source/games/duke/src/zz_game.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/games/duke/src/player_d.cpp b/source/games/duke/src/player_d.cpp index 3351d4df4..ee55d0947 100644 --- a/source/games/duke/src/player_d.cpp +++ b/source/games/duke/src/player_d.cpp @@ -2711,7 +2711,7 @@ void processinput_d(int snum) return; } - if (p->pals.f >= 0) // JBF 20040101: was > 0 + 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. diff --git a/source/games/duke/src/player_r.cpp b/source/games/duke/src/player_r.cpp index 39e73254f..c4540b72f 100644 --- a/source/games/duke/src/player_r.cpp +++ b/source/games/duke/src/player_r.cpp @@ -3652,7 +3652,7 @@ void processinput_r(int snum) return; } - if (p->pals.f >= 0) // JBF 20040101: was > 0 + 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. diff --git a/source/games/duke/src/zz_game.cpp b/source/games/duke/src/zz_game.cpp index 4c37607d0..799edfb1a 100644 --- a/source/games/duke/src/zz_game.cpp +++ b/source/games/duke/src/zz_game.cpp @@ -4363,8 +4363,8 @@ int G_DoMoveThings(void) if (ud.pause_on == 0) { - P_ProcessInput(i); - //fi.processinput(i); + //P_ProcessInput(i); + fi.processinput(i); fi.checksectors(i); } }