Update NavBot.cpp

This commit is contained in:
LightCat 2018-08-21 00:31:11 +02:00 committed by GitHub
parent 9fccf7e76d
commit 737adc5e9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -419,7 +419,7 @@ void CreateMove()
float center = GetBuildingPosition(ent).DistTo(g_pLocalPlayer->v_Eye);
float closest = fminf(minf, fminf(maxf, center));
Vector tonav = (minf == closest) ? min : (maxf == closest) ? max : GetBuildingPosition(ent);
nav::NavTo(closest, false, false);
nav::NavTo(tonav, false, false);
}
Vector tr = GetBuildingPosition(ent) - g_pLocalPlayer->v_Eye;
Vector angles;