Applies Wu Hao's patch for 2.5D