128 bit bug

From: Thomas Larcombe (raucous@DIM.COM)
Date: 12/04/02


Hi all...
   This message is to make people aware of a bug with the 128 bit
patch. At least I had it on mine so I assume it is on others as well.
The 128 bit patch alters GET_OBJ_EXTRA(obj) to 4 versions of that,
GET_OBJ_EXTRA(obj)[0]
GET_OBJ_EXTRA(obj)[1]
GET_OBJ_EXTRA(obj)[2]
GET_OBJ_EXTRA(obj)[3]

In shop.c there is a comparison of GET_OBJ_EXTRA(obj1) and
GET_OBJ_EXTRA(obj2), this needs to be changed from:
{in function same_obj()}

if GET_OBJ_EXTRA(obj1) != GET_OBJ_EXTRA(obj2)
return (FALSE);

it needs to be changed to:

if GET_OBJ_EXTRA(obj1)[0] != GET_OBJ_EXTRA(obj2)[0]
return (FALSE);

additional lines need to be added to check for [1], [2] and [3] as well.
The upshot of not doing this is that items will load with only a
single item available as opposed to the 'Unlimited' that shop produced
items are supposed to have, several other minor problems are fixed also
as other sections also call on the 'same_obj()' function.
Thanks...
Tom...

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT