Inform - Support - Patches

About Patches  

Compiler  
Library  

DM4 Errata  

Issue L61015

Wrong messages for PUSH/TURN
Submitted by: Sean Barrett     Appeared in: Library 6/7 or before     Fixed in: Library 6/11
Problem

A small bug in the choice of library messages for PUSH and TURN which wasn't noticeable unless you overrode the messages to be different from PULL. Looks like a cut-and-paste bug.

Solution
*** verblibm.h  Sat Nov 13 11:29:14 1999
--- fixed.h     Sat Dec 23 14:00:50 2000
***************
*** 1833,1846 ****
    if (ObjectIsUntouchable(noun)) return;
    if (noun has static)   return L__M(##Push,1,noun);
    if (noun has scenery)  return L__M(##Push,2,noun);
    if (noun has animate)  return L__M(##Pull,4,noun);
    L__M(##Push,3,noun);
  ];
  [ TurnSub;
    if (ObjectIsUntouchable(noun)) return;
    if (noun has static)   return L__M(##Turn,1,noun);
    if (noun has scenery)  return L__M(##Turn,2,noun);
    if (noun has animate)  return L__M(##Pull,4,noun);
    L__M(##Turn,3,noun);
  ];

--- 1833,1846 ----
    if (ObjectIsUntouchable(noun)) return;
    if (noun has static)   return L__M(##Push,1,noun);
    if (noun has scenery)  return L__M(##Push,2,noun);
    if (noun has animate)  return L__M(##Push,4,noun); ! fixed
    L__M(##Push,3,noun);
  ];
  [ TurnSub;
    if (ObjectIsUntouchable(noun)) return;
    if (noun has static)   return L__M(##Turn,1,noun);
    if (noun has scenery)  return L__M(##Turn,2,noun);
    if (noun has animate)  return L__M(##Turn,4,noun); ! fixed
    L__M(##Turn,3,noun);
  ];


Last updated 17 April 2013. This web site has not been fully supported since April 2008. Information may be out of date. This page was originally managed by Roger Firth.