I'm stuck...

Blitz3D Forums/Blitz3D Programming/I'm stuck...

Thanks Stevie.

All I had to do was change
seg=tdim


to
seg=tdim-1


It appears to be working correctly now. :)