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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user