Fix func_buyzones not being affected by fcs_swapteams

This commit is contained in:
Marco Cawthorne 2018-12-25 22:53:44 +01:00
parent b1fa74a63a
commit a02b781e9a

View file

@ -47,7 +47,15 @@ void func_buyzone( void ) {
remove( self );
return;
}
if ( autocvar_fcs_swapteams == TRUE ) {
if (self.team == TEAM_T) {
self.team = TEAM_CT;
} else if (self.team == TEAM_CT) {
self.team = TEAM_T;
}
}
self.angles = '0 0 0';
self.movetype = MOVETYPE_NONE;
self.solid = SOLID_TRIGGER;