… | |
… | |
1674 | left = throw_ob; /* these are throwing objects left to the player */ |
1674 | left = throw_ob; /* these are throwing objects left to the player */ |
1675 | |
1675 | |
1676 | /* sometimes get_split_ob can't split an object (because op->nrof==0?) |
1676 | /* sometimes get_split_ob can't split an object (because op->nrof==0?) |
1677 | * and returns NULL. We must use 'left' then |
1677 | * and returns NULL. We must use 'left' then |
1678 | */ |
1678 | */ |
1679 | |
1679 | if (!(throw_ob = throw_ob->split ())) |
1680 | if ((throw_ob = get_split_ob (throw_ob, 1)) == NULL) |
|
|
1681 | { |
1680 | { |
1682 | throw_ob = left; |
1681 | throw_ob = left; |
1683 | left->remove (); |
1682 | left->remove (); |
1684 | if (op->type == PLAYER) |
1683 | if (op->type == PLAYER) |
1685 | esrv_del_item (op->contr, left->count); |
1684 | esrv_del_item (op->contr, left->count); |