diff --git a/control.lua b/control.lua index cfaf765..d5c7e48 100755 --- a/control.lua +++ b/control.lua @@ -140,7 +140,7 @@ function steampunk_blimp.buoyancy_auto_correction(self, dtime) if self._baloon_buoyancy > 0 then factor = -1 end local time_correction = (dtime/steampunk_blimp.ideal_step) local intensity = 0.2 - local correction = (intensity*factor) * time_correction + local correction = (intensity*factor) * math.max(time_correction, steampunk_blimp.ideal_step) --minetest.chat_send_player(self.driver_name, correction) local before_correction = self._baloon_buoyancy local new_baloon_buoyancy = self._baloon_buoyancy + correction diff --git a/forms.lua b/forms.lua index 6627957..b344a65 100755 --- a/forms.lua +++ b/forms.lua @@ -199,7 +199,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) if fields.take_control == "true" then if ent.driver_name == nil or ent.driver_name == "" then ent._at_control = true - for i = 5,1,-1 + for i = steampunk_blimp.max_seats,1,-1 do if ent._passengers[i] == name then ent._passengers_base_pos[i] = vector.new(steampunk_blimp.pilot_base_pos)