Scripts: addition to 8b6954e81b

Closes #16466
This commit is contained in:
joschiwald
2016-02-06 17:26:27 +01:00
parent d92d5c0d17
commit b259d5c2bc
2 changed files with 2 additions and 2 deletions

View File

@@ -980,7 +980,7 @@ class go_celestial_planetarium_access : public GameObjectScript
bool GossipHello(Player* player) override
{
if (go->HasFlag(GAMEOBJECT_FLAGS, GO_FLAG_IN_USE))
return false;
return true;
bool hasKey = true;
if (LockEntry const* lock = sLockStore.LookupEntry(go->GetGOInfo()->goober.lockId))

View File

@@ -1637,7 +1637,7 @@ class go_mimiron_hardmode_button : public GameObjectScript
bool OnGossipHello(Player* /*player*/, GameObject* go) override
{
if (go->HasFlag(GAMEOBJECT_FLAGS, GO_FLAG_NOT_SELECTABLE))
return false;
return true;
InstanceScript* instance = go->GetInstanceScript();
if (!instance)