Skip to content

Commit

Permalink
Merge pull request #156 from NeonKnightOA/flagbases-fix
Browse files Browse the repository at this point in the history
Regression Fix: Obelisk bases are now drawn outside Harvester/Overload.
  • Loading branch information
NeonKnightOA authored Mar 12, 2024
2 parents adb4fdd + 7b2331b commit 513317d
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 513317d

Please sign in to comment.