Fixed gl_partycontrol change in commit 9fab4b3

This commit is contained in:
NovaRain
2019-11-07 09:45:57 +08:00
parent 76cc0471d6
commit b8de20d455
2 changed files with 6 additions and 4 deletions
Binary file not shown.
+2
View File
@@ -80,12 +80,14 @@ procedure combatturn_handler begin
end
end else if inControl then begin
// remove perks before switching control (only work with 4.1.8+)
if (dude_obj != real_dude_obj) then begin
foreach (perkID in perksList) begin
level := has_trait(TRAIT_PERK, real_dude_obj, perkID);
if (level) then begin
critter_rm_trait(critter, TRAIT_PERK, perkID, level);
end
end
end
if isShowTag then begin
hide_iface_tag(displayName);
isShowTag := false;