Changeset 9 for trunk/src/game/MapInstanced.cpp
- Timestamp:
- 11/19/08 13:22:41 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/MapInstanced.cpp
r2 r9 142 142 Player* player = (Player*)obj; 143 143 144 // TODO: battlegrounds and arenas 144 if(IsBattleGroundOrArena()) 145 { 146 // instantiate or find existing bg map for player 147 // the instance id is set in battlegroundid 148 NewInstanceId = player->GetBattleGroundId(); 149 assert(NewInstanceId); 150 map = _FindMap(NewInstanceId); 151 if(!map) 152 map = CreateBattleGround(NewInstanceId); 153 return map; 154 } 145 155 146 156 InstancePlayerBind *pBind = player->GetBoundInstance(GetId(), player->GetDifficulty());