forbid manipulator editing visitors

develop
sv-esk 2016-02-11 02:54:17 +02:00
parent 3cab865d58
commit ac070e49a4
1 changed files with 3 additions and 0 deletions

@ -1149,6 +1149,9 @@ viewscreen_unitlaborsst::viewscreen_unitlaborsst(vector<df::unit*> &src, int cur
if (unit->flags1.bits.dead) if (unit->flags1.bits.dead)
cur->allowEdit = false; cur->allowEdit = false;
if (unit->flags2.bits.visitor)
cur->allowEdit = false;
if (!ENUM_ATTR(profession, can_assign_labor, unit->profession)) if (!ENUM_ATTR(profession, can_assign_labor, unit->profession))
cur->allowEdit = false; cur->allowEdit = false;