Example #1
0
TNORMAL *Copy_Tnormal (const TNORMAL *Old)
{
	TNORMAL *New;

	if (Old != NULL)
	{
		New = Create_Tnormal();

		Copy_TPat_Fields ((TPATTERN *)New, (const TPATTERN *)Old);

		New->Amount = Old->Amount;
		New->Delta = Old->Delta;
	}
	else
	{
		New = NULL;
	}

	return (New);
}
Example #2
0
TNORMAL *Copy_Tnormal (TNORMAL *Old)
{
    TNORMAL *New;

    if (Old != NULL)
    {
        New = Create_Tnormal();

        Copy_TPat_Fields (New, Old);
        New->Blend_Map = Copy_Blend_Map(Old->Blend_Map);

        New->Amount = Old->Amount;
        New->Delta = Old->Delta;
    }
    else
    {
        New = NULL;
    }

    return (New);
}