diff options
author | keyboard.osh@gmail.com <keyboard.osh@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-23 05:33:47 +0100 |
---|---|---|
committer | keyboard.osh@gmail.com <keyboard.osh@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-23 05:33:47 +0100 |
commit | b32a60106f78971da034a457cd091c7e69c5aec8 (patch) | |
tree | 1fb5812b28db43b28e1d42c455502665008d8efa /source/FallingBlock.cpp | |
parent | Re-tweaked WormNestCaves for more reasonable cave sizes (diff) | |
download | cuberite-b32a60106f78971da034a457cd091c7e69c5aec8.tar cuberite-b32a60106f78971da034a457cd091c7e69c5aec8.tar.gz cuberite-b32a60106f78971da034a457cd091c7e69c5aec8.tar.bz2 cuberite-b32a60106f78971da034a457cd091c7e69c5aec8.tar.lz cuberite-b32a60106f78971da034a457cd091c7e69c5aec8.tar.xz cuberite-b32a60106f78971da034a457cd091c7e69c5aec8.tar.zst cuberite-b32a60106f78971da034a457cd091c7e69c5aec8.zip |
Diffstat (limited to '')
-rw-r--r-- | source/FallingBlock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/FallingBlock.cpp b/source/FallingBlock.cpp index 9fbf498e2..5edae6283 100644 --- a/source/FallingBlock.cpp +++ b/source/FallingBlock.cpp @@ -43,8 +43,8 @@ void cFallingBlock::SpawnOn(cClientHandle & a_ClientHandle) void cFallingBlock::Tick(float a_Dt, MTRand & a_TickRandom)
{
float MilliDt = a_Dt * 0.001f;
- SetSpeedY(GetSpeedY() - (MilliDt * 9.8f));
- SetPosY(GetPosY() + (GetSpeedY() * MilliDt));
+ AddSpeedY(MilliDt * -9.8f);
+ AddPosY(GetSpeedY() * MilliDt);
// GetWorld()->BroadcastTeleportEntity(*this); // Test position
|