Fix func_buyzones not being affected by fcs_swapteams
This commit is contained in:
parent
b1fa74a63a
commit
a02b781e9a
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue