Skip to content

Commit

Permalink
TTT: Improved ttt_radio autocomplete (#1172)
Browse files Browse the repository at this point in the history
When you autocomplete a "ttt_radio" command like "ttt_radio yes", it no longer completes to just "yes" but includes the command.
  • Loading branch information
markusmarkusz authored and svdm committed May 11, 2016
1 parent 30e59a8 commit 28e5249
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion garrysmod/gamemodes/terrortown/gamemode/cl_voice.lua
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ end
local function RadioComplete(cmd, arg)
local c = {}
for k, cmd in pairs(RADIO.Commands) do
table.insert(c, cmd.cmd)
local rcmd = "ttt_radio " .. cmd.cmd
table.insert(c, rcmd)
end
return c
end
Expand Down

0 comments on commit 28e5249

Please sign in to comment.