The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => Technical Issues => Topic started by: Robert Murphy on December 02, 2002, 08:58:25 am



Title: Laser Clipping Problems
Post by: Robert Murphy on December 02, 2002, 08:58:25 am
Howdy! First of all this is a great port! Thanks for your hard work!

I don't know if someone else has mentioned this (possibly before the forum went down) but I have noticed that during combat whenever a laser weapon (point defense, Arilou, Vux etc.) is used near the far right edge of the combat screen the laser blits one extra pixel. I have a hack/fix for this in the
line_blt function in the 3do_blt.c file by inserting the following code right after line 227:

if(x1 >= _pCurContext->ClipRect.extent.width){x1=_pCurContext->ClipRect.extent.width-1;}

if(x2 >= _pCurContext->ClipRect.extent.width)
{x2 = _pCurContext->ClipRect.extent.width-1;}

I know this isn't elegant but it seems to fix the problem. Perhaps the there is an issue with the blit rectangle for the display on the left hand side of the screen..

hope this helps,
Rob.