version 1.96 | | version 1.97 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.96 2002/09/28 07:19:40 mwedel Exp $"; | | * "$Id: player.c,v 1.97 2002/10/03 07:07:43 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
op->invisible--; | | op->invisible--; |
if(!op->invisible) make_visible(op); | | if(!op->invisible) make_visible(op); |
} | | } |
| | |
| | /* I've been seeing crashes where the golem has been destroyed, but |
| | * the player object still points to the defunct golem. The code that |
| | * destroys the golem looks correct, and it doesn't always happen, so |
| | * put this in a a workaround to clean up the golem pointer. |
| | */ |
| | if (op->contr->golem && |
| | ((op->contr->golem_count != op->contr->golem->count) || |
| | QUERY_FLAG(op->contr->golem, FLAG_REMOVED))) { |
| | op->contr->golem = NULL; |
| | op->contr->golem_count = 0; |
| | } |
| | |
/* call this here - we also will call this in do_ericserver, but | | /* call this here - we also will call this in do_ericserver, but |
* the players time has been increased when doericserver has been | | * the players time has been increased when doericserver has been |
* called, so we recheck it here. | | * called, so we recheck it here. |