Changeset 74 for trunk/src/game
- Timestamp:
- 11/19/08 13:31:47 (17 years ago)
- Location:
- trunk/src/game
- Files:
-
- 5 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/CharacterHandler.cpp
r44 r74 62 62 // NOTE: all fields in `characters` must be read to prevent lost character data at next save in case wrong DB structure. 63 63 // !!! 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)); 65 65 res &= SetPQuery(PLAYER_LOGIN_QUERY_LOADGROUP, "SELECT leaderGuid FROM group_member WHERE memberGuid ='%u'", GUID_LOPART(m_guid)); 66 66 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 13665 13665 { 13666 13666 //// 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); 13668 13668 QueryResult *result = holder->GetResult(PLAYER_LOGIN_QUERY_LOADFROM); 13669 13669 … … 13900 13900 m_taxi.LoadTaxiMask( fields[11].GetString() ); // must be before InitTaxiNodesForLevel 13901 13901 13902 uint32 gmstate= fields[25].GetUInt32();13902 uint32 extraflags = fields[25].GetUInt32(); 13903 13903 13904 13904 m_stableSlots = fields[26].GetUInt32(); … … 14090 14090 case 1: SetGameMaster(true); break; // enable 14091 14091 case 2: // save state 14092 if( gmstate& PLAYER_EXTRA_GM_ON)14092 if(extraflags & PLAYER_EXTRA_GM_ON) 14093 14093 SetGameMaster(true); 14094 14094 break; … … 14101 14101 case 1: SetAcceptTicket(true); break; // enable 14102 14102 case 2: // save state 14103 if( gmstate& PLAYER_EXTRA_GM_ACCEPT_TICKETS)14103 if(extraflags & PLAYER_EXTRA_GM_ACCEPT_TICKETS) 14104 14104 SetAcceptTicket(true); 14105 14105 break; … … 14112 14112 case 1: SetGMChat(true); break; // enable 14113 14113 case 2: // save state 14114 if( gmstate& PLAYER_EXTRA_GM_CHAT)14114 if(extraflags & PLAYER_EXTRA_GM_CHAT) 14115 14115 SetGMChat(true); 14116 14116 break; … … 14123 14123 case 1: SetAcceptWhispers(true); break; // enable 14124 14124 case 2: // save state 14125 if( gmstate& PLAYER_EXTRA_ACCEPT_WHISPERS)14125 if(extraflags & PLAYER_EXTRA_ACCEPT_WHISPERS) 14126 14126 SetAcceptWhispers(true); 14127 14127 break; … … 15110 15110 "taximask, online, cinematic, " 15111 15111 "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, " 15113 15113 "death_expire_time, taxi_path) VALUES (" 15114 15114 << GetGUIDLow() << ", " -
trunk/src/game/SpellAuras.cpp
r73 r74 1954 1954 if(caster->GetTypeId() == TYPEID_PLAYER) 1955 1955 { 1956 ((Player*)caster)-> PlaySound(11965, false);1956 ((Player*)caster)->SendPlaySound(11965, false); 1957 1957 } 1958 1958 return; -
trunk/src/game/Unit.cpp
r71 r74 7765 7765 7766 7766 // 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) 7768 7770 return healamount; 7769 7771 -
trunk/src/game/WorldSocketMgr.cpp
r44 r74 363 363 return m_NetThreads[min].AddSocket (sock); 364 364 365 return 0;366 365 } 367 366