[CF-Devel] Question on c_object.c:sack_can_hold

crossfire-devel-admin at archives.real-time.com crossfire-devel-admin at archives.real-time.com
Wed Jul 30 10:16:39 CDT 2003


Hello.

Browsing randomly through the code, i checked sack_can_hold in c_object.c

As the implementation is, the 'You can't put the %s into itself.' 
message may be erased when putting a container into itself, mainly if 
the container is specific (pouch, quiver, ...).
In that case, op == sack indeed, but sack->race is set and op->type == 
CONTAINER, thus erasing the message.
Maybe it'd be better to switch the tests?

Nicolas 'Ryo'


_______________________________________________
crossfire-devel mailing list
     
     crossfire-devel at lists.real-time.com
     
     
     https://mailman.real-time.com/mailman/listinfo/crossfire-devel
     
     
    


More information about the crossfire mailing list