Changeset 257 for trunk/src/game/MapManager.cpp
- Timestamp:
- 11/19/08 13:51:33 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/MapManager.cpp
r132 r257 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 … … 112 112 if (entry && entry->Instanceable()) 113 113 { 114 m = new MapInstanced(id, i_gridCleanUpDelay , 0);114 m = new MapInstanced(id, i_gridCleanUpDelay); 115 115 } 116 116 else … … 247 247 return; 248 248 249 ObjectAccessor::Instance().UpdatePlayers(i_timer.GetCurrent()); 250 249 251 for(MapMapType::iterator iter=i_maps.begin(); iter != i_maps.end(); ++iter) 250 252 { … … 337 339 for(MapInstanced::InstancedMaps::iterator mitr = maps.begin(); mitr != maps.end(); ++mitr) 338 340 if(mitr->second->IsDungeon()) 339 ret += ((InstanceMap*)mitr->second)->GetPlayers(). size();341 ret += ((InstanceMap*)mitr->second)->GetPlayers().getSize(); 340 342 } 341 343 return ret;