mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
TaxiBuildfix.
This commit is contained in:
@@ -2419,7 +2419,9 @@ namespace LuaGlobalFunctions
|
|||||||
}
|
}
|
||||||
if (startNode >= nodeId)
|
if (startNode >= nodeId)
|
||||||
return 1;
|
return 1;
|
||||||
|
#ifndef AZEROTHCORE
|
||||||
sTaxiPathSetBySource[startNode][nodeId - 1] = TaxiPathBySourceAndDestination(pathId, price);
|
sTaxiPathSetBySource[startNode][nodeId - 1] = TaxiPathBySourceAndDestination(pathId, price);
|
||||||
|
#endif
|
||||||
TaxiPathEntry* pathEntry = new TaxiPathEntry();
|
TaxiPathEntry* pathEntry = new TaxiPathEntry();
|
||||||
#ifdef TRINITY
|
#ifdef TRINITY
|
||||||
pathEntry->FromTaxiNode = startNode;
|
pathEntry->FromTaxiNode = startNode;
|
||||||
@@ -2432,6 +2434,9 @@ namespace LuaGlobalFunctions
|
|||||||
#endif
|
#endif
|
||||||
pathEntry->ID = pathId;
|
pathEntry->ID = pathId;
|
||||||
sTaxiPathStore.SetEntry(pathId, pathEntry);
|
sTaxiPathStore.SetEntry(pathId, pathEntry);
|
||||||
|
#ifdef AZEROTHCORE
|
||||||
|
sTaxiPathSetBySource[startNode][nodeId - 1] = pathEntry;
|
||||||
|
#endif
|
||||||
Eluna::Push(L, pathId);
|
Eluna::Push(L, pathId);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user