void autotoadcheck(player) int player; { char *desc; register int i; register int total = 0; /* Does the player have a desc? */ if (get_str_elt(player, DESC, &desc) == -1) goto autotoadbomb; if (desc != NULL) return; /* Does the player own any property? (@stat > 1) */ for (i = 0; i < total_objects; i++) { if (main_index[i] == NULL) continue; if (DSC_OWNER(main_index[i]) == player) total++; } } /* autotoadcheck */