Fix vehicle ownership bug (#273)

This commit is contained in:
Mazo 2019-10-06 18:58:06 +01:00 committed by Fate-JH
parent 1fb35bacd1
commit 9e42171ca5

View file

@ -2067,12 +2067,12 @@ class WorldSessionActor extends Actor with MDCContextAware {
case VehicleResponse.Ownership(vehicle_guid) => case VehicleResponse.Ownership(vehicle_guid) =>
if(tplayer_guid == guid) { // Only the player that owns this vehicle needs the ownership packet if(tplayer_guid == guid) { // Only the player that owns this vehicle needs the ownership packet
player.VehicleOwned = Some(vehicle_guid)
sendResponse(PlanetsideAttributeMessage(tplayer_guid, 21, vehicle_guid)) sendResponse(PlanetsideAttributeMessage(tplayer_guid, 21, vehicle_guid))
} }
case VehicleResponse.PlanetsideAttribute(vehicle_guid, attribute_type, attribute_value) => case VehicleResponse.PlanetsideAttribute(vehicle_guid, attribute_type, attribute_value) =>
if(tplayer_guid != guid) { if(tplayer_guid != guid) {
player.VehicleOwned = Some(vehicle_guid)
sendResponse(PlanetsideAttributeMessage(vehicle_guid, attribute_type, attribute_value)) sendResponse(PlanetsideAttributeMessage(vehicle_guid, attribute_type, attribute_value))
} }