version 1.95 | | version 1.96 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.95 2002/09/23 06:27:54 mwedel Exp $"; | | * "$Id: player.c,v 1.96 2002/09/28 07:19:40 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
*/ | | */ |
int handle_newcs_player(object *op) | | int handle_newcs_player(object *op) |
{ | | { |
if(op->invisible&&!(QUERY_FLAG(op,FLAG_MAKE_INVIS))) { | | if (op->contr->hidden) { |
| | op->invisible = 1000; |
| | /* the socket code flasehs the player visible/invisible |
| | * depending on the value if invisible, so we need to |
| | * alternate it here for it to work correctly. |
| | */ |
| | if (pticks & 2) op->invisible--; |
| | } |
| | else if(op->invisible&&!(QUERY_FLAG(op,FLAG_MAKE_INVIS))) { |
op->invisible--; | | op->invisible--; |
if(!op->invisible) make_visible(op); | | if(!op->invisible) make_visible(op); |
} | | } |