make sure generic dialogs never get injected in edit mode
This commit is contained in:
parent
9260989bed
commit
9fadc666ae
@ -442,7 +442,7 @@ function yl_speak_up.talk(self, clicker)
|
|||||||
if(yl_speak_up.edit_mode[pname] == n_id) then
|
if(yl_speak_up.edit_mode[pname] == n_id) then
|
||||||
player = nil
|
player = nil
|
||||||
end
|
end
|
||||||
yl_speak_up.speak_to[pname].dialog = yl_speak_up.load_dialog(n_id, clicker)
|
yl_speak_up.speak_to[pname].dialog = yl_speak_up.load_dialog(n_id, player)
|
||||||
|
|
||||||
-- is this player explicitly allowed to edit this npc?
|
-- is this player explicitly allowed to edit this npc?
|
||||||
if(yl_speak_up.speak_to[pname].dialog
|
if(yl_speak_up.speak_to[pname].dialog
|
||||||
|
Loading…
Reference in New Issue
Block a user