version 1.72 | | version 1.73 |
---|
| | |
/* | | /* |
* static char *rcsid_plugins_c = | | * static char *rcsid_plugins_c = |
* "$Id: plugins.c,v 1.72 2006/05/20 15:47:48 ryo_saeba Exp $"; | | * "$Id: plugins.c,v 1.73 2006/07/02 15:32:35 tchize Exp $"; |
*/ | | */ |
| | |
/*****************************************************************************/ | | /*****************************************************************************/ |
| | |
player *pl; | | player *pl; |
| | |
if (op->env != NULL) { | | if (op->env != NULL) { |
tmp = is_player_inv(op->env); | | tmp = get_player_container(op->env); |
if (!tmp) { | | if (!tmp) { |
for (pl = first_player; pl; pl = pl->next) | | for (pl = first_player; pl; pl = pl->next) |
if (pl->ob->container == op->env) | | if (pl->ob->container == op->env) |
| | |
return; | | return; |
} | | } |
| | |
tmp = is_player_inv(op->env); | | tmp = get_player_container(op->env); |
if (!tmp) { | | if (!tmp) { |
for (pl = first_player; pl; pl = pl->next) | | for (pl = first_player; pl; pl = pl->next) |
if (pl->ob->container == op->env) | | if (pl->ob->container == op->env) |
| | |
player *pl; | | player *pl; |
op->nrof = iarg; | | op->nrof = iarg; |
if (op->env != NULL) { | | if (op->env != NULL) { |
tmp = is_player_inv(op->env); | | tmp = get_player_container(op->env); |
if (!tmp) { | | if (!tmp) { |
for (pl = first_player; pl; pl = pl->next) | | for (pl = first_player; pl; pl = pl->next) |
if (pl->ob->container == op->env) | | if (pl->ob->container == op->env) |
| | |
player *pl; | | player *pl; |
op->weight = iarg; | | op->weight = iarg; |
if (op->env != NULL) { | | if (op->env != NULL) { |
tmp = is_player_inv(op->env); | | tmp = get_player_container(op->env); |
if (!tmp) { | | if (!tmp) { |
for (pl = first_player; pl; pl = pl->next) | | for (pl = first_player; pl; pl = pl->next) |
if (pl->ob->container == op->env) | | if (pl->ob->container == op->env) |
| | |
| | |
case 3: | | case 3: |
op = va_arg(args, object*); | | op = va_arg(args, object*); |
rv = is_player_inv(op); | | rv = get_player_container(op); |
break; | | break; |
| | |
default: | | default: |