ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!
void CHARACTER::StateMove()
{
DWORD dwElapsedTime = get_dword_time() - m_dwMoveStartTime;
float fRate = (float) dwElapsedTime / (float) m_dwMoveDuration;
#ifdef WJ_ENABLE_CTRL_G_LOGOUT_FIX
if (fRate > 1.0f)
fRate = 1.0f;
else if (isnan(fRate))
fRate = 1.0f;
#else
if (fRate > 1.0f)
fRate = 1.0f;
#endif
bool CHARACTER::Sync(long x, long y)
{
if (!GetSectree())
return false;
LPSECTREE new_tree = SECTREE_MANAGER::instance().Get(GetMapIndex(), x, y);
if (!new_tree)
{
#ifdef WJ_ENABLE_CTRL_G_LOGOUT_FIX
if (GetDesc())
{
sys_err("cannot find tree at %d %d (name: %s) - resetting to current position", x, y, GetName());
Show(GetMapIndex(), GetX(), GetY(), GetZ());
Stop();
}
else
{
sys_err("no tree: %s %d %d %d", GetName(), x, y, GetMapIndex());
Dead();
}
return false;
#else
if (GetDesc())
{
sys_err("cannot find tree at %d %d (name: %s)", x, y, GetName());
GetDesc()->SetPhase(PHASE_CLOSE);
}
else
{
sys_err("no tree: %s %d %d %d", GetName(), x, y, GetMapIndex());
Dead();
}
return false;
#endif
}