Originally posted by [b]JoWei[/b] Confirmed crash. Reverting to 16326, fixes the issue.
Hercules Elf Bot - Jun 21, 2012 12:59
Originally posted by [b]wend[/b] change this in unit.c:
[CODE] if( sd->md && !check_distance_bl(&sd->bl, &sd->md->bl, MAX_MER_DISTANCE) )
{
// mercenary should be warped after being 3 seconds too far from the master [greenbox]
if (sd->md->masterteleport_timer == 0)
{
sd->md->masterteleport_timer = gettick();
}
else if (DIFF_TICK(gettick(), sd->md->masterteleport_timer) > 3000)
{
sd->md->masterteleport_timer = 0;
unit_warp( &sd->md->bl, sd->bl.m, sd->bl.x, sd->bl.y, CLR_TELEPORT );
}
}
else
{
// reset the tick, he is not far anymore
sd->md->masterteleport_timer = 0;
}[/CODE]
to:
[CODE] if (sd->md) {
if( !check_distance_bl(&sd->bl, &sd->md->bl, MAX_MER_DISTANCE) )
{
// mercenary should be warped after being 3 seconds too far from the master [greenbox]
if (sd->md->masterteleport_timer == 0)
{
sd->md->masterteleport_timer = gettick();
}
else if (DIFF_TICK(gettick(), sd->md->masterteleport_timer) > 3000)
{
sd->md->masterteleport_timer = 0;
unit_warp( &sd->md->bl, sd->bl.m, sd->bl.x, sd->bl.y, CLR_TELEPORT );
}
}
else
{
// reset the tick, he is not far anymore
sd->md->masterteleport_timer = 0;
}
}[/CODE]
This post has been edited by
wend
on Jun 21, 2012 13:13
Hercules Elf Bot - Jun 21, 2012 16:10
Originally posted by [b]GreenBox[/b] Fixed in [rev=16328], sorry about that