]> git.xonotic.org Git - xonotic/darkplaces.git/commit
cmd: always register server-only commands, don't register client-only commands on...
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 12 Dec 2023 04:33:48 +0000 (14:33 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Tue, 12 Dec 2023 06:45:07 +0000 (16:45 +1000)
commitb8692b8cd73685794b59b0522e8caa4b9d9a2dac
tree6d6aad7c37536fa5fe99810cff0d9e0d54639fa0
parent14bd731965d8d345372660d8b500a734d5c6a6b2
cmd: always register server-only commands, don't register client-only commands on dedicated server

Fixes the lack of the `heartbeat` command on dedicated and listen, and
the presence of commands like `toggleconsole` on dedicated.

Similar to 3a58ad52e63635c93e95955f984fd6052156e56b this might reveal a
few commands that aren't flagged correctly.

Changes the bitmask vars to the correct type.
Renames cmd_flags to cmd_flagsmask for consistency.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
cmd.c
cmd.h