- moved the bot support code from AActor::Tick to a subfunction in the bot sources. No need to pollute a main game file with this stuff.

This commit is contained in:
Christoph Oelckers 2016-03-26 01:30:28 +01:00
commit 696fde69b8
4 changed files with 45 additions and 39 deletions

View file

@ -6505,7 +6505,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CheckProximity)
if (ptrWillChange)
{
current = ref->AproxDistance(mo);
current = ref->Distance2D(mo);
if ((flags & CPXF_CLOSEST) && (current < closer))
{