Commit Graph

23 Commits (ca310e5a2684e8a3f905ba59219fc5c24c089f78)

Author SHA1 Message Date
rubidium a374caf51d (svn r8730) -Codechange: more replacements of magic numbers by enums and removal of some (by now) redundant comments. 18 years ago
rubidium ebff8b09fc (svn r8726) -Codechange: bools are 1 or 0 according to the C++ standard and refactor RoadStop::AllocateBay to remove a loop condition. Suggestions by Tron. 18 years ago
rubidium 93b78f31fb (svn r8725) -Fix (r8712): test the first bit of the bitmask, not the nth, as we are shifting the bitmask. 18 years ago
rubidium 3969f10b53 (svn r8723) -Codechange: replace yet another couple of magic numbers with enums. 18 years ago
rubidium da705e8167 (svn r8721) -Fix (8715): road vehicles could not turn around properly 18 years ago
rubidium b5dade8098 (svn r8715) -Codechange/cleanup: replace magic numbers related to state of road vehicles with enums. Original patch by mart3p. 18 years ago
rubidium fd645aa845 (svn r8712) -Codechange/cleanup: replace 'magic' constants with enums, use proper types instead of byte, uint etc., give variables more descriptive names and add some comments. 18 years ago
rubidium eb5648f382 (svn r8698) -Codechange: enumify the returns of VehicleEnterTile 18 years ago
rubidium 3f74dbe5c0 (svn r8694) -Codechange: make RoadStop's status accessible via accessor functions. 18 years ago
rubidium 654aca2b32 (svn r8692) -Cleanup: add comments to RoadVehController. Patch by mart3p. 18 years ago
bjarni f626458af7 (svn r8610) -Codechange/Feature: rewrote the list handling in the autoreplace window
-The user will notice the following changes:
      All vehicle types behaves in the same way
      Adding/removing an engine (new design and so on) can no longer result in the window selecting a new engine
      All valid replacements will be displayed since it looks at refitting options as well (this solves the missing ships with the newships GRF)
      Since you can't replace an engine into itself, the engine selected in the left list will no longer appear in the right list

   -The code changes:
      Instead of looping all engines all the time, each list generates a list like the build windows
        This ensures consistent list generation since only one function can loop all engines
      Unified code for all vehicle types
      It now use the lists to call the drawing code in the build vehicle window
      Works on selected EngineIDs instead of selected index in the list
18 years ago
rubidium ec301e0f8a (svn r8609) -Fix: a road vehicle that is very close after another (slower) road vehicle gets its speed reset to 0 when entering a tunnel, which causes a traffic jam outside of the tunnel. 18 years ago
tron cf5514ce8d (svn r8550) -Fix
Building a vehicle does not involve allocating orders, so do not check whether orders could be allocated
18 years ago
tron 059552f2d9 (svn r8538) -Fix
GetRoadStopByTile() cannot return NULL. Remove therefore unnecessary check
18 years ago
celestar c09e73a5e5 (svn r8536) -Fix (FS#577): Road Vehicles now can obtain a slot even if the station is very spread out 18 years ago
tron 36d965a697 (svn r8474) -Fix
Turn GetPrimaryRoadStop() into a method of struct Station
18 years ago
tron fa8f46c88e (svn r8425) -Fix
Do not try to invalidate a window which just got deleted. It is pointless
18 years ago
tron d858077fd2 (svn r8424) -Fix
Do not call ClearSlot() just before calling DeleteVehicle(), which does it too
18 years ago
celestar dfb5556376 (svn r8402) -Codechange: Move RoadStop-specific enums to the RoadStop class, and changed a one-member enum into a static const. Simplify their naming and add some doxygen-comments to RoadStop 18 years ago
peter1138 ca9843424b (svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit values.
This lets us increase the sprite width from 14 to up to 29 bits, 
effectively nulling the old sprite limit. Table changes in next commit.
18 years ago
KUDr 92e42d621d (svn r8110) -Codechange: direct Vehicle::current_order.type changes (to OT_LOADING and OT_LEAVESTATION) replaced by v->BeginLoading() and v->LeaveStation() calls. This should allow easy hooking of those state transitions in order to maintain vehicle loading queue. 18 years ago
rubidium a7d0cdf95f (svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b. 18 years ago
KUDr 07c30785ab (svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp) 18 years ago