Show
Ignore:
Timestamp:
11/19/08 13:48:46 (17 years ago)
Author:
yumileroy
Message:

[svn] *** Source: MaNGOS ***
* Implement localization of creature/gameobject name that say/yell. Author: evilstar (rewrited by: Vladimir)
* Fix auth login queue. Author: Derex
* Allowed switching INVTYPE_HOLDABLE items during combat, used correct spells for triggering global cooldown at weapon switch. Author: mobel/simak
* Fixed some format arg type/value pairs. Other warnings. Author: Vladimir
* [238_world.sql] Allow have team dependent graveyards at entrance map for instances. Author: Vladimir

NOTE:
Entrance map graveyards selected by same way as local (by distance from entrance) Until DB support will work in old way base at current DB data.

Original author: visagalis
Date: 2008-11-14 17:03:03-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/GameObject.cpp

    r229 r230  
    12861286    //trigger->RemoveCorpse(); 
    12871287} 
     1288 
     1289// overwrite WorldObject function for proper name localization 
     1290const char* GameObject::GetNameForLocaleIdx(int32 loc_idx) const 
     1291{ 
     1292    if (loc_idx >= 0) 
     1293    { 
     1294        GameObjectLocale const *cl = objmgr.GetGameObjectLocale(GetEntry()); 
     1295        if (cl) 
     1296        { 
     1297            if (cl->Name.size() > loc_idx && !cl->Name[loc_idx].empty()) 
     1298                return cl->Name[loc_idx].c_str(); 
     1299        } 
     1300    } 
     1301 
     1302    return GetName(); 
     1303}