Changeset 272 for trunk/src/game/MapManager.cpp
- Timestamp:
- 11/22/08 00:35:41 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/MapManager.cpp
r260 r272 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. 13 * 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 … … 112 112 if (entry && entry->Instanceable()) 113 113 { 114 m = new MapInstanced(id, i_gridCleanUpDelay );114 m = new MapInstanced(id, i_gridCleanUpDelay, 0); 115 115 } 116 116 else … … 223 223 } 224 224 225 void MapManager::DeleteInstance(uint32 mapid, uint32 instanceId )225 void MapManager::DeleteInstance(uint32 mapid, uint32 instanceId, uint8 mode) 226 226 { 227 227 Map *m = _GetBaseMap(mapid); … … 246 246 if( !i_timer.Passed() ) 247 247 return; 248 249 ObjectAccessor::Instance().UpdatePlayers(i_timer.GetCurrent());250 248 251 249 for(MapMapType::iterator iter=i_maps.begin(); iter != i_maps.end(); ++iter) … … 339 337 for(MapInstanced::InstancedMaps::iterator mitr = maps.begin(); mitr != maps.end(); ++mitr) 340 338 if(mitr->second->IsDungeon()) 341 ret += ((InstanceMap*)mitr->second)->GetPlayers(). getSize();339 ret += ((InstanceMap*)mitr->second)->GetPlayers().size(); 342 340 } 343 341 return ret;