version 1.170 | | version 1.171 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.170 2006/07/02 15:32:35 tchize Exp $"; | | * "$Id: apply.c,v 1.171 2006/08/07 07:57:55 ryo_saeba Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
| | |
/* Everything checks out OK - player can get on the transport */ | | /* Everything checks out OK - player can get on the transport */ |
pl->contr->transport = transport; | | pl->contr->transport = transport; |
if (!transport->contr) transport->contr = pl->contr; | | if (transport->contr) { |
| | new_draw_info_format(NDI_UNIQUE, 0, pl, "The %s's captain is currently %s", query_name(transport), transport->contr->ob->name); |
| | } |
| | else { |
| | new_draw_info_format(NDI_UNIQUE, 0, pl, "You're the %s's captain", query_name(transport)); |
| | transport->contr = pl->contr; |
| | } |
remove_ob(pl); | | remove_ob(pl); |
insert_ob_in_ob(pl, transport); | | insert_ob_in_ob(pl, transport); |
sum_weight(transport); | | sum_weight(transport); |