1
0
mirror of https://github.com/ineedbots/iw5_bot_warfare.git synced 2025-06-28 23:21:51 +00:00

Some updates

This commit is contained in:
ineedbots
2021-05-09 17:04:48 -06:00
parent 6df432e267
commit 2985c64118
2 changed files with 152 additions and 61 deletions

View File

@ -1054,19 +1054,13 @@ _WaypointsToKDTree(waypoints, dem)
return;
callbacksort = undefined;
switch(dem)
{
case 0:
callbacksort = ::HeapSortCoordX;
break;
case 1:
callbacksort = ::HeapSortCoordY;
break;
case 2:
callbacksort = ::HeapSortCoordZ;
break;
}
if (dem == 0) // COMPILER bug! cannot assign variables outside the switch statement
callbacksort = ::HeapSortCoordX;
else if (dem == 1)
callbacksort = ::HeapSortCoordY;
else
callbacksort = ::HeapSortCoordZ;
heap = NewHeap(callbacksort);