Changeset 74 for trunk/src/game

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

[svn] * Fixed compile from r78
* Fixed: not apply healling bonus to spell 40972 heal amount. - Source Mangos
* Item 30627 hidden cooldown - Source Mangos
* Fixed Trinityrealm autopatching system - Source Arrai
* Add support for autoconf 2.6.2 and newer - Source Derex
Some decent sized changes, please test before deploying - KP

Original author: KingPin?
Date: 2008-10-19 21:08:34-05:00

Location:
trunk/src/game
Files:
5 modified

Legend:

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

    r44 r74  
    6262    // NOTE: all fields in `characters` must be read to prevent lost character data at next save in case wrong DB structure. 
    6363    // !!! NOTE: including unused `zone`,`online` 
    64     res &= SetPQuery(PLAYER_LOGIN_QUERY_LOADFROM,            "SELECT guid, account, data, name, race, class, position_x, position_y, position_z, map, orientation, taximask, cinematic, totaltime, leveltime, rest_bonus, logout_time, is_logout_resting, resettalents_cost, resettalents_time, trans_x, trans_y, trans_z, trans_o, transguid, gmstate, stable_slots, at_login, zone, online, death_expire_time, taxi_path, dungeon_difficulty FROM characters WHERE guid = '%u'", GUID_LOPART(m_guid)); 
     64    res &= SetPQuery(PLAYER_LOGIN_QUERY_LOADFROM,            "SELECT guid, account, data, name, race, class, position_x, position_y, position_z, map, orientation, taximask, cinematic, totaltime, leveltime, rest_bonus, logout_time, is_logout_resting, resettalents_cost, resettalents_time, trans_x, trans_y, trans_z, trans_o, transguid, extra_flags, stable_slots, at_login, zone, online, death_expire_time, taxi_path, dungeon_difficulty FROM characters WHERE guid = '%u'", GUID_LOPART(m_guid)); 
    6565    res &= SetPQuery(PLAYER_LOGIN_QUERY_LOADGROUP,           "SELECT leaderGuid FROM group_member WHERE memberGuid ='%u'", GUID_LOPART(m_guid)); 
    6666    res &= SetPQuery(PLAYER_LOGIN_QUERY_LOADBOUNDINSTANCES,  "SELECT id, permanent, map, difficulty, resettime FROM character_instance LEFT JOIN instance ON instance = id WHERE guid = '%u'", GUID_LOPART(m_guid)); 
  • trunk/src/game/Player.cpp

    r69 r74  
    1366513665{ 
    1366613666    ////                                                     0     1        2     3     4     5      6           7           8           9    10           11        12         13         14         15          16           17                 18                 19                 20       21       22       23       24         25       26            27        [28]  [29]    30                 31         32 
    13667     //QueryResult *result = CharacterDatabase.PQuery("SELECT guid, account, data, name, race, class, position_x, position_y, position_z, map, orientation, taximask, cinematic, totaltime, leveltime, rest_bonus, logout_time, is_logout_resting, resettalents_cost, resettalents_time, trans_x, trans_y, trans_z, trans_o, transguid, gmstate, stable_slots, at_login, zone, online, death_expire_time, taxi_path, dungeon_difficulty FROM characters WHERE guid = '%u'", guid); 
     13667    //QueryResult *result = CharacterDatabase.PQuery("SELECT guid, account, data, name, race, class, position_x, position_y, position_z, map, orientation, taximask, cinematic, totaltime, leveltime, rest_bonus, logout_time, is_logout_resting, resettalents_cost, resettalents_time, trans_x, trans_y, trans_z, trans_o, transguid, extraflags, stable_slots, at_login, zone, online, death_expire_time, taxi_path, dungeon_difficulty FROM characters WHERE guid = '%u'", guid); 
    1366813668    QueryResult *result = holder->GetResult(PLAYER_LOGIN_QUERY_LOADFROM); 
    1366913669 
     
    1390013900    m_taxi.LoadTaxiMask( fields[11].GetString() );          // must be before InitTaxiNodesForLevel 
    1390113901 
    13902     uint32 gmstate = fields[25].GetUInt32(); 
     13902    uint32 extraflags = fields[25].GetUInt32(); 
    1390313903 
    1390413904    m_stableSlots = fields[26].GetUInt32(); 
     
    1409014090            case 1: SetGameMaster(true); break;             // enable 
    1409114091            case 2:                                         // save state 
    14092                 if(gmstate & PLAYER_EXTRA_GM_ON) 
     14092                if(extraflags & PLAYER_EXTRA_GM_ON) 
    1409314093                    SetGameMaster(true); 
    1409414094                break; 
     
    1410114101            case 1: SetAcceptTicket(true); break;           // enable 
    1410214102            case 2:                                         // save state 
    14103             if(gmstate & PLAYER_EXTRA_GM_ACCEPT_TICKETS) 
     14103            if(extraflags & PLAYER_EXTRA_GM_ACCEPT_TICKETS) 
    1410414104                SetAcceptTicket(true); 
    1410514105            break; 
     
    1411214112            case 1: SetGMChat(true); break;                 // enable 
    1411314113            case 2:                                         // save state 
    14114                 if(gmstate & PLAYER_EXTRA_GM_CHAT) 
     14114                if(extraflags & PLAYER_EXTRA_GM_CHAT) 
    1411514115                    SetGMChat(true); 
    1411614116                break; 
     
    1412314123            case 1: SetAcceptWhispers(true); break;         // enable 
    1412414124            case 2:                                         // save state 
    14125                 if(gmstate & PLAYER_EXTRA_ACCEPT_WHISPERS) 
     14125                if(extraflags & PLAYER_EXTRA_ACCEPT_WHISPERS) 
    1412614126                    SetAcceptWhispers(true); 
    1412714127                break; 
     
    1511015110        "taximask, online, cinematic, " 
    1511115111        "totaltime, leveltime, rest_bonus, logout_time, is_logout_resting, resettalents_cost, resettalents_time, " 
    15112         "trans_x, trans_y, trans_z, trans_o, transguid, gmstate, stable_slots, at_login, zone, " 
     15112        "trans_x, trans_y, trans_z, trans_o, transguid, extraflags, stable_slots, at_login, zone, " 
    1511315113        "death_expire_time, taxi_path) VALUES (" 
    1511415114        << GetGUIDLow() << ", " 
  • trunk/src/game/SpellAuras.cpp

    r73 r74  
    19541954                if(caster->GetTypeId() == TYPEID_PLAYER) 
    19551955                { 
    1956                     ((Player*)caster)->PlaySound(11965, false); 
     1956                    ((Player*)caster)->SendPlaySound(11965, false); 
    19571957                } 
    19581958                return; 
  • trunk/src/game/Unit.cpp

    r71 r74  
    77657765 
    77667766    // These Spells are doing fixed amount of healing (TODO found less hack-like check) 
    7767     if(spellProto->Id == 15290 || spellProto->Id == 39373 || spellProto->Id == 33778 || spellProto->Id == 379 || spellProto->Id == 38395) 
     7767    if (spellProto->Id == 15290 || spellProto->Id == 39373 || 
     7768        spellProto->Id == 33778 || spellProto->Id == 379   || 
     7769        spellProto->Id == 38395 || spellProto->Id == 40972) 
    77687770        return healamount; 
    77697771 
  • trunk/src/game/WorldSocketMgr.cpp

    r44 r74  
    363363  return m_NetThreads[min].AddSocket (sock); 
    364364 
    365   return 0; 
    366365} 
    367366