Skip to content

Commit c246fd6

Browse files
committed
TOT: fix bot weapon selection outside of TOT mode
1 parent 11afe2b commit c246fd6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bot_botweap.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,10 @@ void SelectWeapon(void)
929929

930930
CheckNewWeapon(DesiredWeapon());
931931

932-
self->fb.desired_weapon_impulse = FrogbotWeapon();
932+
if (tot_mode_enabled())
933+
{
934+
self->fb.desired_weapon_impulse = FrogbotWeapon();
935+
}
933936
}
934937

935938
#endif // BOT_SUPPORT

0 commit comments

Comments
 (0)