Commit Graph

9588 Commits

Author SHA1 Message Date
smatz
fdc4d1922d (svn r13626) -Fix (r11871): signals were not updated when player removed signals from nonexistent track sharing bits with existing track
So disallow removing signals from nonexistent track
2008-06-24 23:38:10 +00:00
rubidium
ecbd249dc4 (svn r13624) -Fix [FS#2106]: crash when one tries to raise the nothern corner of MP_VOID tiles (i.e. the southern corner of the tiles on the southern map edge) in the scenario editor. 2008-06-24 15:58:01 +00:00
rubidium
6002e3d643 (svn r13623) -Codechange: only show the 'load' of articulated RV parts that have a capacity instead of showing 'empty' parts when a vehicle is completely full. 2008-06-24 13:49:13 +00:00
rubidium
c81e4e3d7e (svn r13622) -Fix [FS#2109]: only the front of a RV would be considered when determining to what cargos a vehicle can be refitted instead of all cargos. 2008-06-24 13:47:15 +00:00
rubidium
65a4dc8902 (svn r13621) -Fix: building roadbits in the wrong direction on bridges or building roadbits from underneath the bridge to the bridgehead is impossible, so don't silently ignore that error when building over houses and industries is not ignored. 2008-06-24 11:42:01 +00:00
smatz
96d880ea9e (svn r13619) -Codechange: use 'const char *' instead of std::string for blitter and driver names
Removes indirect dependency on <string> for 20 files, reduces binary size by 16kB
2008-06-24 09:15:45 +00:00
smatz
40d5242f91 (svn r13618) -Codechange: move tar-specific declarations to separate file
Removes indirect dependency on <string> and <map> for over 40 files
2008-06-24 09:05:24 +00:00
skidd13
241435226c (svn r13617) -Codechange: calculate the diff in StationWaitingSorter directly 2008-06-23 22:51:21 +00:00
rubidium
c8d2db3e04 (svn r13612) -Fix [FS#2104]: wrong comment of CmdSetAutoReplace. Patch by Yexo. 2008-06-23 08:49:09 +00:00
rubidium
d87b6c3937 (svn r13611) -Fix [FS#2100]: if the first bridge can't be build for a given length, then none of the other bridges can. Effectively meaning that if someone replaces the first bridge with a bridge that can be only 3 tiles longs then only other bridges that can be 3 tiles long will be buildable, but only if they are 3 tiles long. 2008-06-23 08:38:07 +00:00
smatz
7772e9e68f (svn r13609) -Codechange: silence warnings about unused variables for gcc2 builds without asserts 2008-06-22 18:44:28 +00:00
skidd13
6169c3fc17 (svn r13607) -Fix (r13606): some coding style issues got fixed but some got/stayed broken 2008-06-22 15:41:38 +00:00
skidd13
8b7d893d85 (svn r13606) -Codechange: use "static FORCEINLINE" where possible as default for core functions (big functions use just inline instead) 2008-06-22 15:21:51 +00:00
belugas
ccd27d1e5b (svn r13603) -Feature{newGRF]: Add var 65 in Variational Action 2 Variables for Houses.
This var will return the manhattan distance of the nearest house that match a given criteria.
The criterias can be: 0 : house ID/ 1 : Class ID/ 2 : grf ID
The search radius can be defined too, up to 64.
2008-06-21 23:59:38 +00:00
smatz
6cb9d3802d (svn r13602) -Codechange: little speedup for 8bpp-optimized blitter 2008-06-21 20:58:34 +00:00
smatz
d4a4075dc6 (svn r13601) -Codechange: resize the Tile Info window when it is needed, make it better readable 2008-06-21 18:59:15 +00:00
belugas
915a9ea6bd (svn r13597) -Codechange: Enumification of the Map menu items.
The rework allowed to remove a function, by merging two quite similar ones.
2008-06-21 01:40:56 +00:00
frosch
aadd3b29af (svn r13594) -Feature(ette)[FS#2093]: Supply newgrfs with 'day of month', 'leap year' and 'day of year'. 2008-06-20 21:14:10 +00:00
smatz
3d56c07440 (svn r13593) -Fix [FS#2095](r13524): sorting by cargo capacity was broken 2008-06-20 20:40:47 +00:00
skidd13
5e21504107 (svn r13592) -Fix: window size remembering was broken 2008-06-20 14:54:47 +00:00
peter1138
1d5c418fbe (svn r13591) -Codechange: Support CB36 in the vehicle offer window. 2008-06-20 07:23:00 +00:00
belugas
84df01f00b (svn r13590) -Codechange: Enumification of the Save/Load menu items 2008-06-20 01:55:00 +00:00
smatz
c1a1e28b88 (svn r13589) -Fix (r11802): signals could be propagated through waypoints built in orthogonal axis 2008-06-19 20:06:55 +00:00
belugas
6fa570762c (svn r13588) -Documentation: Document the function PopupMainPlayerToolbMenu. Makes it a bit clearer, don't you think? 2008-06-19 20:04:24 +00:00
skidd13
ec261a6456 (svn r13587) -Codechange: make some globals members of VehicleListBase since they are used as such
-Cleanup: some small things referring the change
2008-06-19 19:58:30 +00:00
belugas
0fdb8057bb (svn r13586) -Codechange: Using default parameter, for cases where there are few exceptions. 2008-06-19 19:58:26 +00:00
bjarni
7fa33c28a9 (svn r13584) -Fix: [OSX] Fixed issue where 10.5 failed to switch to fullscreen
This is done by selecting the 32bpp-anim blitter by default as it seems Apple removed some 8bpp support
  Since this is done at runtime the same binary will still select 8bpp on 10.3 and 10.4
2008-06-19 17:54:23 +00:00
rubidium
5b615eae3a (svn r13581) -Fix [FS#2040]: RVs continueing onto next DT station when they are build adjacent to them. 2008-06-19 13:04:41 +00:00
rubidium
aef8a214c3 (svn r13579) -Fix [FS#2088]: process the order coming after a conditional order, otherwise the vehicle would already leaving the station before it knows where the next destination is, making it leave in the wrong way. However, after processing as many conditional orders as there are in the order list it will stop processing them in order to not create an infinite loop. 2008-06-19 11:45:52 +00:00
rubidium
b9ed846df4 (svn r13578) -Merge: documentation updates from the 0.6 branch. 2008-06-19 11:45:44 +00:00
skidd13
a192d5c7a3 (svn r13577) -Change: group core files in source.list together 2008-06-19 10:40:19 +00:00
rubidium
dd0a66e202 (svn r13576) -Codechange: disable static NewGRFs when non-static NewGRFs query them in the context of network games. This makes it impossible for static NewGRFs to disable non-static NewGRFs and 'bad' things happening because the non-static NewGRF doesn't know about the static NewGRF. 2008-06-19 10:20:45 +00:00
skidd13
ad9b19b77a (svn r13575) -Codechange: Move small vector to core since it fits better in there
-Codechange: convert smallvector from struct to class
2008-06-19 10:19:02 +00:00
skidd13
a7e3f09f7c (svn r13574) -Doc: Document the small vector template class 2008-06-19 09:33:50 +00:00
skidd13
1818d5c2e1 (svn r13573) -Codechange: Use smallvec class functions instead of class members 2008-06-19 09:32:25 +00:00
rubidium
ae91120307 (svn r13572) -Fix: MSVC x64 complains. 2008-06-19 09:15:52 +00:00
smatz
5259d13da7 (svn r13571) -Codechange: define channels in struct Colour in different order on LE and BE machines 2008-06-18 21:19:04 +00:00
smatz
25db4b3aae (svn r13568) -Fix (r13564): Windows build asserts where I wouldn't expect it to 2008-06-18 20:20:12 +00:00
smatz
811ae0ac3f (svn r13565) -Change [FS#2077]: when invisibility is set, sprite sequences are now drawn until first non-opaque sprite is found (bit 14 not set)
This is to balance performance, code complexity and NewGRF requirements
2008-06-18 16:48:58 +00:00
smatz
883ffd1683 (svn r13564) -Codechange: do not use SetPixel in PaletteAnimate, access destination directly instead. Makes palette animation ~40% faster. 2008-06-18 13:11:02 +00:00
belugas
424a7935ad (svn r13562) -Codechange: Yet another enumification, which required a bit of explanation/documentation of a trickery some would call a hack 2008-06-18 03:19:31 +00:00
belugas
5e8e2709d0 (svn r13561) -Codechange: two more enumifications of widgets 2008-06-18 02:38:28 +00:00
belugas
db174b8b9b (svn r13560) -Fix(r13550): This section widget_count did not required to be lowered. So small revert 2008-06-18 02:04:01 +00:00
belugas
b8b47dcf50 (svn r13559) -Codechange: Enumification of the Options menu items 2008-06-17 23:51:17 +00:00
smatz
cf489a25b0 (svn r13552) -Codechange: use TTD_ENDIAN comparations instead of tests if TTD_[BIG/LITTLE]_ENDIAN is defined 2008-06-17 19:38:00 +00:00
smatz
4e2e078743 (svn r13551) -Codechange: store offsets to different zoom levels in a distinguished struct instead in the data stream for 8bpp-optimized 2008-06-17 17:25:22 +00:00
belugas
4bbe69f881 (svn r13550) -Fix(r13540, r13542): widget_count did not had the same value as 27. So, it has to be lowered by one, so it can be used as a widget "pointer" 2008-06-17 16:33:55 +00:00
peter1138
ea965c21e1 (svn r13544) -Codechange: Add support for NewGRF varaction2 variable 5F. 2008-06-17 07:05:17 +00:00
belugas
fb4619c8ea (svn r13543) -Codechange: Enumification of the InGame toolbar and some leftovers of scenario editor one.
Still more go do
2008-06-17 03:20:04 +00:00
belugas
365705209b (svn r13542) -Codechange: Less a few more magic numbers and a code a bit more adaptable, still 2008-06-17 03:13:09 +00:00