Skip to content

Commit

Permalink
TOT: fix bot weapon selection outside of TOT mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dusty-qw committed Sep 1, 2024
1 parent 11afe2b commit 2757c19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/bot_botweap.c
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,10 @@ void SelectWeapon(void)

CheckNewWeapon(DesiredWeapon());

self->fb.desired_weapon_impulse = FrogbotWeapon();
if (tot_mode_enabled())
{
self->fb.desired_weapon_impulse = FrogbotWeapon();
}
}

#endif // BOT_SUPPORT
2 changes: 1 addition & 1 deletion src/player.c
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ void GibPlayer(void)
}

void StartDie(void);
void PlayerBreak();
void PlayerBreak(void);

void PlayerDie(void)
{
Expand Down

0 comments on commit 2757c19

Please sign in to comment.