mirror of
https://github.com/Squareville/wonderland-server.git
synced 2025-12-16 20:34:54 -06:00
fix compiler
This commit is contained in:
@@ -37,7 +37,7 @@ void SpawnBehavior::Handle(BehaviorContext* context, RakNet::BitStream& bitStrea
|
||||
info.spawnerID = context->originator;
|
||||
info.spawnerNodeID = 0;
|
||||
const auto forward = QuatUtils::Forward(info.rot);
|
||||
info.pos = info.pos + (forward * m_Distance) + (forward * m_Offset.z) + (info.rot.GetRightVector() * m_Offset.x) + (info.rot.GetUpVector() * m_Offset.y);
|
||||
info.pos = info.pos + (forward * m_Distance) + (forward * m_Offset.z) + (QuatUtils::Right(info.rot) * m_Offset.x) + (QuatUtils::Up(info.rot) * m_Offset.y);
|
||||
|
||||
auto* entity = Game::entityManager->CreateEntity(
|
||||
info,
|
||||
|
||||
@@ -336,7 +336,7 @@ void SkunkEvent::SpawnSingleHazmatNpc(Entity* const self, const std::string& pat
|
||||
|
||||
EntityInfo info{};
|
||||
info.pos = path->pathWaypoints[0].position;
|
||||
info.rot = NiQuaternionConstant::IDENTITY;
|
||||
info.rot = QuatUtils::IDENTITY;
|
||||
auto* const van = GetEntityByName(self, u"HazmatVanID");
|
||||
if (van) {
|
||||
const auto& vanRotation = van->GetRotation();
|
||||
|
||||
Reference in New Issue
Block a user