… | |
… | |
705 | uint16 smoothface; |
705 | uint16 smoothface; |
706 | |
706 | |
707 | /* If we can't find a face, return and set it so we won't try to send this |
707 | /* If we can't find a face, return and set it so we won't try to send this |
708 | * again. |
708 | * again. |
709 | */ |
709 | */ |
710 | if ((!FindSmooth (face, &smoothface)) && (!FindSmooth (smooth_face->number, &smoothface))) |
710 | if (!FindSmooth (face, &smoothface)) |
711 | { |
711 | { |
712 | |
712 | |
713 | LOG (llevError, "could not findsmooth for %d. Neither default (%s)\n", face, &smooth_face->name); |
713 | LOG (llevError, "could not findsmooth for %d.\n", face); |
714 | ns->faces_sent[face] |= NS_FACESENT_SMOOTH; |
714 | ns->faces_sent[face] |= NS_FACESENT_SMOOTH; |
715 | return; |
715 | return; |
716 | } |
716 | } |
717 | |
717 | |
718 | if (!(ns->faces_sent[smoothface] & NS_FACESENT_FACE)) |
718 | if (!(ns->faces_sent[smoothface] & NS_FACESENT_FACE)) |
… | |
… | |
726 | << uint16 (smoothface); |
726 | << uint16 (smoothface); |
727 | |
727 | |
728 | ns->send_packet (sl); |
728 | ns->send_packet (sl); |
729 | } |
729 | } |
730 | |
730 | |
731 | /** |
731 | /** |
732 | * Tells client the picture it has to use |
732 | * Tells client the picture it has to use |
733 | * to smooth a picture number given as argument. |
733 | * to smooth a picture number given as argument. |
734 | */ |
734 | */ |
735 | void |
735 | void |
736 | AskSmooth (char *buf, int len, client *ns) |
736 | AskSmooth (char *buf, int len, client *ns) |
737 | { |
737 | { |
738 | SendSmooth (ns, atoi (buf)); |
738 | SendSmooth (ns, atoi (buf)); |
739 | } |
739 | } |