Changed the camera thing a bit (sorta fixed issue #9)

master
Joel Leclerc 2012-05-12 20:24:58 -06:00
parent ec440eb08c
commit ab1362e02c
2 changed files with 3 additions and 2 deletions

View File

@ -117,7 +117,7 @@ minetest.register_entity("__builtin:item", {
local playerfound = false
for k, obj in pairs(objs2) do
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
playerfound = true
if self.dontbugme == false then

View File

@ -46,7 +46,8 @@ Player::Player(IGameDef *gamedef):
hp(PLAYER_MAX_HP),
hurt_tilt_timer(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_flying_timer(0),
hunger(PLAYER_MAX_HUNGER),