Changeset 118 for trunk/src/game/Map.cpp
- Timestamp:
- 11/19/08 13:37:52 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Map.cpp
r102 r118 1420 1420 bool InstanceMap::CanEnter(Player *player) 1421 1421 { 1422 if(!player->isGameMaster() && i_data && i_data->IsEncounterInProgress()) 1423 { 1424 sLog.outDebug("InstanceMap::CanEnter - Player '%s' can't enter instance '%s' while an encounter is in progress.", player->GetName(), GetMapName()); 1425 player->SendTransferAborted(GetId(), TRANSFER_ABORT_ZONE_IN_COMBAT); 1426 return false; 1427 } 1428 1422 1429 if(std::find(i_Players.begin(),i_Players.end(),player)!=i_Players.end()) 1423 1430 {