Changed the camera thing a bit (sorta fixed issue #9)
parent
ec440eb08c
commit
ab1362e02c
|
@ -117,7 +117,7 @@ minetest.register_entity("__builtin:item", {
|
||||||
local playerfound = false
|
local playerfound = false
|
||||||
for k, obj in pairs(objs2) do
|
for k, obj in pairs(objs2) do
|
||||||
local objpos=obj:getpos()
|
local objpos=obj:getpos()
|
||||||
self.object:setacceleration({x=0, y=-10, z=0})
|
--self.object:setacceleration({x=0, y=-10, z=0})
|
||||||
if obj:get_player_name() ~= nil and objpos.y >= pos.y-1.25 and objpos.y <= pos.y+.25 then
|
if obj:get_player_name() ~= nil and objpos.y >= pos.y-1.25 and objpos.y <= pos.y+.25 then
|
||||||
playerfound = true
|
playerfound = true
|
||||||
if self.dontbugme == false then
|
if self.dontbugme == false then
|
||||||
|
|
|
@ -46,7 +46,8 @@ Player::Player(IGameDef *gamedef):
|
||||||
hp(PLAYER_MAX_HP),
|
hp(PLAYER_MAX_HP),
|
||||||
hurt_tilt_timer(0),
|
hurt_tilt_timer(0),
|
||||||
hurt_tilt_timer_max(0),
|
hurt_tilt_timer_max(0),
|
||||||
sprinting_timer(0.0),
|
// For now this hack will work
|
||||||
|
sprinting_timer(2.9999),
|
||||||
enable_sprinting_timer(0),
|
enable_sprinting_timer(0),
|
||||||
enable_flying_timer(0),
|
enable_flying_timer(0),
|
||||||
hunger(PLAYER_MAX_HUNGER),
|
hunger(PLAYER_MAX_HUNGER),
|
||||||
|
|
Loading…
Reference in New Issue