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

[svn] DynamicObject? should only be visible for caster if it is not in distance. However, I do not think this will fix the bug that dynamic object update freezes the server.

Original author: megamage
Date: 2008-11-15 11:56:59-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/trinitycore/Master.cpp

    r149 r237  
    1111 * This program is distributed in the hope that it will be useful, 
    1212 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
     13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1414 * GNU General Public License for more details. 
    1515 * 
    1616 * You should have received a copy of the GNU General Public License 
    1717 * along with this program; if not, write to the Free Software 
    18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
     18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
    1919 */ 
    2020 
     
    8484            //DEBUG_LOG("anti-freeze: time=%u, counters=[%u; %u]",curtime,Master::m_masterLoopCounter,World::m_worldLoopCounter); 
    8585 
    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 
    8888//            // normal work 
    8989//            if(m_loops != Master::m_masterLoopCounter) 
     
    9292//                m_loops = Master::m_masterLoopCounter; 
    9393//            } 
    94 //            // possible freeze  
     94//            // possible freeze 
    9595//            else if(getMSTimeDiff(m_lastchange,curtime) > _delaytime) 
    9696//            { 
     
    105105                w_loops = World::m_worldLoopCounter; 
    106106            } 
    107             // possible freeze  
     107            // possible freeze 
    108108            else if(getMSTimeDiff(w_lastchange,curtime) > _delaytime) 
    109109            { 
     
    251251        ZThread::Thread td1(new CliRunnable); 
    252252    } 
    253      
     253 
    254254    ZThread::Thread td2(new RARunnable); 
    255255 
     
    329329 
    330330    sWorldSocketMgr->Wait (); 
    331      
     331 
    332332    // set server offline 
    333333    loginDatabase.PExecute("UPDATE realmlist SET color = 2 WHERE id = '%d'",realmID); 
     
    340340    t.wait(); 
    341341    td2.wait (); 
    342      
     342 
    343343    ///- Clean database before leaving 
    344344    clearOnlineAccounts(); 
     
    460460    sWorld.LoadDBVersion(); 
    461461 
    462         sLog.outString("Using %s", sWorld.GetDBVersion()); 
     462    sLog.outString("Using %s", sWorld.GetDBVersion()); 
    463463    return true; 
    464464} 
     
    472472        "UPDATE account SET online = 0 WHERE online > 0 " 
    473473        "AND id IN (SELECT acctid FROM realmcharacters WHERE realmid = '%d')",realmID); 
    474      
     474 
    475475 
    476476    CharacterDatabase.Execute("UPDATE characters SET online = 0");