This commit is contained in:
Steve Dudenhoeffer 2004-07-27 01:17:58 +00:00
parent 53332dbe76
commit d7caf3803e

View File

@ -106,10 +106,8 @@ void CPlayer::Reset()
}
BOOL CPlayer::ClientCommand()
{
// As of now, all that needs to be checked is the "menuselect" command.
if (menucmd.inmenu)
{
LOG_CONSOLE(PLID,"Checking menuselect...");
if (FStrEq(CMD_ARGV(0),"menuselect"))
{
int key=0;
@ -125,14 +123,9 @@ BOOL CPlayer::ClientCommand()
if (key_mask & menucmd.keys)
{
ClearHudMessage(edict,menuhudtext," ");
LOG_CONSOLE(PLID,"Clearing hud text...");
LOG_CONSOLE(PLID,"this->menucmd.iFunctionIndex: %i, this->index: %i key: %i",this->menucmd.iFunctionIndex,this->index,key);
int temp = this->menucmd.iFunctionIndex;
MF_ExecuteForward(this->menucmd.iFunctionIndex,this->index,key);
MF_UnregisterSPForward(temp);
LOG_CONSOLE(PLID,"Executing...");
// AMX_EXEC(menucmd.amx,NULL,menucmd.iFunctionIndex,2,index,key);
}
return true;
}