1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

old water removed, some fixes here and there

This commit is contained in:
Perttu Ahola 2011-01-17 14:57:37 +02:00
parent bd26be262d
commit 0fa0e0752a
19 changed files with 276 additions and 277 deletions

View file

@ -223,8 +223,10 @@ void LocalPlayer::move(f32 dtime, Map &map)
position += m_speed * dtime;
bool haxmode = g_settings.getBool("haxmode");
// Skip collision detection if player is non-local
if(isLocal() == false || HAXMODE)
if(isLocal() == false || haxmode)
{
setPosition(position);
return;
@ -389,7 +391,9 @@ void LocalPlayer::applyControl(float dtime)
v3f speed = v3f(0,0,0);
if(HAXMODE)
bool haxmode = g_settings.getBool("haxmode");
if(haxmode)
{
v3f speed = getSpeed();
speed.Y = 0;
@ -400,7 +404,7 @@ void LocalPlayer::applyControl(float dtime)
bool superspeed = false;
if(control.superspeed)
{
if(HAXMODE)
if(haxmode)
{
v3f speed = getSpeed();
speed.Y = -20*BS;
@ -413,7 +417,7 @@ void LocalPlayer::applyControl(float dtime)
}
}
if(HAXMODE)
if(haxmode)
superspeed = true;
if(control.up)
@ -434,7 +438,7 @@ void LocalPlayer::applyControl(float dtime)
}
if(control.jump)
{
if(HAXMODE)
if(haxmode)
{
v3f speed = getSpeed();
/*speed.Y += 20.*BS * dtime * 2;
@ -465,7 +469,7 @@ void LocalPlayer::applyControl(float dtime)
f32 inc = walk_acceleration * BS * dtime;
if(HAXMODE)
if(haxmode)
inc = walk_acceleration * BS * dtime * 10;
// Accelerate to target speed with maximum increment