Two lines...not quite worth a whole new download, as I bet the parent ID still isn't set yet.
This fixes all distortion...I believe.
ors.vc
Incrementing across the X axis [inner loop]
Comment out/delete lines 82-83.
Before the SetPixel line, add:
if (srcX<0) srcX=width<<8+(srcX%(width<<8));
if (srcY<0) srcY=height<<8+(srcY%(height<<8));
Comment out lines 60-61.
Fixing distance divide by zero and integer truncation
At line 36 [compute distance], delete and add:
distance = Mode7_spaceY>>2*(Mode7_scaleY>>2)>>4 / (desty+Mode7_horizon);
if (distance == 0)
{
distance = Mode7_spaceY>>2*(Mode7_scaleY>>2)>>4 / (desty+Mode7_horizon+1);
}