viewing paste Unknown #6451 | C

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
void clif_authok(struct map_session_data *sd)
{
#if PACKETVER < 20080102
        const int cmd = 0x73;
#else
        const int cmd = 0x2eb;
#endif
        int fd = sd->fd;
 
        WFIFOHEAD(fd,packet_len(cmd));
        WFIFOW(fd, 0) = cmd;
        WFIFOL(fd, 2) = gettick();
        WFIFOPOS(fd, 6, sd->bl.x, sd->bl.y, sd->ud.dir);
        WFIFOB(fd, 9) = 5; // ignored
        WFIFOB(fd,10) = 5; // ignored
#if PACKETVER >= 20080102
        WFIFOW(fd,11) = sd->user_font;  // FIXME: Font is currently not saved.
#endif
        WFIFOSET(fd,packet_len(cmd));
}
 
Viewed 277 times, submitted by unknown.