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

*Merge from Mangos. Add MapReference?. Author: hunuza.
*Also re-commit the patches reverted in 255.

Original author: megamage
Date: 2008-11-18 19:40:06-06:00

Files:
1 modified

Legend:

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

    r132 r257  
    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 
     
    112112        if (entry && entry->Instanceable()) 
    113113        { 
    114             m = new MapInstanced(id, i_gridCleanUpDelay, 0); 
     114            m = new MapInstanced(id, i_gridCleanUpDelay); 
    115115        } 
    116116        else 
     
    247247        return; 
    248248 
     249    ObjectAccessor::Instance().UpdatePlayers(i_timer.GetCurrent()); 
     250 
    249251    for(MapMapType::iterator iter=i_maps.begin(); iter != i_maps.end(); ++iter) 
    250252    { 
     
    337339        for(MapInstanced::InstancedMaps::iterator mitr = maps.begin(); mitr != maps.end(); ++mitr) 
    338340            if(mitr->second->IsDungeon()) 
    339                 ret += ((InstanceMap*)mitr->second)->GetPlayers().size(); 
     341                ret += ((InstanceMap*)mitr->second)->GetPlayers().getSize(); 
    340342    } 
    341343    return ret;