Show
Ignore:
Timestamp:
11/22/08 00:36:22 (17 years ago)
Author:
yumileroy
Message:

Merged commit 269 (5f0e38da128a).

Original author: gvcoman
Date: 2008-11-21 14:34:05-05:00

Files:
1 modified

Legend:

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

    r272 r279  
    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 
     
    223223} 
    224224 
    225 void MapManager::DeleteInstance(uint32 mapid, uint32 instanceId, uint8 mode) 
     225void MapManager::DeleteInstance(uint32 mapid, uint32 instanceId) 
    226226{ 
    227227    Map *m = _GetBaseMap(mapid); 
     
    246246    if( !i_timer.Passed() ) 
    247247        return; 
     248 
     249    ObjectAccessor::Instance().UpdatePlayers(i_timer.GetCurrent()); 
    248250 
    249251    for(MapMapType::iterator iter=i_maps.begin(); iter != i_maps.end(); ++iter) 
     
    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;