1
0
Fork 0
forked from fte/fteqw

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:
Spoike 2006-01-15 22:36:09 +00:00
parent d0f050da32
commit e58ef84cda

View file

@ -278,25 +278,25 @@ void(string line) SV_ParseClientCommand =
cmd = argv(0); cmd = argv(0);
if (cmd == "invuse") if (cmd == "invuse")
{ {
if (self.deadflag) if (self.deadflag || self.current_slot==0)
return; return;
Cmd_InvUse(argv(1)); Cmd_InvUse(argv(1));
} }
else if (cmd == "invdrop") else if (cmd == "invdrop")
{ {
if (self.deadflag) if (self.deadflag || self.current_slot==0)
return; return;
Cmd_InvDrop(argv(1)); Cmd_InvDrop(argv(1));
} }
else if (cmd == "invswap") else if (cmd == "invswap")
{ {
if (self.deadflag) if (self.deadflag || self.current_slot==0)
return; return;
Cmd_InvSwap(argv(1), argv(2)); Cmd_InvSwap(argv(1), argv(2));
} }
else if (cmd == "invgive") else if (cmd == "invgive")
{ {
if (self.deadflag) if (self.deadflag || self.current_slot==0)
return; return;
Cmd_InvGive(argv(1), stof(argv(2)), stof(argv(3))); Cmd_InvGive(argv(1), stof(argv(2)), stof(argv(3)));
} }