Refactored more of Entities and BlockEntities to use Vector3. (#4403)
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ bool cGhast::Attack(std::chrono::milliseconds a_Dt)
|
||||
Vector3d Speed = GetLookVector() * 20;
|
||||
Speed.y = Speed.y + 1;
|
||||
|
||||
auto GhastBall = cpp14::make_unique<cGhastFireballEntity>(this, GetPosX(), GetPosY() + 1, GetPosZ(), Speed);
|
||||
auto GhastBall = cpp14::make_unique<cGhastFireballEntity>(this, GetPosition().addedY(1), Speed);
|
||||
auto GhastBallPtr = GhastBall.get();
|
||||
if (!GhastBallPtr->Initialize(std::move(GhastBall), *m_World))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user