Hi
As some of you might have noticed, I'm working on the multiple road stops per stations thing. Most of it works pretty nicely meanwhile, just the code is ugly as hell, so I'll start tidying it up. However, I need your opinion about one problem.
Currently the Stations struct has two entries for the bus stations (all this goes for the truck stops as well). bus_tile and bus_stop_status. I'm going to implement the possibility to build "NUM_ROAD_STOPS" stations. So my first idea was to convert that to bus_tile[NUM_ROAD_STOPS] and bus_stop_status[NUM_ROAD_STOPS], I'd also need at least (trying to keep it at one) one other variable, let's call it bus_queue_system[NUM_ROAD_STOPS]. However, I'm not sure if this is the optimal solution.
If any of you have a better idea than the arrays, please let me know soon. (I'd like to freeze the design tomorrow latest). Some code or code fractions would be nice. Please notice that I'll need a good number of loops that run through all stops at a station.
Also, I'd like opinions about what "NUM_ROAD_STOPS" should be set to? 4? 8? ..
Last but not least, how should I treat savegames and "loadgames"?
Celestar
Advice needed: multiple stops per stations in Station struct
Moderator: OpenTTD Developers
- lucaspiller
- Tycoon
- Posts: 1228
- Joined: 18 Apr 2004 20:27
Who is online
Users browsing this forum: No registered users and 19 guests