Re: [BPL14][Newbie] Train Snippet

From: Scorn (scorn@RMI.NET)
Date: 09/09/98


thanks that got rid of all those errors now my only problem is when the
game is running and it pulses for the train it crashes and debugger calls
out this line in trains.c

wdoor = 3; /* west dir number */
edoor = 1; /* east dir number */

world[transroom].dir_option[wdoor]->to_room = NOWHERE;
world[station].dir_option[edoor]->to_room = NOWHERE; *****this one
sprintf(buf, "The conductor announces, 'Next stop: %s'\n\r", whereto);
its line 140 on the stock here is what it had for pulse

if (!(pulse % (25 * 4)))
         train_upd();
it didnt look right so i tried
if (!(pulse % (25 * PASSES_PER_SEC)))
         train_upd();
that didnt work either
Scorn


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST