From 73f58118d9a1d9b9fea80c37946dc58a893ada9f Mon Sep 17 00:00:00 2001 From: INeedGames Date: Sat, 16 Dec 2023 12:43:15 -0600 Subject: [PATCH] Update src/sv_bots.cpp Co-authored-by: proxict --- src/sv_bots.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/sv_bots.cpp b/src/sv_bots.cpp index 688bbdd9..b4b67a92 100644 --- a/src/sv_bots.cpp +++ b/src/sv_bots.cpp @@ -395,11 +395,7 @@ qboolean shouldSpamUseButton(gentity_t *bot) void Bot_SetBotWeapon(int clientNum, unsigned int weaponIdx) { - ::byte weapInt; - - weapInt = static_cast<::byte>(weaponIdx); - - g_botai[clientNum].weapon = weapInt; + g_botai[clientNum].weapon = static_cast<::byte>(weaponIdx); } }