Skip to content

Commit

Permalink
Don't show motd or select team menu for observer
Browse files Browse the repository at this point in the history
  • Loading branch information
drzel committed Aug 10, 2018
1 parent 522843a commit cd01306
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion menu.qc
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ void (float update) Menu_Team = {
local entity timer;

if (self.classname == "observer")
Status_Menu(self, Menu_Team_Input, "");
/* Status_Menu(self, Menu_Team_Input, ""); */
return;

// allow toggling team menu using any method to show it
if (!update && self.menu_input == Menu_Team_Input) {
Expand Down
3 changes: 3 additions & 0 deletions tforthlp.qc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ void (float inp) MOTD_Input = {
};

void () TeamFortress_MOTD = {
if (self.classname == "observer")
return;

local string st1;
local string st2;
local string ya;
Expand Down

0 comments on commit cd01306

Please sign in to comment.