From 62b3f7ced9f798b80aeabda313afeca9e067c416 Mon Sep 17 00:00:00 2001 From: kookroach Date: Sat, 10 Apr 2021 02:03:46 +0200 Subject: [PATCH] test --- ReallifeGamemode.Server/Job/BusDriverJob.cs | 5 ++++- ReallifeGamemode.Server/Job/PilotJob.cs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ReallifeGamemode.Server/Job/BusDriverJob.cs b/ReallifeGamemode.Server/Job/BusDriverJob.cs index ade16983..954688fd 100644 --- a/ReallifeGamemode.Server/Job/BusDriverJob.cs +++ b/ReallifeGamemode.Server/Job/BusDriverJob.cs @@ -269,6 +269,9 @@ namespace ReallifeGamemode.Server.Job if (!playerVehiclePair.ContainsKey(player)) return; + if (playerRouteCurrent.ContainsKey(player.Name)) + playerRouteCurrent.Remove(player.Name); + playerVehiclePair[player].Delete(); playerVehiclePair.Remove(player); } @@ -362,9 +365,9 @@ namespace ReallifeGamemode.Server.Job } if (playerVehiclePair.ContainsKey(player)) { - playerVehiclePair.Remove(player); if (playerVehiclePair[player] != null) playerVehiclePair[player].Delete(); + playerVehiclePair.Remove(player); } playerVehiclePair.Add(player, vehicle); diff --git a/ReallifeGamemode.Server/Job/PilotJob.cs b/ReallifeGamemode.Server/Job/PilotJob.cs index 39fb7149..3f879d88 100644 --- a/ReallifeGamemode.Server/Job/PilotJob.cs +++ b/ReallifeGamemode.Server/Job/PilotJob.cs @@ -235,7 +235,7 @@ namespace ReallifeGamemode.Server.Job playerVehiclePair.Add(player, vehicle); player.SetIntoVehicle(vehicle.Handle, 0); - CheckPointHandle.StartCheckPointRoute(player, selectedRoute, 0, CHECKPOINT_MARKER_ID, 40, 10, true, "pilotJob"); //6, 23, 25, 26, 27, 28 + CheckPointHandle.StartCheckPointRoute(player, selectedRoute, 0, CHECKPOINT_MARKER_ID, 40, 10, true, "PILOT:InCheckpoint"); //6, 23, 25, 26, 27, 28 } public static void payWage(Player jobber, int wage)