Some Code Corrections

  • Hello, Corrections of some syntax error made by Ymir;


    cmd_general.cpp Find:

    Replace:

    Dungeon.cpp Find:

    Code
    1. float CDungeon::GetUniqueHpPerc(const std::string& key)
    2. {
    3. TUniqueMobMap::iterator it = m_map_UniqueMob.find(key);
    4. if (it == m_map_UniqueMob.end())
    5. {
    6. sys_err("Unknown Key : %s", key.c_str());
    7. return false;
    8. }
    9. return (100.f*it->second->GetHP())/it->second->GetMaxHP();
    10. }

    Replace:

    Code
    1. float CDungeon::GetUniqueHpPerc(const std::string& key)
    2. {
    3. TUniqueMobMap::iterator it = m_map_UniqueMob.find(key);
    4. if (it == m_map_UniqueMob.end())
    5. {
    6. sys_err("Unknown Key : %s", key.c_str());
    7. return 0.0f;
    8. }
    9. return (100.f*it->second->GetHP())/it->second->GetMaxHP();
    10. }

    ClientManager.cpp Find:

    Code
    1. if (!dwSkillVnum > 120)

    Replace:

    Code
    1. if (dwSkillVnum > 120)

    Best Regards,

    0x0