Commit Graph

10 Commits

Author SHA1 Message Date
Staden cbc2bef5e4 Add cooldowns to public channel usage (#206)
Add cooldowns to public channel usage
2018-08-15 09:25:42 +01:00
bladez d01096b893 Cache player position, remove more blocking queries where possible (#1066)
* Now cache player map and position

* Update player cached position on logout

* Use cached data where possible in lookups rather than directly querying the DB

* Use player cache data for multi-faction character check and cinematic skipping
Update cache position on login/logout
2017-12-26 15:42:17 +11:00
bladez 8b242a1da7 Now delay far teleports until the map update is complete (#666)
* Add locks for getting/setting object map
Prevent updating quest fail status for players in another map

* Now use FindMap() in IsInMap rather than GetMap(), so we can continue if the map is NULL

* Prevent UpdateForQuestWorldObjects() call with serialized map check as well as IsInWorld()

* Implemented support for delaying far teleports until after map updates have completed. Resolves issues with thread-safety when checking player map and world across threads
NOTE: ADDING players to maps on a teleport is already thread safe (performed synchronously in the world update, before map updates)

* Removed current map guards, world and map status are now always thread safe

* Add support for cancelling and executing a specific player's teleports
Now set the player teleport semaphore on schedule to preserve existing implementations that check if a teleport is scheduled

* Now synchronously force player teleports on login and logout

* Re-add instance check in TeleportTo before teleport schedule
Add cleanup on player delete

* Ensure we always return something in ExecuteTeleportFar

* Now set a pending teleport rather than a far teleport sempahore, so port acks cannot be exploited while waiting for the teleport to be processed
2017-11-17 18:48:03 +11:00
Prithu Parker 5845e1bd28 Revert "Do not instantly kick players who get disconnected while they're teleported far"
This reverts commit 7f741c778b.
2017-09-12 04:15:36 +10:00
StadenElysium 4a3dc10d9d Merge pull request #693 from WobLight/teleport_on_dced_fix
WorldSession::HandlePlayerLogin: redo pending teleport at login
2017-05-16 14:00:50 +01:00
woblight 7f741c778b Do not instantly kick players who get disconnected while they're teleported far 2017-05-15 16:38:54 +02:00
woblight b3beba1218 Player::TeleportTo: use a more flexible approach to recover a teleport 2017-05-15 16:26:48 +02:00
eir 75cd37d705 Prevent Crashes on Player Invalid Map ID 2017-05-14 22:30:49 -07:00
StadenElysium 43452c0d9c License update (#27) 2017-03-15 17:27:20 +00:00
shenna c9151a5715 Initial Commit / Core Files 2017-03-10 00:38:11 +03:00