mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 03:32:28 -04:00
Fix some compile issues with Eluna based on upstream changes
This commit is contained in:
@@ -3410,9 +3410,17 @@ namespace LuaGlobalFunctions
|
||||
lua_setfield(L, -2, "delay");
|
||||
}
|
||||
|
||||
// MoveType is WaypointMoveType enum
|
||||
lua_pushinteger(L, static_cast<int>(node.MoveType));
|
||||
lua_setfield(L, -2, "moveType");
|
||||
// MoveType is Optional<WaypointMoveType>
|
||||
if (node.MoveType)
|
||||
{
|
||||
lua_pushinteger(L, static_cast<int>(*node.MoveType));
|
||||
lua_setfield(L, -2, "moveType");
|
||||
}
|
||||
else
|
||||
{
|
||||
lua_pushinteger(L, 0); // Default to WAYPOINT_MOVE_TYPE_WALK
|
||||
lua_setfield(L, -2, "moveType");
|
||||
}
|
||||
|
||||
lua_rawseti(L, -2, nodeIndex++);
|
||||
}
|
||||
|
||||
@@ -2076,7 +2076,8 @@ namespace LuaUnit
|
||||
|
||||
Position pos(x, y, z);
|
||||
|
||||
unit->GetMotionMaster()->MoveJump(pos, zSpeed, maxHeight, id);
|
||||
// New signature: MoveJump(id, pos, speedOrTime, minHeight, maxHeight, ...)
|
||||
unit->GetMotionMaster()->MoveJump(id, pos, zSpeed, {}, maxHeight);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user