Changed some int parameters to vector parameters (#3937)
This commit is contained in:
@@ -2306,9 +2306,9 @@ UInt32 cWorld::SpawnMinecart(double a_X, double a_Y, double a_Z, int a_MinecartT
|
||||
|
||||
|
||||
|
||||
UInt32 cWorld::SpawnBoat(double a_X, double a_Y, double a_Z, cBoat::eMaterial a_Material)
|
||||
UInt32 cWorld::SpawnBoat(Vector3d a_Pos, cBoat::eMaterial a_Material)
|
||||
{
|
||||
auto Boat = cpp14::make_unique<cBoat>(a_X, a_Y, a_Z, a_Material);
|
||||
auto Boat = cpp14::make_unique<cBoat>(a_Pos, a_Material);
|
||||
auto BoatPtr = Boat.get();
|
||||
if (!BoatPtr->Initialize(std::move(Boat), *this))
|
||||
{
|
||||
@@ -2320,9 +2320,9 @@ UInt32 cWorld::SpawnBoat(double a_X, double a_Y, double a_Z, cBoat::eMaterial a_
|
||||
|
||||
|
||||
|
||||
UInt32 cWorld::SpawnPrimedTNT(double a_X, double a_Y, double a_Z, int a_FuseTicks, double a_InitialVelocityCoeff)
|
||||
UInt32 cWorld::SpawnPrimedTNT(Vector3d a_Pos, int a_FuseTicks, double a_InitialVelocityCoeff)
|
||||
{
|
||||
auto TNT = cpp14::make_unique<cTNTEntity>(a_X, a_Y, a_Z, a_FuseTicks);
|
||||
auto TNT = cpp14::make_unique<cTNTEntity>(a_Pos, a_FuseTicks);
|
||||
auto TNTPtr = TNT.get();
|
||||
if (!TNTPtr->Initialize(std::move(TNT), *this))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user