Commit Graph

893 Commits

Author SHA1 Message Date
celestar 8eab3964b4 (svn r8707) -Codechange: Turn IsValidStation into a method of Station 2007-02-13 15:42:52 +00:00
celestar 6f68ac46b8 (svn r8705) -Codechange: Increased the number of airport blocks to 64. This involves changing the enum of airport blocks to a static const uint64 as SOME platforms do not support 64-bit enums 2007-02-13 12:34:54 +00:00
rubidium a419f4aeda (svn r8698) -Codechange: enumify the returns of VehicleEnterTile 2007-02-13 10:26:53 +00:00
rubidium eab6dd9898 (svn r8694) -Codechange: make RoadStop's status accessible via accessor functions. 2007-02-13 00:25:42 +00:00
rubidium 6bbbedc8cc (svn r8635) -Fix: draw canal edges under buoys that are in a canal. 2007-02-08 14:04:02 +00:00
rubidium d95a872579 (svn r8619) -Fix: store the ownership of a water tile in the buoy tile and set the ownership of the water tile when the buoy is removed. This solves the issue of removing ownership from canal tiles thus making is possible for other players to remove the canal tile. 2007-02-07 17:52:21 +00:00
KUDr e66028538a (svn r8540) -Fix[YAPF]: Assert when buoy is placed on NE or NW map edge (Dan) 2007-02-02 20:20:56 +00:00
tron 4216c10eb1 (svn r8539) -Fix
static
2007-02-02 19:09:54 +00:00
tron be26fbcbb3 (svn r8531) -Fix
Remove unnecessary pointer mumbo-jumbo from FindRoadStopSpot()
2007-02-02 08:23:48 +00:00
celestar 90528dc78e (svn r8528) -Codechange: Rename IsBuoy_() to IsBuoy() now that the naming conflict no longer exists. 2007-02-02 07:48:06 +00:00
celestar 5678febfe2 (svn r8514) -Codechange: Turn IsBuoy into a method of stations 2007-02-01 16:48:38 +00:00
Darkvater 3c2cb4871e (svn r8507) -Codechange/Feature: Don't remove player-owned property on-load in the scenario editor. Add a button to the landscape window to do this. 2007-02-01 12:51:10 +00:00
tron 43242302e0 (svn r8499) -Fix
-Fix (?): When removing an oil rig replace the station tile by water, not bare land
2007-01-31 21:42:58 +00:00
tron fe1691acce (svn r8477) -Fix
-Codechange: Remove the unnecessary attributes Station::{bus,lorry}_tile_obsolete by replacing them with a scan of the map for existing road stops when loading old savegames
2007-01-31 06:25:46 +00:00
tron 6e20c73c33 (svn r8476) -Fix
Remove the unused remnants of {bus,truck}_stop_status_obsolete
(though I wonder a bit why this information doesn't get converted on load *shrug*)
2007-01-31 05:08:07 +00:00
tron 5d4241db30 (svn r8475) -Fix
Remove the unused remnants of blocked_months_obsolete
2007-01-31 05:01:29 +00:00
tron f5b41a2fbb (svn r8474) -Fix
Turn GetPrimaryRoadStop() into a method of struct Station
2007-01-31 04:34:56 +00:00
tron e3b63e6d83 (svn r8449) -Fix
-Codechange: Remove the superfluous attribute RoadStop::prev
2007-01-28 21:54:40 +00:00
KUDr 201ba1f5c3 (svn r8414) -Codechange: Use own AutoPtrT instead of std::auto_ptr.
-Simplifies assignment from raw pointers
 -Should be harder to crash the program by incorrect assignment into it.
 -Should help with MorphOS compilation errors
2007-01-26 11:38:07 +00:00
celestar 113fa175a4 (svn r8403) -Fix (r8402): Forgot to remove an enum 2007-01-25 11:11:43 +00:00
celestar b0a0086e7c (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 2007-01-25 10:06:58 +00:00
tron e85cd647e1 (svn r8400) -Fix
Simplify r8399
2007-01-25 07:11:06 +00:00
glx 35de25eec1 (svn r8399) -Fix (r8185): a new road stop was always created in CmdBuildRoadStop(), but it was not deleted if DC_EXEC flag was not set or if the station creation failed 2007-01-25 01:29:24 +00:00
KUDr 147ca22060 (svn r8231) -Fix (r8125): MP desync caused by calling Random() from station constructor. This was wrong because station constructor is called also when loading savegame and when player tries to build station when it is not sure that it will succeed (thanks Rubidium) 2007-01-18 09:34:44 +00:00
tron 3be30b8842 (svn r8212) -Fix
Remove the unnecessary attribute RoadStop::used. The same information can be derived from RoadStop::xy
2007-01-17 22:32:34 +00:00
tron 3d1735fcfd (svn r8207) -Fix
Remove the write-only attribute RoadStop::station
2007-01-17 21:14:17 +00:00
peter1138 61f5cf9b6f (svn r8186) -Fix (FS#557): Apply railtype offset to station graphics if no custom station is in use. 2007-01-17 12:57:35 +00:00
celestar 8c54793068 (svn r8185) -Codechange: Equipped Roadstops with new/delete operators and gave them proper constructors/destructors (Thanks to KUDr for a nice interactive C++ lesson) 2007-01-17 11:15:51 +00:00
rubidium 3d6b021faa (svn r8161) -Fix (FS#555, r8144): enroute_from_xy was not set properly for old savegames. 2007-01-16 18:31:58 +00:00
peter1138 9b73684733 (svn r8153) -Codechange: Change UpdateStationAcceptance() and ShowRejectOrAcceptNews() to work with cargo IDs instead of cargo names, and explicitly list the different strings to use. 2007-01-16 11:13:00 +00:00
celestar 05b783e551 (svn r8144) -Fix: [FS#163] When a station is removed, vehicles do not get excessive payment any longer, as the origin TILE is now stored as long as the origin STATION for the transported cargos. Basically this is only a temporary fix until cargopackets are implemented, but it fixes one of the oldest known bugs (Special Thanks to Darkvater for lots of testing) 2007-01-15 14:42:24 +00:00
KUDr fd383668f8 (svn r8139) -Cleanup: simplify auto_ptr initialization (Tron) 2007-01-14 23:43:59 +00:00
rubidium 48611e1e20 (svn r8137) -Fix (FS#551, r4259, r4320): roadstop->num_vehicles was wrong for savegames with version 24 or lower and do not calculate roadstop->num_vehicles when reading the roadstops as the vehicles might not be loaded at that moment. 2007-01-14 23:09:25 +00:00
KUDr cd74706c54 (svn r8136) -Codechange: Station spread rectangle manipulators turned into StationRect::methods. 2007-01-14 23:02:12 +00:00
peter1138 92d418b031 (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.
2007-01-14 19:57:49 +00:00
KUDr 19d31c7417 (svn r8127) -Fix (r8125): removed redundant free() call which is also in Station destructor (Tron) 2007-01-14 19:44:27 +00:00
KUDr 1eac31a1d8 (svn r8126) -Fix (r8125): missing #include fixes compilation error on g++ (still some warnings, working on it) 2007-01-14 19:29:21 +00:00
KUDr 8b65342449 (svn r8125) -Codechange: Station is now constructed/destroyed using new/delete operators (don't worry, they still use the same memory pool). Few station related functions turned into Station::methods (just first step). All this new stuff moved from station_cmd.cpp to the new file (station.cpp). 2007-01-14 19:18:50 +00:00
peter1138 bfa618ef89 (svn r8120) -Fix (r8055): Station cargo waiting value clamp should be signed not unsigned. This resulted in cargo magically appearing... 2007-01-14 18:38:40 +00:00
KUDr 33be1ecfb1 (svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the pointer to allocated memory instead of modifying the pointer given as parameter 2007-01-11 17:29:39 +00:00
celestar 2ac0410767 (svn r8055) -Codechange: Replace the different max, dmax, maxu whatever macros by a simple template function max(), that requires two arguments of the same type. While I'm at it change a variable called "max" to "maxval" in a function that calls max(). 2007-01-11 11:05:01 +00:00
rubidium f35ed4bbc2 (svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b. 2007-01-10 18:56:51 +00:00
KUDr e373ea7096 (svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp) 2007-01-10 18:12:09 +00:00
Renamed from src/station_cmd.c (Browse further)