Inform - Support - Source

Back to List

Inventory
Complete

Backward
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing parserm.h

MultiAdd (lines 2861-2877)

2861  !  The MultiAdd routine adds object "o" to the multiple-object-list.
2862  !
2863  !  This is only allowed to hold 63 objects at most, at which point it ignores
2864  !  any new entries (and sets a global flag so that a warning may later be
2865  !  printed if need be).
2866  ! ----------------------------------------------------------------------------
2867   
2868  [ MultiAdd o i j;
2869    i=multiple_object-->0;
2870    if (i==63) { toomany_flag=1; rtrue; }
2871    for (j=1:j<=i:j++)
2872        if (o==multiple_object-->j) 
2873            rtrue;
2874    i++;
2875    multiple_object-->i = o;
2876    multiple_object-->0 = i;
2877  ];


Last updated 27 February 2004. This web site has not been fully supported since April 2008. Information may be out of date. This page was originally managed by Graham Nelson (graham@gnelson.demon.co.uk) assisted by C Knight.