Changeset 237 for trunk/src/trinitycore/Master.cpp
- Timestamp:
- 11/19/08 13:49:31 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/trinitycore/Master.cpp
r149 r237 11 11 * This program is distributed in the hope that it will be useful, 12 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 14 * GNU General Public License for more details. 15 15 * 16 16 * You should have received a copy of the GNU General Public License 17 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 19 */ 20 20 … … 84 84 //DEBUG_LOG("anti-freeze: time=%u, counters=[%u; %u]",curtime,Master::m_masterLoopCounter,World::m_worldLoopCounter); 85 85 86 // There is no Master anymore 87 // TODO: clear the rest of the code 86 // There is no Master anymore 87 // TODO: clear the rest of the code 88 88 // // normal work 89 89 // if(m_loops != Master::m_masterLoopCounter) … … 92 92 // m_loops = Master::m_masterLoopCounter; 93 93 // } 94 // // possible freeze 94 // // possible freeze 95 95 // else if(getMSTimeDiff(m_lastchange,curtime) > _delaytime) 96 96 // { … … 105 105 w_loops = World::m_worldLoopCounter; 106 106 } 107 // possible freeze 107 // possible freeze 108 108 else if(getMSTimeDiff(w_lastchange,curtime) > _delaytime) 109 109 { … … 251 251 ZThread::Thread td1(new CliRunnable); 252 252 } 253 253 254 254 ZThread::Thread td2(new RARunnable); 255 255 … … 329 329 330 330 sWorldSocketMgr->Wait (); 331 331 332 332 // set server offline 333 333 loginDatabase.PExecute("UPDATE realmlist SET color = 2 WHERE id = '%d'",realmID); … … 340 340 t.wait(); 341 341 td2.wait (); 342 342 343 343 ///- Clean database before leaving 344 344 clearOnlineAccounts(); … … 460 460 sWorld.LoadDBVersion(); 461 461 462 462 sLog.outString("Using %s", sWorld.GetDBVersion()); 463 463 return true; 464 464 } … … 472 472 "UPDATE account SET online = 0 WHERE online > 0 " 473 473 "AND id IN (SELECT acctid FROM realmcharacters WHERE realmid = '%d')",realmID); 474 474 475 475 476 476 CharacterDatabase.Execute("UPDATE characters SET online = 0");