Changeset 230

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

Location:
trunk
Files:
1 added
30 modified

Legend:

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

    r102 r230  
    12851285    if(!cr) 
    12861286    { 
    1287         sLog.outError("Can't find creature guid: %u",m_BgCreatures[type]); 
     1287        sLog.outError("Can't find creature guid: %u",GUID_LOPART(m_BgCreatures[type])); 
    12881288        return false; 
    12891289    } 
     
    12991299    if(!obj) 
    13001300    { 
    1301         sLog.outError("Can't find gobject guid: %u",m_BgObjects[type]); 
     1301        sLog.outError("Can't find gobject guid: %u",GUID_LOPART(m_BgObjects[type])); 
    13021302        return false; 
    13031303    } 
  • trunk/src/game/BattleGroundBE.cpp

    r102 r230  
    121121} 
    122122 
    123 void BattleGroundBE::RemovePlayer(Player *plr, uint64 guid) 
     123void BattleGroundBE::RemovePlayer(Player* /*plr*/, uint64 /*guid*/) 
    124124{ 
    125125    if(GetStatus() == STATUS_WAIT_LEAVE) 
  • trunk/src/game/BattleGroundEY.cpp

    r102 r230  
    575575        obj->Delete(); 
    576576    else 
    577         sLog.outError("BattleGroundEY: Unknown dropped flag guid: %u",GetDroppedFlagGUID()); 
     577        sLog.outError("BattleGroundEY: Unknown dropped flag guid: %u",GUID_LOPART(GetDroppedFlagGUID())); 
    578578 
    579579    SetDroppedFlagGUID(0); 
     
    770770    sg = sWorldSafeLocsStore.LookupEntry(m_CapturingPointTypes[Point].GraveYardId); 
    771771    if(!sg || !AddSpiritGuide(Point, sg->x, sg->y, sg->z, 3.124139f, Team)) 
    772         sLog.outError("BatteGroundEY: Failed to spawn spirit guide! point: %u, team: u, graveyard_id: %u", Point, Team, m_CapturingPointTypes[Point].GraveYardId); 
     772        sLog.outError("BatteGroundEY: Failed to spawn spirit guide! point: %u, team: %u, graveyard_id: %u", 
     773            Point, Team, m_CapturingPointTypes[Point].GraveYardId); 
    773774 
    774775    UpdatePointsIcons(Team, Point); 
  • trunk/src/game/BattleGroundMgr.cpp

    r229 r230  
    867867/*********************************************************/ 
    868868 
    869 bool BGQueueInviteEvent::Execute(uint64 /*e_time*/, uint32 p_time) 
     869bool BGQueueInviteEvent::Execute(uint64 /*e_time*/, uint32 /*p_time*/) 
    870870{ 
    871871    Player* plr = objmgr.GetPlayer( m_PlayerGuid ); 
  • trunk/src/game/BattleGroundRL.cpp

    r102 r230  
    119119} 
    120120 
    121 void BattleGroundRL::RemovePlayer(Player *plr, uint64 guid) 
     121void BattleGroundRL::RemovePlayer(Player* /*plr*/, uint64 /*guid*/) 
    122122{ 
    123123    if(GetStatus() == STATUS_WAIT_LEAVE) 
  • trunk/src/game/BattleGroundWS.cpp

    r102 r230  
    230230        obj->Delete(); 
    231231    else 
    232         sLog.outError("unknown droped flag bg, guid: %u",GetDroppedFlagGUID(team)); 
     232        sLog.outError("unknown droped flag bg, guid: %u",GUID_LOPART(GetDroppedFlagGUID(team))); 
    233233 
    234234    SetDroppedFlagGUID(0,team); 
  • trunk/src/game/CharacterHandler.cpp

    r173 r230  
    754754 
    755755    std::string IP_str = GetRemoteAddress(); 
    756     sLog.outChar("Account: %d (IP: %s) Login Character:[%s] (guid:%u)",GetAccountId(),IP_str.c_str(),pCurrChar->GetName() ,pCurrChar->GetGUID()); 
     756    sLog.outChar("Account: %d (IP: %s) Login Character:[%s] (guid:%u)", 
     757        GetAccountId(),IP_str.c_str(),pCurrChar->GetName() ,pCurrChar->GetGUIDLow()); 
    757758 
    758759    m_playerLoading = false; 
  • trunk/src/game/Corpse.cpp

    r102 r230  
    8282    if(!IsPositionValid()) 
    8383    { 
    84         sLog.outError("ERROR: Corpse (guidlow %d, owner %s) not created. Suggested coordinates isn't valid (X: %d Y: ^%d)",guidlow,owner->GetName(),x,y); 
     84        sLog.outError("ERROR: Corpse (guidlow %d, owner %s) not created. Suggested coordinates isn't valid (X: %f Y: %f)", 
     85            guidlow,owner->GetName(),x,y); 
    8586        return false; 
    8687    } 
     
    199200    if(!IsPositionValid()) 
    200201    { 
    201         sLog.outError("ERROR: Corpse (guidlow %d, owner %d) not created. Suggested coordinates isn't valid (X: %d Y: ^%d)",GetGUIDLow(),GUID_LOPART(GetOwnerGUID()),GetPositionX(),GetPositionY()); 
     202        sLog.outError("ERROR: Corpse (guidlow %d, owner %d) not created. Suggested coordinates isn't valid (X: %f Y: %f)", 
     203            GetGUIDLow(),GUID_LOPART(GetOwnerGUID()),GetPositionX(),GetPositionY()); 
    202204        return false; 
    203205    } 
  • trunk/src/game/Creature.cpp

    r229 r230  
    21832183    return objmgr.GetNpcTrainerSpells(GetEntry()); 
    21842184} 
     2185 
     2186// overwrite WorldObject function for proper name localization 
     2187const char* Creature::GetNameForLocaleIdx(int32 loc_idx) const 
     2188{ 
     2189    if (loc_idx >= 0) 
     2190    { 
     2191        CreatureLocale const *cl = objmgr.GetCreatureLocale(GetEntry()); 
     2192        if (cl) 
     2193        { 
     2194            if (cl->Name.size() > loc_idx && !cl->Name[loc_idx].empty()) 
     2195                return cl->Name[loc_idx].c_str(); 
     2196        } 
     2197    } 
     2198 
     2199    return GetName(); 
     2200} 
  • trunk/src/game/Creature.h

    r186 r230  
    523523        void Whisper(int32 textId, uint64 receiver, bool IsBossWhisper = false) { MonsterWhisper(textId,receiver,IsBossWhisper); } 
    524524 
     525        // overwrite WorldObject function for proper name localization 
     526        const char* GetNameForLocaleIdx(int32 locale_idx) const; 
     527     
    525528        void setDeathState(DeathState s);                   // overwrite virtual Unit::setDeathState 
    526529 
  • 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} 
  • trunk/src/game/GameObject.h

    r145 r230  
    446446        void Whisper(int32 textId, uint64 receiver) { MonsterWhisper(textId,receiver); } 
    447447 
     448        // overwrite WorldObject function for proper name localization 
     449        const char* GetNameForLocaleIdx(int32 locale_idx) const; 
     450 
    448451        void SaveToDB(); 
    449452        void SaveToDB(uint32 mapid, uint8 spawnMask); 
  • trunk/src/game/ItemPrototype.h

    r229 r230  
    539539            case INVTYPE_RELIC: 
    540540            case INVTYPE_SHIELD: 
     541            case INVTYPE_HOLDABLE: 
    541542                return true; 
    542543        } 
  • trunk/src/game/Language.h

    r177 r230  
    389389    LANG_COMMAND_GRAVEYARDLINKED        = 451, 
    390390    LANG_COMMAND_GRAVEYARDWRONGZONE     = 452, 
    391     LANG_COMMAND_GRAVEYARDWRONGTEAM     = 453, 
     391    //                                  = 453, 
    392392    LANG_COMMAND_GRAVEYARDERROR         = 454, 
    393393    LANG_COMMAND_GRAVEYARD_NOTEAM       = 455, 
  • trunk/src/game/Level2.cpp

    r207 r230  
    28232823    uint32 Maxpoint; 
    28242824 
    2825     sLog.outDebug("DEBUG: HandleWpShowCommand: lowguid: %u", lowguid); 
    2826  
    2827     sLog.outDebug("DEBUG: HandleWpShowCommand: Habe creature: %ld", target ); 
    2828  
    2829     sLog.outDebug("DEBUG: HandleWpShowCommand: wpshow - show: %s", show_str); 
    2830     //PSendSysMessage("wpshow - show: %s", show); 
     2825    sLog.outDebug("DEBUG: HandleWpShowCommand: lowguid: %u show: %s", lowguid, show_str); 
    28312826 
    28322827    // Show info for the selected waypoint 
     
    28492844        QueryResult *result = 
    28502845            WorldDatabase.PQuery( "SELECT id, point, waittime, emote, spell, text1, text2, text3, text4, text5, model1, model2 FROM creature_movement WHERE wpguid = %u", 
    2851             target->GetGUID() ); 
     2846            target->GetGUIDLow() ); 
    28522847        if(!result) 
    28532848        { 
  • trunk/src/game/Level3.cpp

    r229 r230  
    35813581    } 
    35823582 
    3583     if(graveyard->map_id != areaEntry->mapid && g_team != 0) 
    3584     { 
    3585         SendSysMessage(LANG_COMMAND_GRAVEYARDWRONGTEAM); 
    3586         SetSentErrorMessage(true); 
    3587         return false; 
    3588     } 
    3589  
    35903583    if(objmgr.AddGraveYardLink(g_id,player->GetZoneId(),g_team)) 
    35913584        PSendSysMessage(LANG_COMMAND_GRAVEYARDLINKED, g_id,zoneId); 
  • trunk/src/game/LootMgr.cpp

    r229 r230  
    272272        if( chance != 0 && chance < 0.000001f )             // loot with low chance 
    273273        { 
    274             sLog.outErrorDb("Table '%s' entry %d item %d: low chance (%d) - skipped", store.GetName(), entry, itemid, chance); 
     274            sLog.outErrorDb("Table '%s' entry %d item %d: low chance (%f) - skipped", 
     275                store.GetName(), entry, itemid, chance); 
    275276            return false; 
    276277        } 
  • trunk/src/game/MiscHandler.cpp

    r229 r230  
    137137        wstrToLower(str[i]); 
    138138 
    139         sLog.outDebug("String %u: %s", i, str[i].c_str()); 
     139        sLog.outDebug("String %u: %s", i, temp.c_str()); 
    140140    } 
    141141 
  • trunk/src/game/MotionMaster.cpp

    r102 r230  
    189189    { 
    190190        DEBUG_LOG("Player (GUID: %u) chase to %s (GUID: %u)", 
     191            i_owner->GetGUIDLow(), 
    191192            target->GetTypeId()==TYPEID_PLAYER ? "player" : "creature", 
    192193            target->GetTypeId()==TYPEID_PLAYER ? i_owner->GetGUIDLow() : ((Creature*)i_owner)->GetDBTableGUIDLow() ); 
  • trunk/src/game/NPCHandler.cpp

    r221 r230  
    140140    if (!ci) 
    141141    { 
    142         sLog.outDebug( "WORLD: SendTrainerList - (%u) NO CREATUREINFO! (GUID: %u)", uint32(GUID_LOPART(guid)), guid ); 
     142        sLog.outDebug( "WORLD: SendTrainerList - (GUID: %u) NO CREATUREINFO!",GUID_LOPART(guid) ); 
    143143        return; 
    144144    } 
     
    147147    if(!trainer_spells) 
    148148    { 
    149         sLog.outDebug( "WORLD: SendTrainerList - Training spells not found for creature (GUID: %u Entry: %u)", guid, unit->GetEntry()); 
     149        sLog.outDebug( "WORLD: SendTrainerList - Training spells not found for creature (GUID: %u Entry: %u)", 
     150            GUID_LOPART(guid), unit->GetEntry()); 
    150151        return; 
    151152    } 
  • trunk/src/game/Object.cpp

    r203 r230  
    12811281 
    12821282                    // TODO: i_object.GetName() also must be localized? 
    1283                     i_object.BuildMonsterChat(data,i_msgtype,text,i_language,i_object.GetName(),i_targetGUID); 
     1283                    i_object.BuildMonsterChat(data,i_msgtype,text,i_language,i_object.GetNameForLocaleIdx(loc_idx),i_targetGUID); 
    12841284 
    12851285                    i_data_cache[cache_idx] = data; 
  • trunk/src/game/Object.h

    r221 r230  
    400400        void SetName(std::string newname) { m_name=newname; } 
    401401 
     402        virtual const char* GetNameForLocaleIdx(int32 /*locale_idx*/) const { return GetName(); } 
     403 
    402404        float GetDistance( const WorldObject* obj ) const; 
    403405        float GetDistance(const float x, const float y, const float z) const; 
  • trunk/src/game/ObjectMgr.cpp

    r229 r230  
    48284828        } 
    48294829 
    4830         if(entry->map_id != areaEntry->mapid && team != 0) 
    4831         { 
    4832             sLog.outErrorDb("Table `game_graveyard_zone` has record for ghost zone (%u) at map %u and graveyard (%u) at map %u for team %u, but in case maps are different, player faction setting is ignored. Use faction 0 instead.",zoneId,areaEntry->mapid, safeLocId, entry->map_id, team); 
    4833             team = 0; 
    4834         } 
    4835  
    48364830        if(!AddGraveYardLink(safeLocId,zoneId,team,false)) 
    48374831            sLog.outErrorDb("Table `game_graveyard_zone` has a duplicate record for Graveyard (ID: %u) and Zone (ID: %u), skipped.",safeLocId,zoneId); 
     
    48554849    //     then check faction 
    48564850    //   if mapId != graveyard.mapId (ghost in instance) and search any graveyard associated 
    4857     //     then skip check faction 
     4851    //     then check faction 
    48584852    GraveYardMap::const_iterator graveLow  = mGraveYardMap.lower_bound(zoneId); 
    48594853    GraveYardMap::const_iterator graveUp   = mGraveYardMap.upper_bound(zoneId); 
     
    48644858    } 
    48654859 
     4860    // at corpse map 
    48664861    bool foundNear = false; 
    48674862    float distNear; 
    48684863    WorldSafeLocsEntry const* entryNear = NULL; 
     4864 
     4865    // at entrance map for corpse map 
     4866    bool foundEntr = false; 
     4867    float distEntr; 
     4868    WorldSafeLocsEntry const* entryEntr = NULL; 
     4869 
     4870    // some where other 
    48694871    WorldSafeLocsEntry const* entryFar = NULL; 
     4872 
     4873    MapEntry const* mapEntry = sMapStore.LookupEntry(MapId); 
    48704874 
    48714875    for(GraveYardMap::const_iterator itr = graveLow; itr != graveUp; ++itr) 
     
    48804884        } 
    48814885 
    4882         // remember first graveyard at another map and ignore other 
    4883         if(MapId != entry->map_id) 
    4884         { 
    4885             if(!entryFar) 
    4886                 entryFar = entry; 
    4887             continue; 
    4888         } 
    4889  
    4890         // skip enemy faction graveyard at same map (normal area, city, or battleground) 
     4886        // skip enemy faction graveyard 
    48914887        // team == 0 case can be at call from .neargrave 
    48924888        if(data.team != 0 && team != 0 && data.team != team) 
    48934889            continue; 
    48944890 
     4891        // find now nearest graveyard at other map 
     4892        if(MapId != entry->map_id) 
     4893        { 
     4894            // if find graveyard at different map from where entrance placed (or no entrance data), use any first 
     4895            if (!mapEntry || mapEntry->entrance_map < 0 || mapEntry->entrance_map != entry->map_id || 
     4896                mapEntry->entrance_x == 0 && mapEntry->entrance_y == 0) 
     4897            { 
     4898                // not have any corrdinates for check distance anyway 
     4899                entryFar = entry; 
     4900                continue; 
     4901            } 
     4902 
     4903            // at entrance map calculate distance (2D); 
     4904            float dist2 = (entry->x - mapEntry->entrance_x)*(entry->x - mapEntry->entrance_x) 
     4905                +(entry->y - mapEntry->entrance_y)*(entry->y - mapEntry->entrance_y); 
     4906            if(foundEntr) 
     4907            { 
     4908                if(dist2 < distEntr) 
     4909                { 
     4910                    distEntr = dist2; 
     4911                    entryEntr = entry; 
     4912                } 
     4913            } 
     4914            else 
     4915            { 
     4916                foundEntr = true; 
     4917                distEntr = dist2; 
     4918                entryEntr = entry; 
     4919            } 
     4920        } 
    48954921        // find now nearest graveyard at same map 
    4896         float dist2 = (entry->x - x)*(entry->x - x)+(entry->y - y)*(entry->y - y)+(entry->z - z)*(entry->z - z); 
    4897         if(foundNear) 
    4898         { 
    4899             if(dist2 < distNear) 
    4900             { 
     4922        else 
     4923        { 
     4924            float dist2 = (entry->x - x)*(entry->x - x)+(entry->y - y)*(entry->y - y)+(entry->z - z)*(entry->z - z); 
     4925            if(foundNear) 
     4926            { 
     4927                if(dist2 < distNear) 
     4928                { 
     4929                    distNear = dist2; 
     4930                    entryNear = entry; 
     4931                } 
     4932            } 
     4933            else 
     4934            { 
     4935                foundNear = true; 
    49014936                distNear = dist2; 
    49024937                entryNear = entry; 
    49034938            } 
    49044939        } 
    4905         else 
    4906         { 
    4907             foundNear = true; 
    4908             distNear = dist2; 
    4909             entryNear = entry; 
    4910         } 
    4911     } 
    4912  
     4940    } 
     4941 
     4942            // find now nearest graveyard at same map 
    49134943    if(entryNear) 
    49144944        return entryNear; 
     4945 
     4946    if(entryEntr) 
     4947        return entryEntr; 
    49154948 
    49164949    return entryFar; 
     
    51325165    for (AreaTriggerMap::const_iterator itr = mAreaTriggers.begin(); itr != mAreaTriggers.end(); itr++) 
    51335166    { 
    5134         if(itr->second.target_mapId == mapEntry->parent_map) 
     5167        if(itr->second.target_mapId == mapEntry->entrance_map) 
    51355168        { 
    51365169            AreaTriggerEntry const* atEntry = sAreaTriggerStore.LookupEntry(itr->first); 
  • trunk/src/game/Player.cpp

    r229 r230  
    1025710257                if(pProto && isInCombat()&& pProto->Class == ITEM_CLASS_WEAPON && m_weaponChangeTimer == 0) 
    1025810258                { 
    10259                     m_weaponChangeTimer = DEFAULT_SWITCH_WEAPON; 
     10259                    uint32 cooldownSpell = SPELL_ID_WEAPON_SWITCH_COOLDOWN_1_5s; 
     10260 
    1026010261                    if (getClass() == CLASS_ROGUE) 
    10261                         m_weaponChangeTimer = ROGUE_SWITCH_WEAPON; 
     10262                        cooldownSpell = SPELL_ID_WEAPON_SWITCH_COOLDOWN_1_0s; 
     10263 
     10264                    SpellEntry const* spellProto = sSpellStore.LookupEntry(cooldownSpell); 
     10265 
     10266                    if (!spellProto) 
     10267                        sLog.outError("Weapon switch cooldown spell %u couldn't be found in Spell.dbc", cooldownSpell); 
     10268                    else 
     10269                    { 
     10270                        m_weaponChangeTimer = spellProto->StartRecoveryTime; 
     10271 
     10272                        WorldPacket data(SMSG_SPELL_COOLDOWN, 8+1+4); 
     10273                        data << uint64(GetGUID()); 
     10274                        data << uint8(1); 
     10275                        data << uint32(cooldownSpell); 
     10276                        data << uint32(0); 
     10277                        GetSession()->SendPacket(&data); 
     10278                    } 
    1026210279                } 
    1026310280            } 
  • trunk/src/game/Player.h

    r229 r230  
    681681typedef std::vector<ItemPosCount> ItemPosCountVec; 
    682682 
    683 enum SwitchWeapon 
    684 { 
    685     DEFAULT_SWITCH_WEAPON       = 1500,                     //cooldown in ms 
    686     ROGUE_SWITCH_WEAPON         = 1000 
    687 }; 
    688  
    689683enum TradeSlots 
    690684{ 
  • trunk/src/game/SharedDefines.h

    r229 r230  
    19041904#define SPELL_ID_PASSIVE_BATTLE_STANCE           2457 
    19051905#define SPELL_ID_PASSIVE_RESURRECTION_SICKNESS   15007 
     1906#define SPELL_ID_WEAPON_SWITCH_COOLDOWN_1_5s     6119 
     1907#define SPELL_ID_WEAPON_SWITCH_COOLDOWN_1_0s     6123 
    19061908 
    19071909enum WeatherType 
  • trunk/src/game/World.cpp

    r229 r230  
    203203    } 
    204204 
    205     WorldSession* old = m_sessions[s->GetAccountId ()]; 
    206     m_sessions[s->GetAccountId ()] = s; 
    207  
    208205    // if session already exist, prepare to it deleting at next world update 
    209206    // NOTE - KickPlayer() should be called on "old" in RemoveSession() 
    210     if (old) 
    211         m_kicked_sessions.insert (old); 
     207    { 
     208      SessionMap::const_iterator old = m_sessions.find(s->GetAccountId ()); 
     209 
     210      if(old != m_sessions.end()) 
     211        m_kicked_sessions.insert (old->second); 
     212    } 
     213 
     214    m_sessions[s->GetAccountId ()] = s; 
    212215 
    213216    uint32 Sessions = GetActiveAndQueuedSessionCount (); 
     
    292295        if(*iter==sess) 
    293296        { 
    294             Queue::iterator iter2 = iter; 
    295             ++iter; 
    296             m_QueuedPlayer.erase(iter2); 
     297            iter = m_QueuedPlayer.erase(iter); 
    297298            decrease_session = false;                       // removing queued session 
    298299            break; 
  • trunk/src/shared/Database/DBCStructure.h

    r102 r230  
    465465    //chat*     unknownText2                                // 100-115 unknown empty text fields 
    466466                                                            // 116 text flags 
    467     int32       parent_map;                                 // 117 map_id of parent map 
    468     //float start_x                                         // 118 enter x coordinate (if exist single entry) 
    469     //float start_y                                         // 119 enter y coordinate (if exist single entry) 
     467    int32       entrance_map;                               // 117 map_id of entrance map 
     468    float       entrance_x;                                 // 118 entrance x coordinate (if exist single entry) 
     469    float       entrance_y;                                 // 119 entrance y coordinate (if exist single entry) 
    470470    uint32 resetTimeRaid;                                   // 120 
    471471    uint32 resetTimeHeroic;                                 // 121 
  • trunk/src/shared/Database/DBCfmt.cpp

    r102 r230  
    5656const char LockEntryfmt[]="niiiiixxxiiiiixxxiixxxxxxxxxxxxxx"; 
    5757const char MailTemplateEntryfmt[]="nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; 
    58 const char MapEntryfmt[]="nxixssssssssssssssssxxxxxxxixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxixxiixxi"; 
     58const char MapEntryfmt[]="nxixssssssssssssssssxxxxxxxixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxiffiixxi"; 
    5959const char QuestSortEntryfmt[]="nxxxxxxxxxxxxxxxxx"; 
    6060const char RandomPropertiesPointsfmt[]="niiiiiiiiiiiiiii"; 
  • trunk/src/shared/Database/SqlOperations.cpp

    r102 r230  
    103103    if(m_queries[index].first != NULL) 
    104104    { 
    105         sLog.outError("Attempt assign query to holder index (%u) where other query stored (Old: [%s] New: [%s])",index,m_queries.size(),m_queries[index].first,sql); 
     105        sLog.outError("Attempt assign query to holder index (%u) where other query stored (Old: [%s] New: [%s])", 
     106            index,m_queries[index].first,sql); 
    106107        return false; 
    107108    }