Issue information

Issue ID
#1487
Status
Fixed
Severity
None
Started
Hercules Elf Bot
May 10, 2008 9:56
Last Post
Hercules Elf Bot
May 10, 2008 9:56
Confirmation
N/A

Hercules Elf Bot - May 10, 2008 9:56

Originally posted by [b]Inkfish[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=1487

I think as described in the atcommand.c, the viewpoints ought to clear itself after 5 sec.
It's working fine with 12431 and bad with 12687.

not important but still bug, right?
CODE
int atshowmobs_timer(int tid, unsigned int tick, int id, int data)
{
    struct map_session_data* sd = map_id2sd(id);
    if( sd == NULL )
        return 0;

    clif_viewpoint(sd, 1, 2, 0, 0, data, 0xFFFFFF);
    return 1;
}

to
CODE
int atshowmobs_timer(int tid, unsigned int tick, int id, int data)
{
    struct map_session_data *sd;

    if (!session[id] || (sd = session[id]->session_data) == NULL)
        return 0;

    clif_viewpoint(sd, 1, 2, 0, 0, data, 0xFFFFFF);
    return 1;
}


This post has been edited by Inkfish: May 10 2008, 03:13 AM