mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +00:00
Added MISSIONPACK ifdef around GT_1FCTF code.
This commit is contained in:
parent
b82c02fc03
commit
9a69b738bf
2 changed files with 8 additions and 1 deletions
|
@ -131,7 +131,12 @@ int BotSortTeamMatesByBaseTravelTime(bot_state_t *bs, int *teammates, int maxtea
|
||||||
int traveltimes[MAX_CLIENTS];
|
int traveltimes[MAX_CLIENTS];
|
||||||
bot_goal_t *goal = NULL;
|
bot_goal_t *goal = NULL;
|
||||||
|
|
||||||
if (gametype == GT_CTF || gametype == GT_1FCTF) {
|
#ifdef MISSIONPACK
|
||||||
|
if (gametype == GT_CTF || gametype == GT_1FCTF)
|
||||||
|
#else
|
||||||
|
if (gametype == GT_CTF)
|
||||||
|
#endif
|
||||||
|
{
|
||||||
if (BotTeam(bs) == TEAM_RED)
|
if (BotTeam(bs) == TEAM_RED)
|
||||||
goal = &ctf_redflag;
|
goal = &ctf_redflag;
|
||||||
else
|
else
|
||||||
|
|
|
@ -298,9 +298,11 @@ void Team_FragBonuses(gentity_t *targ, gentity_t *inflictor, gentity_t *attacker
|
||||||
enemy_flag_pw = PW_REDFLAG;
|
enemy_flag_pw = PW_REDFLAG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef MISSIONPACK
|
||||||
if (g_gametype.integer == GT_1FCTF) {
|
if (g_gametype.integer == GT_1FCTF) {
|
||||||
enemy_flag_pw = PW_NEUTRALFLAG;
|
enemy_flag_pw = PW_NEUTRALFLAG;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// did the attacker frag the flag carrier?
|
// did the attacker frag the flag carrier?
|
||||||
tokens = 0;
|
tokens = 0;
|
||||||
|
|
Loading…
Reference in a new issue