Commit Graph

331 Commits

Author SHA1 Message Date
smatz 871107f529 (svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index) 2009-05-17 01:00:56 +00:00
smatz 6221d74644 (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 2009-05-16 23:34:14 +00:00
smatz 683a6ca039 (svn r16308) -Fix: parameter is invalid when it's equal to length of an array (Yexo) 2009-05-14 23:40:03 +00:00
rubidium 5f81ba886c (svn r16297) -Codechange: silence more ICC warnings 2009-05-13 17:39:00 +00:00
frosch 552f10bb09 (svn r16268) -Fix (r9876): When callback 2E returns an amount of 0, do not transport 1 unit to the station. 2009-05-10 15:42:59 +00:00
rubidium 59d45a04d6 (svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible. 2009-04-21 23:40:56 +00:00
rubidium 2ec09d95a1 (svn r16114) -Cleanup: unify some more strings and remove some more unused strings 2009-04-21 20:20:53 +00:00
frosch faa1ec7a5d (svn r16077) -Cleanup (r14456): Remove some code that is only used for some assertions, that haven't been triggered for a while. 2009-04-18 11:08:10 +00:00
rubidium 34cc30e7fb (svn r16057) -Fix [FS#2834] (r16037): division by zero when having an order with only one station that has either middle or near end stop location and where the platform is (significantly) longer than the train. 2009-04-13 22:27:21 +00:00
rubidium 5790293af6 (svn r16037) -Feature: allow (per order) to let a train stop at the near end, middle or far end of a platform from the point of view of the driver of the train that enters the station. 2009-04-12 14:11:14 +00:00
rubidium f99b125c84 (svn r16029) -Fix [FS#2785]: do not give "... Mines" as name to the station of oil rigs, or more general: do not add "... Mines" when the all of the cargoes are part of the liquid, passenger or mail classes. 2009-04-11 17:09:38 +00:00
rubidium f16aa9f509 (svn r16025) -Fix [FS#2818]: "build separate station" in the station picker would reuse deleted stations. 2009-04-10 22:47:19 +00:00
rubidium 7bbdd4f119 (svn r15747) -Fix [FS#2736]: road ownership getting lost when removing a road stop. 2009-03-16 20:45:32 +00:00
rubidium b25a4f8231 (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 2009-03-15 00:32:18 +00:00
rubidium 7831346ef8 (svn r15601) -Fix [FS#2615]: bridges/tunnels don't store tram owner making it possible to remove someone's tram tracks.
-Feature: allow building road stops on road/tram tracks of competitors.
2009-03-02 22:57:47 +00:00
smatz 3fdac6f702 (svn r15588) -Fix: change owner of waypoints and deleted stations when merging companies or when a company benkrupts 2009-02-26 14:07:42 +00:00
frosch c5684e56ec (svn r15583) -Fix: Do not use TILE_MASK when you do not want to wrap around them map. 2009-02-25 21:29:50 +00:00
glx d6e8601a62 (svn r15438) -Fix (r15434): MSVC performance warning 2009-02-10 04:23:37 +00:00
rubidium d846eef0b6 (svn r15434) -Codechange: bit of type safety for the DC_xxx flags. 2009-02-09 21:20:05 +00:00
rubidium c0a8d09ca7 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 2009-02-09 02:57:15 +00:00
rubidium 377ce6c5bf (svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability. 2009-02-08 12:25:13 +00:00
smatz 0d3f5e6e74 (svn r15299) -Cleanup: remove many redundant includes 2009-01-31 20:16:06 +00:00
belugas d7971e5e37 (svn r15293) -Feature [FS#2583]: Give a more meaningful message when towns refuse construction of noise-controlled airports 2009-01-29 03:12:31 +00:00
smatz 659989af45 (svn r15278) -Fix [FS#2332]: test noise limit of nearest town instead of st->town 2009-01-26 21:09:17 +00:00
peter1138 792d1bd883 (svn r15073) -Fix (r15067) [FS#2532]: Default copy constructors don't necessarily do what you want. Instead of creating one, we now pass a pointer around as that avoids additional allocations. 2009-01-13 20:43:53 +00:00
peter1138 02bda12599 (svn r15067) -Fix [FS#2531]: Possible compiler bug, alleviated by using SmallVector instead of using std::set. SmallVector does everything needed anyway. 2009-01-13 18:18:53 +00:00
smatz 26e5ccb60d (svn r15039) -Codechange: fix comments regarding old AI, remove one old AI hack 2009-01-12 19:49:23 +00:00
truebrain a3dd7506d3 (svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to see.
NoAI is an API (a framework) to build your own AIs in. See:
   http://wiki.openttd.org/wiki/index.php/AI:Main_Page
 With many thanks to:
  - glx and Rubidium for their syncing, feedback and hard work
  - Yexo for his feedback, patches, and AIs which tested the system very deep
  - Morloth for his feedback and patches
  - TJIP for hosting a challenge which kept NoAI on track
  - All AI authors for testing our AI API, and all other people who helped in one way or another
-Remove: all old AIs and their cheats/hacks
2009-01-12 17:11:45 +00:00
frosch f5cff71284 (svn r14992) -Codechange: Rename 'CheckIfAuthorityAllows' to 'CheckIfAuthorityAllowsNewStation' and unduplicate a tiny bit of code. 2009-01-11 14:26:11 +00:00
smatz 0cd41d1dc6 (svn r14958) -Codechange [FS#1923]: when checking for unique names, compare only with manually set names
There are situations that aren't solvable (because of different language files), so if the user really wants to have duplicated name, allow him to do so. It solves desyncs between server and clients using different languages. It behaves the same in SP and MP, so users won't see the different behaviour as a bug (and even checking in SP could be worked around by the user).
2009-01-10 15:54:07 +00:00
rubidium db546e607f (svn r14956) -Fix [FS#1832]: building new station parts didn't allocate a new station spec effectively breaking variable 41. This was due to the limited number of station specs that we can have per station. This fix makes newly build station parts create a new spec until one cannot allocate new station specs anymore and it'll revert to the old behaviour (sharing station specs). 2009-01-10 14:30:01 +00:00
rubidium 1b546505d2 (svn r14955) -Fix: newgrf station specs didn't get deallocated when building a new station part over them. 2009-01-10 14:01:17 +00:00
rubidium f0b0691bfe (svn r14933) -Codechange: check the whether a pool item can be constructed instead of trying to make it and check for NULL. 2009-01-09 14:59:02 +00:00
rubidium c8c61e36bd (svn r14919) -Feature: distant joining of stations (Frostregen and PhilSophus) 2009-01-08 16:35:45 +00:00
rubidium 9877b71ee0 (svn r14853) -Codechange: rename GetClosestStationFromTile to GetClosestDeletedStation as that's what it does instead of finding non-deleted stations. 2009-01-05 21:06:38 +00:00
smatz 7368c740a6 (svn r14828) -Codechange: move most of save/load-specific code to separate files 2009-01-04 15:32:25 +00:00
rubidium 1357b0a4c2 (svn r14789) -Feature: allow scrolling with the left mouse button pressed (if enabled). Primarily useful for systems with touch screen (aapo) 2009-01-02 22:42:05 +00:00
rubidium 87e5a8b52b (svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter. 2008-12-28 14:37:19 +00:00
smatz 419f6e099f (svn r14743) -Codechange: use INVALID_TILE to indicate station doesn't have queried facility (or station/roadstop is invalid) instead of 0 (Yexo) 2008-12-26 18:01:15 +00:00
smatz d1ea050232 (svn r14700) -Fix (r1): loading of very old savegames was broken (STNS chunk is stored before MAP in old savegame) 2008-12-20 01:35:12 +00:00
frosch 259a073f0c (svn r14606) -Codechange: Unify usage of PALETTE_MODIFIER_TRANSPARENT and PALETTE_MODIFIER_COLOR in spritelayout drawing.
-Fix [FS#2419]: The modifiers were not applied in all cases.
2008-11-22 16:04:11 +00:00
frosch b759ccd032 (svn r14604) -Codechange: Simplify a function and rename it, and fix some comments. 2008-11-22 15:48:43 +00:00
rubidium a1853ea27c (svn r14598) -Feature: Action0Industries property 24 (industry suuplies default name for nearby station). 2008-11-19 23:55:34 +00:00
frosch 11ef57d81e (svn r14529) -Codechange: Turn FindCatchmentRadius() into Station::GetCatchmentRadius(). 2008-10-25 14:19:09 +00:00
rubidium a14ad77a36 (svn r14528) -Codechange: cache the closest town for all road tiles instead of only roads owned by tiles. This replaces a O(n) search over all towns from the road's tileloop with a O(1) lookup (PhilSophus) 2008-10-25 13:51:47 +00:00
rubidium 7588513003 (svn r14526) -Fix [FS#2379]: make sure trains stop at the end of a station; a 3/8th length train did stop 2/8th of it's length too early causing a 63/8th long train not to fit in a 4 tile station. 2008-10-24 20:53:57 +00:00
smatz bb4a4a255d (svn r14508) -Fix (r14501): arrays were not properly zeroed 2008-10-21 14:56:23 +00:00
rubidium 9df75b3f9e (svn r14501) -Codechange: use sizeof(variable) instead of sizeof(type) or hardcoded amounts (magic constant) for memset (Alberth) 2008-10-20 15:42:56 +00:00
frosch 5a1df325e2 (svn r14488) -Fix: Synchronize drawing of spritelayouts in DrawTileLayout (Houses), IndustryDrawTileLayout, DrawStationTile, DrawTile_Station and DrawTile_Track (Waypoint).
Now transparency options, PALETTE_MODIFIER_TRANSPARENT and SPRITE_MODIFIER_OPAQUE should work for all of them.
2008-10-18 17:21:56 +00:00
frosch dea505cbb8 (svn r14459) -Fix [FS#2343]: Update station-spread when building or removing oilrigs to make them consistent with station-spread-calculation on game-load and to make oilrig-stations behave like any other station type. 2008-10-12 10:22:13 +00:00