version 1.179 | | version 1.180 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.179 2006/09/10 00:24:33 qal21 Exp $"; | | * "$Id: apply.c,v 1.180 2006/09/10 14:21:16 qal21 Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
/* If the player is holding the transport, drop it. */ | | /* If the player is holding the transport, drop it. */ |
if (transport->env == pl) { | | if (transport->env == pl) { |
old_transport = transport; | | old_transport = transport; |
| | /* Don't drop transports in shops. */ |
| | if (!is_in_shop(pl)) { |
transport = drop_object(pl, transport, 1); | | transport = drop_object(pl, transport, 1); |
| | } else { |
| | new_draw_info_format(NDI_UNIQUE, 0, pl, |
| | "You cannot drop the %s in a shop to use it.", |
| | query_name(old_transport)); |
| | return 1; |
| | } |
/* Did it fail to drop? */ | | /* Did it fail to drop? */ |
if(!transport) { | | if(!transport) { |
new_draw_info_format(NDI_UNIQUE, 0, pl, | | new_draw_info_format(NDI_UNIQUE, 0, pl, |