rem: } while (TTotal -= TDelta && (!Task_ReadState (task, TASK_EXIT)));
add: } while ((TTotal -= TDelta) && (!Task_ReadState (task, TASK_EXIT)));
context: xform_clut_task (void *data){	SIZE TDelta, TTotal;	DWORD CurTime;	Task task = (Task)data;	XForming = TRUE;	while (TaskControl.tc.XFormTask == 0 && (!Task_ReadState (task, TASK_EXIT)))		TaskSwitch ();	TTotal = TaskControl.Ticks;	TaskControl.tc.XFormTask = 0;	{		CurTime = GetTimeCounter ();		do		{			DWORD StartTime;			StartTime = CurTime;			SleepThreadUntil (CurTime + 2);			CurTime = GetTimeCounter ();			if (!XForming || (TDelta = (SIZE)(CurTime - StartTime)) > TTotal)				TDelta = TTotal;			FadeAmount += (end - FadeAmount) * TDelta / TTotal;			//fprintf (stderr, "xform_clut_task FadeAmount %d\n", FadeAmount);		} while (TTotal -= TDelta && (!Task_ReadState (task, TASK_EXIT)));	}	XForming = FALSE;	FinishTask (task);	return 0;}