Changeset 34 for trunk/src/game/MiscHandler.cpp
- Timestamp:
- 11/19/08 13:25:37 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/MiscHandler.cpp
r28 r34 296 296 } 297 297 298 //instant logout in taverns/cities or on taxi 299 if(GetPlayer()->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_RESTING) || GetPlayer()->isInFlight() )298 //instant logout in taverns/cities or on taxi or if its enabled in mangosd.conf 299 if(GetPlayer()->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_RESTING) || GetPlayer()->isInFlight() || sWorld.getConfig(CONFIG_INSTANT_LOGOUT)) 300 300 { 301 301 LogoutPlayer(true); … … 575 575 if(newZone != _player->GetZoneId()) 576 576 GetPlayer()->SendInitWorldStates(); // only if really enters to new zone, not just area change, works strange... 577 578 // AntiCheat.GMIsland 579 if(sWorld.getConfig(CONFIG_KICK_FROM_GMISLAND)) 580 { 581 if(newZone == 876 && GetPlayer()->GetSession()->GetSecurity() == SEC_PLAYER) 582 _player->TeleportTo(13,0,0,0,0); 583 } 577 584 578 585 GetPlayer()->UpdateZone(newZone);