Skip to content

Commit 7391897

Browse files
committed
fix | toggle spectator
1 parent ed7e889 commit 7391897

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

config/game.cfg

+1-7
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,7 @@ crosshairs = [
3434
"dot_whole.png" "dot_whole_hit.png"
3535
]
3636

37-
nextspecmode = [
38-
if $specmode [
39-
specmode (mod (+ $specmode 1) 3)
40-
] [
41-
specmode (? (>= (getfollow) 0) 2 1)
42-
]
43-
]
37+
nextspecmode = [ follow ]
4438

4539
defvarp zooming 0 0 1
4640

config/ui.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ UImenu "main" [
7474
1] [UI_MainMenuButton "Switch Team: ^f3Evil" "action" [team "evil"]] [
7575
2] [UI_MainMenuButton "Switch Team: ^f1Good" "action" [team "good"]]
7676
uifill 0.2 0.02 [UIbar 1]
77-
UI_MainMenuButton (concatword (? $isspectator "^f1Leave" "^f7Toggle") " Spectator") "spectator" [spectator (! (isspectator (getclientnum)))]
77+
UI_MainMenuButton (concatword (? (isspectator (getclientnum)) "^f1Leave" "^f7Toggle") " Spectator") "spectator" [spectator (! (isspectator (getclientnum))); hideallui]
7878
UI_MainMenuButton "Master" "arrow_fw" [menu_master]
7979
if (ismaster $getclientnum) [
8080
UI_MainMenuButton "Bots" "arrow_fw" [hideui "main" ; showui "bots"]

0 commit comments

Comments
 (0)