From ee6ca14fff4468dd9155039ae8b6d1cbbfb94540 Mon Sep 17 00:00:00 2001 From: sauerbraten Date: Tue, 16 Feb 2021 20:18:04 +0100 Subject: [PATCH] fix listteam args format string --- patches/listteams.patch | 2 +- src/fpsgame/client.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/listteams.patch b/patches/listteams.patch index 09628c9..9c5116b 100644 --- a/patches/listteams.patch +++ b/patches/listteams.patch @@ -33,7 +33,7 @@ Index: src/fpsgame/client.cpp + buf.add('\0'); + result(buf.getbuf()); + } -+ ICOMMAND(listteams, "bb", (int *local, int *bots, int *specs), listteams(*local!=0, *bots!=0, *specs!=0)); ++ ICOMMAND(listteams, "bbb", (int *local, int *bots, int *specs), listteams(*local!=0, *bots!=0, *specs!=0)); + + void listclients(bool local, bool bots, bool specs, const char *team) + { diff --git a/src/fpsgame/client.cpp b/src/fpsgame/client.cpp index f0d1d56..4a158c5 100644 --- a/src/fpsgame/client.cpp +++ b/src/fpsgame/client.cpp @@ -402,7 +402,7 @@ namespace game buf.add('\0'); result(buf.getbuf()); } - ICOMMAND(listteams, "bb", (int *local, int *bots, int *specs), listteams(*local!=0, *bots!=0, *specs!=0)); + ICOMMAND(listteams, "bbb", (int *local, int *bots, int *specs), listteams(*local!=0, *bots!=0, *specs!=0)); void listclients(bool local, bool bots, bool specs, const char *team) {