From e58ef84cda19d39a27b6c5b392053e500a78d7a4 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 15 Jan 2006 22:36:09 +0000 Subject: [PATCH] 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 --- quakec/fallout2/cmds.qc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/quakec/fallout2/cmds.qc b/quakec/fallout2/cmds.qc index 1a2167d0..8e5f9070 100644 --- a/quakec/fallout2/cmds.qc +++ b/quakec/fallout2/cmds.qc @@ -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))); }