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

More updates :D

This commit is contained in:
ineedbots
2021-05-10 13:40:48 -06:00
parent 70c96dd193
commit 1d1e9a6135
2 changed files with 44 additions and 17 deletions

View File

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