From 45302b586cd9f18558a692bacde7e672e6d2fdc7 Mon Sep 17 00:00:00 2001 From: James Haley Date: Tue, 28 Sep 2010 04:17:08 +0000 Subject: Identified dword_88604 as st_keystate and made static to ST_Responder. Identified dword_88484 as st_keypage. Subversion-branch: /branches/strife-branch Subversion-revision: 2145 --- src/strife/st_stuff.c | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/strife/st_stuff.c b/src/strife/st_stuff.c index 6c622c07..37958566 100644 --- a/src/strife/st_stuff.c +++ b/src/strife/st_stuff.c @@ -248,8 +248,7 @@ static boolean st_showinvpop = false; static boolean st_showkeys = false; // villsa [STRIFE] TODO - identify variables -static boolean dword_88604 = false; -static int dword_88484 = 1; +static int st_keypage = -1; static int dword_88490 = 0; // haleyjd 09/19/10: [STRIFE] Cached player data @@ -358,6 +357,8 @@ static char st_msgbuf[52]; // intercept cheats. boolean ST_Responder(event_t* ev) { + // haleyjd 09/27/10: made static to ST_Responder + static boolean st_keystate = false; int i; // Filter automap on/off. @@ -398,7 +399,7 @@ boolean ST_Responder(event_t* ev) if(ev->data2 == key_invkey) { st_showkeys = 0; - dword_88604 = 0; + st_keystate = 0; } } } @@ -418,9 +419,6 @@ boolean ST_Responder(event_t* ev) return true; } - // STRIFE-TODO: this is branched on for handling key ups/key downs - // with regard to raising/lowering popups - // if a user keypress... if(ev->type != ev_keydown) return false; @@ -446,15 +444,15 @@ boolean ST_Responder(event_t* ev) st_showobjective = false; st_showinvpop = false; - if(!dword_88604) + if(!st_keystate) { - dword_88604 = true; - if(++dword_88484 > 2) + st_keystate = true; + if(++st_keypage > 2) { st_popupdisplaytics = 0; st_showkeys = false; st_displaypopup = false; - dword_88484 = -1; + st_keypage = -1; return true; } } @@ -472,7 +470,7 @@ boolean ST_Responder(event_t* ev) { if(ev->data2 == key_invpop) { - dword_88484 = -1; + st_keypage = -1; st_popupdisplaytics = false; st_showkeys = false; st_showobjective = false; @@ -483,7 +481,7 @@ boolean ST_Responder(event_t* ev) { st_showkeys = netgame ? true : false; st_showinvpop = netgame ? true : false; - dword_88484 = -1; + st_keypage = -1; // villsa [STRIFE] TODO - verify this logic st_popupdisplaytics = ev->data2 ^ key_mission; @@ -886,7 +884,7 @@ void ST_Ticker (void) { st_displaypopup = false; st_showkeys = false; - dword_88484 = -1; // unknown var + st_keypage = -1; // unknown var if(st_dosizedisplay) M_SizeDisplay(true); // mondo hack? @@ -1383,6 +1381,9 @@ void ST_loadGraphics(void) void ST_loadData(void) { + static int dword_8848C = 1; // STRIFE-TODO: what is the purpose of this? + dword_8848C = 0; + lu_palette = W_GetNumForName (DEH_String("PLAYPAL")); ST_loadGraphics(); } -- cgit v1.2.3