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

[svn] * Avoid access to bag item prototype for getting bag size, use related item update field instead as more fast source.
* Better check client inventory pos data received in some client packets to skip invalid cases.
* Removed some unnecessary database queries.
* Make guid lookup for adding ignore async.
* Added two parameter versions of the AsyncQuery? function
* Make queries for adding friends async. - Hunuza
* Replace some PQuery() calls with more simple Query() - Hunuza
* Mark spell as executed instead of deleteable to solve crash.
*** Source mangos.

**Its a big commit. so test with care... or without care.... whatever floats your boat.

Original author: KingPin?
Date: 2008-11-05 20:10:19-06:00

Files:
1 modified

Legend:

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

    r168 r173  
    854854            return; 
    855855    } 
    856     uint32 textid=GetGossipTextId( action, zoneid); 
    857     if(textid==0) 
    858         textid=GetNpcTextId(); 
    859856 
    860857    switch (gossip->Action) 
    861858    { 
    862859        case GOSSIP_OPTION_GOSSIP: 
     860        { 
     861            uint32 textid = GetGossipTextId(action, zoneid); 
     862            if (textid == 0) 
     863                textid=GetNpcTextId(); 
     864 
    863865            player->PlayerTalkClass->CloseGossip(); 
    864866            player->PlayerTalkClass->SendTalking(textid); 
    865867            break; 
     868                } 
    866869        case GOSSIP_OPTION_OUTDOORPVP: 
    867870            sOutdoorPvPMgr.HandleGossipOption(player, GetGUID(), option);