Do not cancel the ongoing race on recall

Also do not remove the player's vehicle if the player isn't on a
vehicle.
This commit is contained in:
2020-12-29 14:31:48 +01:00
parent 55431362a7
commit c78b3ca69f
2 changed files with 4 additions and 8 deletions

View File

@@ -532,7 +532,7 @@ void NPCManager::handleWarp(CNSocket* sock, int32_t warpId) {
if (Warps.find(warpId) == Warps.end())
return;
if (plr->iPCState | 8) {
if (plr->iPCState & 8) {
// remove the player's vehicle
plr->iPCState &= ~8;
@@ -582,7 +582,7 @@ void NPCManager::handleWarp(CNSocket* sock, int32_t warpId) {
otherPlr->recallInstance = instanceID;
// remove their vehicle if they're on one
if (otherPlr->iPCState | 8) {
if (otherPlr->iPCState & 8) {
// remove the player's vehicle
otherPlr->iPCState &= ~8;