Skip to content

Commit

Permalink
Update turret.as
Browse files Browse the repository at this point in the history
  • Loading branch information
viciious authored Mar 12, 2020
1 parent f290486 commit d8c0058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gametypes/generic/turret.as
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,9 @@ cTurret @ClientDropTurret( Client @client )
return null;

// first check that there's space for spawning the turret in front of us
Vec3 dir, start, end;
Vec3 dir, start, end, r, u;

client.getEnt().angles.angleVectors( dir, null, null );
client.getEnt().angles.angleVectors( dir, r, u );
start = client.getEnt().origin;
start.z += 6;
end = ( start + ( 0.5 * ( turretMaxs + turretMins ) ) ) + ( dir * 64 );
Expand Down

0 comments on commit d8c0058

Please sign in to comment.