Remove parachute early if hog is inside land
Fixes a bug: When you used parachute right after using a parachute to dig inside land, you might become stuck. Reported here: https://hedgewars.org/node/9035
use std::io::{ Error, ErrorKind };
use super::PhysFSContext;
pub fn physfs_error_as_io_error() -> Error {
Error::new(ErrorKind::Other,
&format!("PhysicsFS Error: `{}`", PhysFSContext::get_last_error())[..])
}