Inform - Support - Patches

About Patches  

Compiler  
Library  

DM4 Errata  

Issue L61019

Object already in/on another
Submitted by: Francesco Cordella     Appeared in: Library 6/10 or before     Fixed in: Library 6/11
Problem

This patch avoids the answer "You need to be holding it before you can put it into something else" when you try to place an object in/on an object where it is already. It would be better to answer: "It's already there".

Solution (by Francesco Cordella, David Glasser and Gunther Schmidl)

In VerbLibm.h, in the routines InsertSub and PutonSub, after the line

  if (second == d_obj || player in second) <<Drop noun>>;

Add this line:

  if (parent(noun) == second) return L__M(##Drop,1,noun);


Last updated 17 April 2013. This site is no longer supported; information may be out of date.
Maintained as a historical archive by the Interactive Fiction Technology Foundation. Copyright 1993-2018 IFTF, CC-BY-SA unless otherwise noted.
This page was originally managed by Roger Firth.