Re: [BPL14][Newbie] Train Snippet

From: Tony Robbins [Kupek] (tonyr@NWPACLINK.COM)
Date: 09/09/98

On Wed, 9 Sep 1998, Scorn wrote:

> 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;

My first guess is that this exit doesn't exist. (below)
if (world[station].dir_option[edoor]) do-your-stuff
should fix it.  Although, anything you use as a station should have an
edesc for the exit, it most cases, so that the exit would exist anyway.

> world[station].dir_option[edoor]->to_room = NOWHERE; *****this one

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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