Show
Ignore:
Timestamp:
09/20/09 20:50:14 (3 years ago)
Author:
valroft
Message:

- Fully reverted LocalizationMgr?. It wasn't being used, and really only wasted memory. Localize your own DBs.
- Run the SQL update 2009_09_20_localizations.sql.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/hearthstone-world/Quest.cpp

    r19 r21  
    2929 
    3030        WorldPacket *data = new WorldPacket(SMSG_QUEST_QUERY_RESPONSE, 2048); 
    31         LocalizedQuest * lci = (language>0) ? sLocalizationMgr.GetLocalizedQuest(qst->id, language) : NULL; 
    3231    
    3332        *data << uint32(qst->id);                                               // Quest ID 
     
    7877        *data << qst->point_opt;                                                // Unknown 
    7978         
    80         if(lci) 
    81         { 
    82                 *data << lci->Title; 
    83                 *data << lci->Objectives; 
    84                 *data << lci->Details; 
    85                 *data << lci->EndText; 
    86         } 
    87         else 
    88         { 
    89                 *data << qst->title;                                            // Title / name of quest 
    90                 *data << qst->objectives;                                       // Objectives / description 
    91                 *data << qst->details;                                          // Details 
    92                 *data << qst->endtext;                                          // Subdescription 
    93         } 
     79        *data << qst->title;                                            // Title / name of quest 
     80        *data << qst->objectives;                                       // Objectives / description 
     81        *data << qst->details;                                          // Details 
     82        *data << qst->endtext;                                          // Subdescription 
    9483 
    9584        // (loop 4 times) 
     
    11099        *data << uint32(0);     // count 
    111100 
    112         if(lci) 
    113         { 
    114                 *data << lci->ObjectiveText[0]; 
    115                 *data << lci->ObjectiveText[1]; 
    116                 *data << lci->ObjectiveText[2]; 
    117                 *data << lci->ObjectiveText[3]; 
    118         } 
    119         else 
    120         { 
    121                 *data << qst->objectivetexts[0];                        // Objective 1 - Used as text if mob not set 
    122                 *data << qst->objectivetexts[1];                        // Objective 2 - Used as text if mob not set 
    123                 *data << qst->objectivetexts[2];                        // Objective 3 - Used as text if mob not set 
    124                 *data << qst->objectivetexts[3];                        // Objective 4 - Used as text if mob not set 
    125         } 
     101        *data << qst->objectivetexts[0];                        // Objective 1 - Used as text if mob not set 
     102        *data << qst->objectivetexts[1];                        // Objective 2 - Used as text if mob not set 
     103        *data << qst->objectivetexts[2];                        // Objective 3 - Used as text if mob not set 
     104        *data << qst->objectivetexts[3];                        // Objective 4 - Used as text if mob not set 
    126105 
    127106        return data;