Jake Turner wrote:
>
> Going on the fact the room numbers in the array are vnums and your trying to
> change them to rnums, replace the problem area with the following.
>
> /*********************** Problem area ******************/
>
> for (count = 0; count <= NUM_STARTROOMS; count++)
> if ((r_mortal_start_room[count] = real_room(r_mortal_start_room[count]))
> < 0) {
> log("SYSERR: Mortal start room %d does not exist. Change in
> config.c.", count);
> exit(1);
> }
>
> /*********************** End of problem area ******************/
>
If you say he is trying to compare a vnum with rnum, said to use
if (vnum = runum)
why not just do something like:
if (real_room(r_mortal_start_room[count]) == NOWHERE) {
log("SYSERR: Mortal start room %d does not exist. Change in
config.c.", count);
exit(1);
/* Why use exit(1), does this try to return a value? */
/* If you exit here, you will not know if the rest don't exist */
}
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/10/01 PDT