From 6166e83d287136ecc9d68de4beae4b2d2644ec99 Mon Sep 17 00:00:00 2001 From: ChillyDoom Date: Tue, 21 Oct 2014 19:32:15 +0100 Subject: [PATCH] - Fixed: Only setting controllers should be able to remove bots. --- src/b_bot.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/b_bot.cpp b/src/b_bot.cpp index 3494dc4c4..969d57a1b 100644 --- a/src/b_bot.cpp +++ b/src/b_bot.cpp @@ -141,6 +141,12 @@ void FCajunMaster::ClearPlayer (int i, bool keepTeam) CCMD (removebots) { + if (!players[consoleplayer].settings_controller) + { + Printf ("Only setting controllers can remove bots\n"); + return; + } + Net_WriteByte (DEM_KILLBOTS); }