diff options
Diffstat (limited to 'source/Entities/Boat.cpp')
-rw-r--r-- | source/Entities/Boat.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/source/Entities/Boat.cpp b/source/Entities/Boat.cpp index eebd3a373..56e766dd4 100644 --- a/source/Entities/Boat.cpp +++ b/source/Entities/Boat.cpp @@ -2,7 +2,6 @@ // Boat.cpp // Implements the cBoat class representing a boat in the world -// Pirates of the Carribean! #include "Globals.h" #include "Boat.h" @@ -27,7 +26,7 @@ cBoat::cBoat(double a_X, double a_Y, double a_Z) : void cBoat::SpawnOn(cClientHandle & a_ClientHandle) { - a_ClientHandle.SendSpawnVehicle(*this, 1, 0); + a_ClientHandle.SendSpawnVehicle(*this, 1); } @@ -65,11 +64,11 @@ void cBoat::OnRightClicked(cPlayer & a_Player) return; } - // Detach whatever is sitting in this minecart now: + // Detach whatever is sitting in this boat now: m_Attachee->Detach(); } - // Attach the player to this minecart + // Attach the player to this boat a_Player.AttachTo(this); } @@ -82,3 +81,7 @@ void cBoat::HandlePhysics(float a_Dt, cChunk & a_Chunk) super::HandlePhysics(a_Dt, a_Chunk); BroadcastMovementUpdate(); } + + + + |