Don't allow the player to do inventory stuff before spawned.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1874 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
d0f050da32
commit
e58ef84cda
1 changed files with 4 additions and 4 deletions
|
@ -278,25 +278,25 @@ void(string line) SV_ParseClientCommand =
|
|||
cmd = argv(0);
|
||||
if (cmd == "invuse")
|
||||
{
|
||||
if (self.deadflag)
|
||||
if (self.deadflag || self.current_slot==0)
|
||||
return;
|
||||
Cmd_InvUse(argv(1));
|
||||
}
|
||||
else if (cmd == "invdrop")
|
||||
{
|
||||
if (self.deadflag)
|
||||
if (self.deadflag || self.current_slot==0)
|
||||
return;
|
||||
Cmd_InvDrop(argv(1));
|
||||
}
|
||||
else if (cmd == "invswap")
|
||||
{
|
||||
if (self.deadflag)
|
||||
if (self.deadflag || self.current_slot==0)
|
||||
return;
|
||||
Cmd_InvSwap(argv(1), argv(2));
|
||||
}
|
||||
else if (cmd == "invgive")
|
||||
{
|
||||
if (self.deadflag)
|
||||
if (self.deadflag || self.current_slot==0)
|
||||
return;
|
||||
Cmd_InvGive(argv(1), stof(argv(2)), stof(argv(3)));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue