summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Haley2010-09-28 04:17:08 +0000
committerJames Haley2010-09-28 04:17:08 +0000
commit45302b586cd9f18558a692bacde7e672e6d2fdc7 (patch)
treec0d9c02e2f7149683ed572934191bc7fce8e7862
parent5f9fe97f7cfedec45fb8cf599d2c52eb69e76027 (diff)
downloadchocolate-doom-45302b586cd9f18558a692bacde7e672e6d2fdc7.tar.gz
chocolate-doom-45302b586cd9f18558a692bacde7e672e6d2fdc7.tar.bz2
chocolate-doom-45302b586cd9f18558a692bacde7e672e6d2fdc7.zip
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
-rw-r--r--src/strife/st_stuff.c27
1 files 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();
}