Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sp/src/game/server/Human_Error/vehicle_drivable_apc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -842,11 +842,15 @@ void CPropDrivableAPC::AimGunAt( Vector *endPos, float flInterval )

//DevMsg("newTargetPitch: %f\n", newTargetPitch);

// EZ2: Invalid check, this always resolves to true
// m_bUnableToFire is unused, ignore block
#if 0
// If the angles have been clamped, we're looking outside of our valid range
if ( fabs(newTargetYaw-targetYaw) > 1e-4 || fabs(newTargetPitch-targetPitch) > 1e-4 )
{
m_bUnableToFire = true;
}
#endif

targetYaw = newTargetYaw;
targetPitch = newTargetPitch;
Expand Down