A fork of The Ur-Quan Masters + HD-mod that remasters the HD graphics with a veritable smorgasbord of extra features, options, QoL improvements, and much more...
if (task == FLEE && !stillInSystemWhileFleeing (GroupPtr->loc))
goto CheckGetAway;
where stillInSystemWhileFleeing (POINT ip_loc) is a new function:
static BOOLEAN
stillInSystemWhileFleeing (POINT ip_loc)
{
if (ip_loc.x > -20000 && ip_loc.x < 20000 && ip_loc.y > -20000 && ip_loc.y < 20000)// system ip_location coords
return TRUE;// ip_coords are from -18000 to 18000
// expanded to 20000, this prevents some ships to pop out of existense
// when they are barely touching screen edge
// so ship sprite will leave system smoothly
return FALSE;
}
I changed condition to this
where
stillInSystemWhileFleeing (POINT ip_loc)
is a new function: