src/station.cpp
changeset 5718 ce37296bb03c
parent 5716 7176379debd0
child 5721 fa4e587f59f5
equal deleted inserted replaced
5717:b6fb89cd9cce 5718:ce37296bb03c
   348 }
   348 }
   349 
   349 
   350 /** Initializes a RoadStop */
   350 /** Initializes a RoadStop */
   351 RoadStop::RoadStop(TileIndex tile) :
   351 RoadStop::RoadStop(TileIndex tile) :
   352 	xy(tile),
   352 	xy(tile),
   353 	used(true),
       
   354 	status(3), // stop is free
   353 	status(3), // stop is free
   355 	num_vehicles(0),
   354 	num_vehicles(0),
   356 	next(NULL),
   355 	next(NULL),
   357 	prev(NULL)
   356 	prev(NULL)
   358 {
   357 {
   375 	assert(num_vehicles == 0);
   374 	assert(num_vehicles == 0);
   376 
   375 
   377 	if (prev != NULL) prev->next = next;
   376 	if (prev != NULL) prev->next = next;
   378 	if (next != NULL) next->prev = prev;
   377 	if (next != NULL) next->prev = prev;
   379 
   378 
   380 	used = false;
       
   381 	DEBUG(ms, cDebugCtorLevel , "I- at %d[0x%x]", xy, xy);
   379 	DEBUG(ms, cDebugCtorLevel , "I- at %d[0x%x]", xy, xy);
   382 
   380 
   383 	xy = INVALID_TILE;
   381 	xy = INVALID_TILE;
   384 }
   382 }
   385 
   383