Skip to content

Commit

Permalink
Fix: Obelisk bases are now drawn outside Harvester/Overload.
Browse files Browse the repository at this point in the history
Useful for CTF maps that use them as flag bases. Plus, the official Q3TA editing manual recommends doing so, so there's no point in not drawing them outside of Harv/Over.
  • Loading branch information
NeonKnightOA committed Mar 12, 2024
1 parent 910453d commit 7b2331b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/game/g_team.c
Original file line number Diff line number Diff line change
Expand Up @@ -2297,7 +2297,7 @@ void SP_team_redobelisk( gentity_t *ent )
{
gentity_t *obelisk;

if (g_gametype.integer != GT_HARVESTER && g_gametype.integer != GT_OBELISK) {
if (!G_UsesTeamFlags(g_gametype.integer) && g_gametype.integer != GT_HARVESTER && g_gametype.integer != GT_OBELISK) {
G_FreeEntity(ent);
return;
}
Expand All @@ -2323,7 +2323,7 @@ void SP_team_blueobelisk( gentity_t *ent )
{
gentity_t *obelisk;

if (g_gametype.integer != GT_HARVESTER && g_gametype.integer != GT_OBELISK) {
if (!G_UsesTeamFlags(g_gametype.integer) && g_gametype.integer != GT_HARVESTER && g_gametype.integer != GT_OBELISK) {
G_FreeEntity(ent);
return;
}
Expand All @@ -2347,7 +2347,7 @@ void SP_team_blueobelisk( gentity_t *ent )
*/
void SP_team_neutralobelisk( gentity_t *ent )
{
if (g_gametype.integer != GT_HARVESTER) {
if (!G_UsesTheWhiteFlag(g_gametype.integer) && g_gametype.integer != GT_HARVESTER) {
G_FreeEntity(ent);
return;
}
Expand Down

0 comments on commit 7b2331b

Please sign in to comment.