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 2 May 2008. The librarian in charge of this page is Roger Firth. Please email any comments, suggestions or corrections to roger@firthworks.com.