Skip to content

Commit

Permalink
don't clear FPP_OriginalOwner (nw)
Browse files Browse the repository at this point in the history
Fixes:
Person A fallback to Person B, disconnects
Person B fallback to Person C, disconnect
Person B reconnects gets full ownership with no trace of A
  • Loading branch information
lionbryce committed May 5, 2024
1 parent a266f9f commit a77020c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamemode/modules/fpp/pp/server/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ function FPP.PlayerInitialSpawn(ply)
v:CPPISetOwner(ply)
table.insert(entities, v)

if v:GetNW2String("FPP_OriginalOwner", "") ~= "" then
if v:GetNW2String("FPP_OriginalOwner") == SteamID then -- only clear this when we've given it back to the original owner
v:SetNW2String("FPP_OriginalOwner", "")
end
end
Expand Down

0 comments on commit a77020c

Please sign in to comment.