// NOTE: LEGACY CODE, needs to be re-written!
-void havocbot_calculate_middlepoint()
+void havocbot_ctf_calculate_middlepoint()
{
entity f;
vector s = '0 0 0';
if(IS_DEAD(this))
return;
- if(havocbot_ctf_middlepoint == '0 0 0')
- havocbot_calculate_middlepoint();
-
// Check ctf flags
if (this.flagcarried)
{
if(tmp_entity.team == 0) { ctf_oneflag = true; }
}
+ havocbot_ctf_calculate_middlepoint();
+
if(NumTeams(ctf_teams) < 2) // somehow, there's not enough flags!
{
ctf_teams = 0; // so set the default red and blue teams