Update framework due to API changes

This commit is contained in:
David Leal 2020-11-16 20:46:10 -06:00
parent cf6ad14c86
commit 8935e1ce05
No known key found for this signature in database
GPG Key ID: 3C482B03FD220E68

View File

@ -26,6 +26,7 @@ function vehicle_mash.register_vehicle(name, def)
passenger3_eye_offset = def.passenger3_eye_offset,
passenger3_detach_pos_offset = def.passenger3_detach_pos_offset,
enable_crash = def.enable_crash or true,
visual = def.visual,
mesh = def.mesh,
textures = def.textures,
@ -139,7 +140,7 @@ function vehicle_mash.register_vehicle(name, def)
end
end,
on_step = function(self, dtime)
drive(self, dtime, false, nil, nil, 0, def.can_fly, def.can_go_down, def.can_go_up)
drive(self, dtime, false, nil, nil, 0, def.can_fly, def.can_go_down, def.can_go_up, def.enable_crash)
end
})