Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Magic & Metal, was Re: fighters & magic




Hi there;
I want to report the following error:

suppose you habe 2 container both filled with something.
Now, open one and with the mouse drop the contents of the other container
into the first one by pushing the right mouse button on the second one.
If the first container can't hold that much a never ending loop results.
See server/input.c line 176ff:
/* Eneq(@csd.uu.se): If the object to be dropped is a container we instead
   move the contents of that container into the active container, this is
   only done if the object has something in it. */

      while (tmp->inv)  
          drop (op, tmp->inv);
      draw_info (op, "You put the items into the container.");
      return;

We should make dropt return a value 'true' if dropping is successfull
otherwhise 'false'. (Something like that.)
Then it should be possible to terminate the loop by testing that value.

MfG
Klaus Elsbernd