Commit Graph

2253 Commits

Author SHA1 Message Date
glx
c0e5ca11dc (svn r11278) -Fix [FS#1342] (r11269): modulo result can be negative for signed int 2007-10-16 20:59:53 +00:00
glx
389391f9ec (svn r11277) -Fix (r8498): the check for ghost station (on water industries) always removed station for non-oilrig 2007-10-16 20:44:59 +00:00
rubidium
3bcfe14cd1 (svn r11276) -Codechange: be more consistent with naming of some accessors.
-Fix: make sure canals are never owned by water. Based on a patch by boekabart.
2007-10-16 19:48:58 +00:00
rubidium
8c33d938cb (svn r11275) -Fix: oldloader crashing when referencing a vehicle that is not yet loaded. 2007-10-16 19:27:24 +00:00
belugas
cba9def0ba (svn r11272) -Codechange: Truncate text describing the grf file in the NewGrf settings gui 2007-10-16 00:35:59 +00:00
rubidium
2cb0906c58 (svn r11271) -Fix [FS#1333]: some (very) old games (TTD original scenarios for example) would give a new vehicle spree, even though the vehicles were introduced decades ago. 2007-10-15 20:49:11 +00:00
rubidium
d63262ddb9 (svn r11270) -Fix (r11269): black people only have one eye colour. 2007-10-15 20:33:11 +00:00
rubidium
5164e57416 (svn r11269) -Feature: user customisable faces. Patch by BigBB. 2007-10-15 19:59:27 +00:00
belugas
1280c7636d (svn r11268) -Fix[FS#1336]: Call IsSlopeRefused whenever it is required. Looks like there was one spot missing. Thanks frosch 2007-10-15 18:36:20 +00:00
miham
506107ea9d (svn r11267) -Update: WebTranslator2 update to 2007-10-15 19:58:13
brazilian_portuguese - 1 fixed by fukumori (1)
bulgarian  - 12 fixed by thetitan (12)
norwegian_bokmal - 118 fixed, 32 changed by jhsoby (150)
swedish    - 1 fixed by ChrillDeVille (1)
ukrainian  - 22 changed by mad (22)
2007-10-15 17:58:42 +00:00
belugas
c5a8f4a857 (svn r11266) -Documentation: Add a few comments. Parts of BigBB's work on shores 2007-10-15 00:06:59 +00:00
maedhros
ee4823857f (svn r11265) -Feature: Make more advanced rail types more expensive to build. 2007-10-14 21:20:12 +00:00
rubidium
85b56a9c15 (svn r11264) -Codechange: replace a lot of magic numbers with enums for the rail and road GUIs. Patch by skidd13. 2007-10-14 20:24:42 +00:00
rubidium
7a20f662ac (svn r11263) -Codechange: Reduce code duplication between DrawBridgePillars and HasFoundation{NW|NE}. Patch by frosch. 2007-10-14 20:16:44 +00:00
rubidium
633004402a (svn r11262) -Fix [FS#1330]: do not check for vehicles that are not on the ground when removing owned land, furthermore do not check for shadows (of aircraft). 2007-10-14 20:12:51 +00:00
rubidium
8b5b748029 (svn r11261) -Codechange: Draw selection sprites (HT_RECT, HT_POINT, HT_RAIL) on foundations as ChildSprite of the foundation, not as single ParentSprite. Patch by frosch. 2007-10-14 19:57:15 +00:00
rubidium
ad128da526 (svn r11260) -Codechange: replace a magic number by a less magic enumified constant. Patch by ammler. 2007-10-14 19:48:48 +00:00
rubidium
198ea304ad (svn r11259) -Fix [FS#1331]: the wrong song was played in the first intro game of a single OTTD session. 2007-10-14 19:46:00 +00:00
rubidium
3d4bc58dc4 (svn r11258) -Fix [FS#1325]: if a Load Amount callback returns 0, it means (according to TTDP's source code, not "the" specs) that it should take the "default" one. 2007-10-14 19:13:38 +00:00
glx
0cc8449101 (svn r11257) -Fix (r11145): wrong endian used when preparing text ref stack 2007-10-14 14:50:07 +00:00
belugas
5a64bb79d8 (svn r11256) -Codechange: Make opening a new toolbar not overlapping its parent one, by locating it under the parent, and aligned with the left side of it.
FS#1310, by BigBB
2007-10-14 00:26:24 +00:00
glx
748d5141cd (svn r11255) -Fix [FS#1332]: industry counter was not updated on TTD savegame loading 2007-10-13 16:56:29 +00:00
glx
21547b46ef (svn r11253) -Fix (r9411): industries can still use cargo they define, even if these cargo are disabled by a grf loaded later 2007-10-13 02:49:05 +00:00
glx
73fcdf77e0 (svn r11252) -Revert r11239, Fix r9620: cargo translation was not done correctly 2007-10-13 02:23:11 +00:00
belugas
a8936b771b (svn r11251) -Fix[FS#1318]: Newindustries must not rely on the old check placement functions. It is the the job of callbacks. Therefor, upon substitution, disable the said check.
Warning, plenty of industries are going to be generated ;)
2007-10-13 00:49:13 +00:00
miham
838e379fcf (svn r11249) -Update: WebTranslator2 update to 2007-10-12 22:42:24
afrikaans  - 110 fixed, 141 changed by TrueTenacity (251)
catalan    - 1 fixed by arnaullv (1)
czech      - 1 fixed by Hadez (1)
french     - 1 fixed by glx (1)
slovak     - 1 fixed by lengyel (1)
slovenian  - 1 fixed by Necrolyte (1)
spanish    - 1 fixed by eusebio (1)
turkish    - 11 fixed by jnmbk (11)
ukrainian  - 3 fixed by mad (3)
2007-10-12 20:43:01 +00:00
belugas
4fe401b7d6 (svn r11248) -Fix[FS#1314]: The logic behind industry slot allocation was implying that the only condition an override could be placed in a slot is that there were no previous override.
That is not exact: the slot must not have been occupied by an industry coming from a grf.
So now, tourist center is available if more then one grf is used
2007-10-12 15:54:49 +00:00
belugas
276aad47f9 (svn r11247) -Fix: The Industry's name to fund could be larger than the window itself. Now, it fits within the physical allowed space 2007-10-12 00:43:18 +00:00
belugas
91cf35f7cf (svn r11246) -Codechange: beautify some conditions from "if else" into trinary operator 2007-10-11 15:40:53 +00:00
truelight
87cac26fc0 (svn r11245) -Fix r11228: the moreanimation feature made loading TTD(p) games impossible (Csaboka) 2007-10-11 11:32:43 +00:00
truelight
1eabb451ab (svn r11244) -Fix: trees can now be planted on bare land without making it grassy (Csaboka)
-Fix: planting tree in desert doesn't make it grassy for the first tile-cycle (Csaboka)
-Fix: when a tree dies in desert, it no longer becomes a snowy tile for the first tile-cycle (Csaboka)
2007-10-11 11:06:04 +00:00
glx
94c9e65331 (svn r11243) -Fix: update waypoint signs when renaming a town 2007-10-10 01:36:15 +00:00
belugas
56ba73a714 (svn r11242) -Codechange: When displaying the industry funding gui, present the industries in the same order as they are available.
Prior of this, they were separated in processing/organic  and  extractive.
Now, all are mixed, just filtered when required.  This will allow easy comparison with TTDPatch's list. (glx and me)
2007-10-10 01:15:07 +00:00
belugas
22fd539413 (svn r11241) -Fix: Obiwan error on industry animated tiles. Spotted and fixed by Csaboka 2007-10-10 00:42:52 +00:00
glx
b398b6c718 (svn r11240) -Fix [FS#1323] (r11152): forgot to invert a test 2007-10-10 00:01:41 +00:00
glx
401048898e (svn r11239) -Fix (r10495): don't do cargo translation when loading grfs, but do it once all grfs are loaded. This ensure correct accept/produced cargo when a grf uses cargo defined in a grf loaded after itself 2007-10-09 21:40:15 +00:00
rubidium
e4c2b5f4d4 (svn r11238) -Fix [FS#1316]: the orders of trains going to a waypoint where not updated when the waypoint would be moved. 2007-10-09 21:29:34 +00:00
rubidium
f22c5ba602 (svn r11237) -Codechange: reduce code duplication between GetRailFoundation() and CheckRailSlope(). Patch by frosch. 2007-10-09 21:11:23 +00:00
rubidium
038c98bee3 (svn r11236) -Fix [FS#1322]: DeleteVehicleChain can just work as good for all vehicles, instead of not allowing trains to use it (enforced by an assert), but actually using it for trains. Patch by SmatZ. 2007-10-09 20:53:25 +00:00
miham
4624448187 (svn r11235) -Update: WebTranslator2 update to 2007-10-09 19:28:02
croatian   - 1 fixed by tperic (1)
dutch      - 3 fixed by habell (3)
hungarian  - 1 fixed by miham (1)
italian    - 1 fixed by lorenzodv (1)
2007-10-09 17:28:37 +00:00
rubidium
0a6ffecb86 (svn r11234) -Fix [FS#1312]: the explosion vehicles were placed too far to the south. 2007-10-09 15:48:41 +00:00
rubidium
ffba1cc208 (svn r11233) -Fix [FS#1303]: handle some wrong written station NewGRFs a little more gracefully than segfaulting. 2007-10-09 15:28:40 +00:00
glx
7810424862 (svn r11232) -Fix (r10495): industry tile override works like house override, so handle it in the same way 2007-10-09 02:57:29 +00:00
rubidium
646615307e (svn r11231) -Fix [FS#1311] (r11128): Someone misplaced a "static". This results in wrong bounding boxes for tunnels in X direction. Patch by frosch. 2007-10-08 20:42:33 +00:00
rubidium
c8df832678 (svn r11230) -Fix [FS#1228]: one could construct trains out of crashed wagons and engines. Based on a patch by SmatZ. 2007-10-08 20:16:25 +00:00
rubidium
2e8f93a821 (svn r11229) -Fix [FS#1307]: one could sell vehicles that were crashed in a depot, which would still yield money. 2007-10-08 20:06:37 +00:00
rubidium
91ac131014 (svn r11228) -Codechange: implement the "moreanimation" feature of TTDP, so we can properly support newindustries. 2007-10-08 19:56:21 +00:00
miham
2313b7a144 (svn r11227) -Update: WebTranslator2 update to 2007-10-08 20:45:04
afrikaans  - 3 fixed, 236 changed by TrueTenacity (239)
croatian   - 5 fixed by knovak (5)
italian    - 1 changed by lorenzodv (1)
slovak     - 2 fixed by lengyel (2)
spanish    - 2 fixed by eusebio (2)
2007-10-08 18:45:33 +00:00
miham
df8e0a19e1 (svn r11226) -Update: WebTranslator2 update to 2007-10-07 19:56:41
afrikaans  - 48 fixed, 160 changed by TrueTenacity (208)
american   - 5 fixed by WhiteRabbit (5)
brazilian_portuguese - 5 fixed by tucalipe (5)
bulgarian  - 1 fixed by thetitan (1)
catalan    - 5 fixed by arnaullv (5)
czech      - 3 fixed, 1 changed by Hadez (4)
dutch      - 3 fixed by habell (3)
estonian   - 3 fixed, 23 changed by kristjans (26)
french     - 5 fixed by glx (5)
hungarian  - 4 fixed by miham (4)
italian    - 5 fixed by lorenzodv (5)
slovak     - 3 fixed by lengyel (3)
slovenian  - 5 fixed by Necrolyte (5)
spanish    - 3 fixed by eusebio (3)
swedish    - 6 fixed, 12 changed by ChrillDeVille (18)
ukrainian  - 3 fixed by mad (3)
2007-10-07 17:59:46 +00:00
rubidium
bcd2e7448b (svn r11225) -Fix: if a sprite shares the bounding box of another sprite, the offset is unsigned instead of signed. 2007-10-07 15:26:20 +00:00
rubidium
1bf8d64eb8 (svn r11224) -Fix: GRM for cargos has registration entries for both cargo IDs and cargo bitmasks, not only cargo IDs. 2007-10-07 08:48:31 +00:00
belugas
69bb22b919 (svn r11223) -Fix[FS#1306]: Rename and refactor adequately a function that actually returns void and set bits (smatz). 2007-10-07 01:37:06 +00:00
belugas
6f7f7afba4 (svn r11216) -Codechange: Protect the callback who would access var 45 against a randomness that could eventually cause desynchs. Instead, use a controlled random value. 2007-10-06 00:23:30 +00:00
rubidium
df9392a737 (svn r11215) -Codechange: replace magic constants with less magic symbols. Patch by skidd13. 2007-10-05 22:39:15 +00:00
glx
342025d0e1 (svn r11214) -Fix [FS#1296]: planes can't use heliports so refuse these orders 2007-10-05 22:13:35 +00:00
rubidium
af5399fa41 (svn r11213) -Fix [FS#1298]: confusing messages when trying to build a bridge. 2007-10-05 22:10:15 +00:00
rubidium
d92dbbb029 (svn r11212) -Codechange: add support for drawing parts of sprites. Patch by frosch. 2007-10-05 21:49:15 +00:00
rubidium
5ab0426680 (svn r11211) -Fix [FS#1302]: NewGRF GUI scrollbar does funny things when being resized. 2007-10-05 21:31:59 +00:00
rubidium
c30544f8bc (svn r11210) -Codechange: unify the way that selection sprites are drawn. Patch by frosch. 2007-10-05 19:57:20 +00:00
rubidium
c4edf5c6ce (svn r11209) -Codechange: remove some magic numbers and bit magic with appropriate enums and functions. Patch by frosch. 2007-10-05 19:36:13 +00:00
rubidium
0827b314f9 (svn r11208) -Fix [FS#1300]: tunnel excavation could disown somebody elses owned land. Patch by frosch. 2007-10-05 17:55:12 +00:00
glx
d796519e49 (svn r11207) -Fix [FS#1301]: don't use smooth_economy for industries using production callbacks as they may have no production for more than a month 2007-10-05 17:53:45 +00:00
rubidium
ea433ffc64 (svn r11206) -Fix [FS#1299]: half tram bits could be removed in some cases. Based on patches by frosch and skidd13. 2007-10-05 17:53:01 +00:00
rubidium
d8c0298250 (svn r11205) -Codechange: remove some, now obsolete, checks. 2007-10-05 17:50:17 +00:00
belugas
151b50e13b (svn r11204) -Feature: [NewGRF] Add support for Action 00 for Industries and IndustryTiles.
Thanks to :Csaboka for original concept, specs & help. Dalestan for technical explanations.
Pikkabird & Georges for detailled comments on their grf works.  The Alpha testers (You know who you are).
And finally (but not least) Maedhros (newhouses), peter1138(newgrf) Rubidium and glx (numerous and welcome patches)
Remember: it certainly can be buggy.  But be sure that behaviour has been tested in TTDP (if you can) before raising a flag.
2007-10-05 02:21:40 +00:00
belugas
fa1322a740 (svn r11203) -Codechange: Raise the TTDPatch version a little higher, as some new features will be shortly exploitable 2007-10-05 02:06:29 +00:00
belugas
0606562897 (svn r11202) -Feature: [NewGRF] Add support for var 45 for Industries. 2007-10-05 01:46:49 +00:00
rubidium
f54a823129 (svn r11201) -Fix [FS#1283]: minor issue with building one way roads one tile long. Patch by SmatZ. 2007-10-04 20:20:23 +00:00
rubidium
ca46e547de (svn r11200) -Fix [FS#1291]: road vehicles could not overtake on one way roads going to the east. 2007-10-04 20:16:35 +00:00
rubidium
bcebd8b8fa (svn r11199) -Fix: variable 67 and 68 not working correctly.
-Refactor: some code so there is less code duplication.
2007-10-04 07:09:05 +00:00
belugas
cfb9cb8cec (svn r11198) -Fix: When industry override is not possible because it is already been overridden, mark the new candidate as not being an override 2007-10-04 00:59:52 +00:00
belugas
23eed48a92 (svn r11197) -Fix: It is not useful to reset the override of an entity every time a new grf file is been submitted.
Since newhouses showed the way to newindustries(meaning I copied/adapted a lot of code and processes from it), the behaviour was there for newhouses too.
2007-10-03 00:57:54 +00:00
glx
a2ed316770 (svn r11196) -Fix (r11191): _cur_stage was incorrect for GLS_ACTIVATION stage 2007-10-02 20:20:14 +00:00
rubidium
54c7430e46 (svn r11195) -Fix: creation chances for industries during gameplay and during map generation were swapped. 2007-10-02 18:43:17 +00:00
rubidium
8c25b4575c (svn r11194) -Fix: industries with not all tiles custom slope checked (but at least one) would be build on wrongly sloped tiles. 2007-10-02 17:48:17 +00:00
rubidium
5093d8b1cd (svn r11193) -Fix: be more compliant with the specifications of callback #2F (and undocumented side effects in TTDP in corner cases). 2007-10-02 16:56:45 +00:00
belugas
6edbf53177 (svn r11192) -Fix: Little typo with bigger consequences when trying to remove a newindustries aware grf 2007-10-02 01:12:06 +00:00
glx
06059e1f2e (svn r11191) -Fix [FS#1227]: GLS_ACTIVATION stage must be done immediatly after GLS_RESERVE stage, before the GLS_RESERVE stage for the next newgrf. 2007-10-01 18:59:25 +00:00
rubidium
7adec5da36 (svn r11190) -Fix: make snowy roofs of (newgrf) houses also transparent. 2007-09-30 19:33:40 +00:00
rubidium
3fcb5c3023 (svn r11189) -Fix: if the location check callback results in something invalid (i.e. not a callback result), the industry should be allowed to be build as that's how TTDP does it. 2007-09-30 18:53:59 +00:00
rubidium
7350b88bf2 (svn r11188) -Codechange: rewrite of the town action related code (remove some of the magic).
-Feature: possibility to disable exclusive rights and giving money. Both by skidd13.
2007-09-30 17:38:42 +00:00
rubidium
6a2029f4f8 (svn r11187) -Fix: what holds for houses in r11149 also holds for industries. 2007-09-30 15:37:24 +00:00
rubidium
69488b521c (svn r11186) -Fix: only fill the accepted cargo fields once, not multiple times. 2007-09-30 14:29:45 +00:00
rubidium
09182386fb (svn r11185) -Codechange: prepare some more code for the introduction of NewIndustries. Patch by Belugas. 2007-09-28 21:24:25 +00:00
rubidium
86dac1533b (svn r11184) -Codechange: cleanup the code related to backup orders. 2007-09-28 21:15:45 +00:00
rubidium
bba0d120b7 (svn r11183) -Fix [FS#1249]: airports do not need to care about overflying aircraf when removing them, because if they were not in the "flying" state it can't be removed anyway. 2007-09-28 19:24:52 +00:00
rubidium
6222597152 (svn r11182) -Fix [FS#1261] (r11174): bounding boxes caused crashes when zoomed out. Patch by SmatZ. 2007-09-28 19:17:33 +00:00
glx
cc6ac7f539 (svn r11181) -Codechange: add support for newgrf callback 14A (Belugas) 2007-09-28 17:09:50 +00:00
rubidium
5d17b29a17 (svn r11180) -Fix (r11175): crash on load when you don't have any NewGRFs. More interesting is: who plays without them ;) 2007-09-28 17:04:52 +00:00
glx
ab886349ab (svn r11179) -Fix [FS#1262] (r11175): compilation with MSVC was broken 2007-09-28 16:05:40 +00:00
glx
9613a9988c (svn r11178) -Fix: don't check newgrf callback 22 in scenario editor 2007-09-28 00:34:10 +00:00
glx
52f10b2fbd (svn r11177) -Codechange: add support for newgrf callbacks 14B and 14C 2007-09-27 21:47:38 +00:00
glx
18de82b000 (svn r11176) -Revert (r9867): as it is needed for newgrf callbacks 14B and 14C 2007-09-27 21:39:13 +00:00
rubidium
1dbc6bd4c5 (svn r11175) -Codechange: sort the NewGRFs by name, making searching a specific NewGRF a lot easier. 2007-09-27 20:39:46 +00:00
rubidium
d464d7587d (svn r11174) -Codechange: add possibility to show the bounding boxes of sprites using CTRL-B so one can get a better understanding of the used bounding boxes to fix the glitches that still exist. Patch by frosch.
Note that this is not completely glitch free, bounding boxes sometimes aren't removed properly. This is due to the fact that the bounding boxes sometimes are larger than the sprite, which causes a smaller part than the bounding box to be redrawn. This is NOT a bug, but a known implementation limit as we do not want to slow down normal games so the debug graphics are always 100% correct.
2007-09-26 19:27:29 +00:00
rubidium
a28b307c95 (svn r11173) -Codechange: rename some callback enums so they are more uniform. 2007-09-26 17:33:32 +00:00
rubidium
80a3590bf5 (svn r11172) -Codechange: rewrite of town road building and addition of the possibility to clean up unconnected road bits during the local road reconstructions. Based on a patch by skidd13. 2007-09-26 16:12:43 +00:00
rubidium
e582e6364c (svn r11171) -Fix [FS#1257]: disable autoslope for automatically changed stuff (like towns and industries) and enable it in the scenario editor. Patch by frosch. 2007-09-26 14:32:06 +00:00
rubidium
82851876f2 (svn r11170) -Fix (r11152): a variable's type was too small for the data that is going to put into it when NewIndustries are finally activated. For now it just removes a warning and doesn't really fix anything. 2007-09-26 14:21:23 +00:00
rubidium
d041e06070 (svn r11169) -Fix [FS#1255]: obiwan in Blitter::Drawline(), which caused it to clip too much at screen/viewport borders. Patch by frosch. 2007-09-26 14:17:26 +00:00
rubidium
03191bba4b (svn r11168) -Fix [FS#1256]: assert on terraforming of industries. Patch by frosch. 2007-09-26 14:14:51 +00:00
rubidium
ca5ef5477b (svn r11167) -Fix [FS#1260]: Electric trains were not shown as stopped in depots when converting it from elrail -> normal rail. Patch by smatz. 2007-09-26 14:05:09 +00:00
belugas
41ecae2783 (svn r11164) -Fix(r11161): a rogue space roaming in the night... removed 2007-09-26 02:20:58 +00:00
belugas
e4c4c40753 (svn r11163) -Codechange: Verify that the IndustryTileOverrideManager skip the magic value of 0xFF when assigning a new tileID. This is really important, since the value is reserved for water checking. 2007-09-26 02:15:00 +00:00
belugas
926a87d8a7 (svn r11162) -Fix: Acceptance is not a cargo, but rather a level of... acceptance :) So don't need to get cargo name out of it (glx) 2007-09-26 02:11:30 +00:00
belugas
7923f78ed0 (svn r11161) -Fix: Allow to transform coordinates in negative ones when gfx of 0xFF allows it 2007-09-26 01:27:51 +00:00
belugas
bd9d8c08ed (svn r11160) -Fix: A gfx of 0xFF does not count when it's time to establish the size of the industry. 2007-09-26 01:24:12 +00:00
glx
d7d03edf2d (svn r11159) -Fix (r11155): restore the ability to save in a non existing file 2007-09-25 14:15:38 +00:00
rubidium
c25847af12 (svn r11158) -Codechange: reduce the amount of Random calls needed when we do not have NewGRF industries that actually need the random bits. 2007-09-24 20:56:33 +00:00
rubidium
0ac4f10ca0 (svn r11157) -Fix: some random data was printed because printf "thought" that _current_player is 4 bytes instead of 1 byte, causing the random debug output to be useless. 2007-09-24 20:55:13 +00:00
glx
958895a7a7 (svn r11156) -Fix r11155: fix one compiler makes the other warn ;) 2007-09-24 19:55:50 +00:00
rubidium
3e31222294 (svn r11155) -Fix [FS#1253]: work around a nasty MS CRT 8 SP1 bug making it virtually impossible to debug 32bpp games under MSVC (http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=257606). Patch by boekabart. 2007-09-24 19:15:42 +00:00
rubidium
25f244513e (svn r11154) -Fix [FS#1239]: MIDI failing to play under Windows 95, 98 and ME. 2007-09-24 19:11:26 +00:00
rubidium
4705536d7d (svn r11152) -Fix: GetIndustryIDAtOffset crashed when translation of the GFX ID would be needed. Fix by Belugas.
-Fix: GetIndustryIDAtOffset crashed when the industry->xy tile was not an industry tile.
2007-09-23 19:55:42 +00:00
rubidium
2b89ecca47 (svn r11151) -Codechange: add (partial) support for randomizing industry triggers (part of the backend for it). Furthermore update the documentation of the map's bits wrt to industries. 2007-09-23 19:27:35 +00:00
rubidium
893842a8a3 (svn r11150) -Fix [FS#1202]: NewGRF action 3 does not necessarily need an action 1 to be defined. Patch by frosch. 2007-09-23 11:05:11 +00:00
maedhros
6a45faeeda (svn r11149) -Fix [FS#1225]: Draw building stages for new house ground sprites. 2007-09-23 10:54:11 +00:00
rubidium
db769e490c (svn r11147) -Fix [FS#1247] (r11105): reallow bounding boxes with x/y/z-extent 0. Some NewGRFs need them. Patch by frosch. 2007-09-23 09:37:25 +00:00
rubidium
08c5765c0b (svn r11145) -Codechange: add support for "decoding" TTDPs string codes wrt to registers 0x100 to 0x10F. 2007-09-22 23:55:34 +00:00
glx
b1fa49d3fa (svn r11144) -Codechange: add support for newgrf callbacks 29 and 35 2007-09-22 23:40:35 +00:00
rubidium
46940be717 (svn r11143) -Fix: the random bits were not set for the production callback when the NewGRF asked for it. 2007-09-22 23:14:32 +00:00
glx
af3f96957f (svn r11142) -Codechange: prepare industry production change code for newgrf callbacks 29 and 35 2007-09-22 21:59:02 +00:00
rubidium
3394cbd62a (svn r11141) -Codechange: add support for NewGRF's varaction2 operators 11, 12 and 13. 2007-09-22 20:29:17 +00:00
miham
bdd07017b4 (svn r11140) -Update: WebTranslator2 update to 2007-09-22 20:52:32
american   - 21 fixed by WhiteRabbit (21)
brazilian_portuguese - 1 fixed by tucalipe (1)
catalan    - 1 fixed by arnaullv (1)
croatian   - 1 fixed by knovak (1)
czech      - 7 fixed, 1 changed by Hadez (8)
danish     - 1 fixed by ThomasA (1)
dutch      - 1 fixed by habell (1)
estonian   - 1 fixed, 33 changed by kristjans (34)
french     - 1 fixed by glx (1)
romanian   - 21 fixed by kneekoo (21)
spanish    - 1 fixed by eusebio (1)
turkish    - 16 fixed, 2 changed by jnmbk (18)
ukrainian  - 1 fixed by mad (1)
2007-09-22 18:53:32 +00:00
rubidium
81555c732d (svn r11139) -Codechange: add support for persistent storage for NewGRFs. 2007-09-22 13:56:38 +00:00
rubidium
ed96cd2711 (svn r11138) -Codechange: prepare some subsystems for persistent storage for NewGRFs. 2007-09-22 12:59:43 +00:00
belugas
a0946e5d7e (svn r11137) -Feature: [NewGRF] Add support for bit 17 of property 1A for Industries. This bit enables the protection of the last instance of an industry type once raise. 2007-09-22 00:59:27 +00:00
rubidium
26310769dd (svn r11134) -Fix [FS#1238]: vehicles got removed twice from the group list when selling whole trains. 2007-09-21 17:56:55 +00:00
rubidium
80772e9b35 (svn r11133) -Fix (r11102) [FS#1245]: in some cases vehicles would be drawn over houses when they should be drawn behind the houses. Patch by frosch. 2007-09-20 19:21:01 +00:00
rubidium
d578a0868e (svn r11132) -Fix: NewGRFs seem to assume that STR_NULL is an empty string or so. 2007-09-19 18:55:26 +00:00
rubidium
84d5a97203 (svn r11131) -Fix (r11126): forgot to commit the changes that performed the actual fix. 2007-09-19 18:39:14 +00:00
rubidium
1e7df4fb91 (svn r11130) -Fix [FS#1207]: towns build roads that weren't connected to any other road. 2007-09-19 18:15:59 +00:00
glx
e9f9aa3d1c (svn r11129) -Fix: update some TextID to StringID 'translations' to reflect changes in language files 2007-09-19 17:37:44 +00:00
rubidium
5c9553d48b (svn r11128) -Fix: a lot of graphical glitches by changing some bounding boxes. It's not perfect yet, but a *very* good step into the right direction. Patch by frosch. 2007-09-19 16:36:42 +00:00
rubidium
92a827800f (svn r11127) -Fix: truncate the result of 8 bits callbacks. 2007-09-18 20:41:59 +00:00
rubidium
3f2925a105 (svn r11126) -Fix: the algorithm to determine the closest water/land was flawed. 2007-09-18 18:55:25 +00:00
rubidium
752eb0e8f5 (svn r11125) -Documentation: add/update the documentation of news*. Based on a patch by Progman. 2007-09-17 17:07:24 +00:00
rubidium
0252f87ff4 (svn r11124) -Documentation: of tree_map.h and tree_cmd.cpp. Patch by Progman. 2007-09-17 16:56:15 +00:00
miham
151fd10d0b (svn r11123) -Update: WebTranslator2 update to 2007-09-17 12:45:29
afrikaans  - 47 fixed, 52 changed by TrueTenacity (99)
brazilian_portuguese - 23 changed by fukumori (23)
bulgarian  - 14 fixed by thetitan (14)
catalan    - 3 changed by arnaullv (3)
croatian   - 6 fixed, 12 changed by knovak (15), tperic (3)
danish     - 20 fixed by ThomasA (20)
finnish    - 20 fixed by habazi (20)
german     - 10 fixed by Timwi (10)
hungarian  - 1 fixed by miham (1)
italian    - 1 fixed by lorenzodv (1)
japanese   - 6 fixed by ickoonite (6)
norwegian_nynorsk - 6 fixed by pollux (6)
piglatin   - 20 fixed by adammw (20)
russian    - 20 fixed by Smoky555 (20)
slovak     - 1 fixed by lengyel (1)
slovenian  - 7 fixed by Necrolyte (7)
spanish    - 1 changed by Cabu (1)
traditional_chinese - 21 fixed by xbddc (21)
2007-09-17 10:46:35 +00:00
rubidium
f41c8ab3aa (svn r11122) -Fix [FS#1234]: crash when building a NewGRF vehicle when the articulated build vehicle callback returneed a different value for the purchase window than the normal build. Thanks for Dalestan and _minime_ for pointers to possible causes. 2007-09-17 04:23:03 +00:00
rubidium
4e130204ae (svn r11121) -Fix: clear the temporary NewGRF storage every time we perform a callback so it cannot cause desyncs. 2007-09-16 21:34:50 +00:00
rubidium
a18f3f25a9 (svn r11120) -Codechange: remove the arbitrary limit of 10 articulated parts for a vehicle. 2007-09-16 20:48:00 +00:00
truelight
4a621fec63 (svn r11119) -Codechange: analyze .tar files upon loading, remembering their files and offsets, which speeds up .tar handling with a big factor
-Fix: several win32 .tar support problems
-Fix: better checking of .tar versions and other minor things
-Codechange: don't call fclose() but FioFClose to close a file
2007-09-16 18:10:52 +00:00
truelight
eebcc8968e (svn r11118) -Fix: sample.cat can now be in a tar-file too, how nice! 2007-09-15 16:01:34 +00:00
truelight
9b7814159e (svn r11117) -Add: add support for 7z .tar files, which are in the 'old' (deprecated) format 2007-09-15 15:38:09 +00:00
glx
7d551bae1b (svn r11116) -Fix (r11106): tar loader was not compiled for WIN32 2007-09-15 15:21:17 +00:00
rubidium
ba55c4cef2 (svn r11112) -Fix (r11107) [FS#1229]: in some cases one could destroy (parts of) buildings when building tunnels. 2007-09-15 09:39:23 +00:00
glx
045c996364 (svn r11111) -Fix (r11106): missing const broke compilation with MSVC 2007-09-15 00:49:44 +00:00
truelight
357783eb1e (svn r11109) -Fix r11106: it is silly to use a std::list for something that is cleary a std::vector (less memory ;) WHOHO!) 2007-09-14 23:03:28 +00:00
rubidium
2a3919ed10 (svn r11108) -Fix (r11107): somebody forgot to add some file ;) Spoils the fun of the previous cryptic message though. 2007-09-14 22:35:39 +00:00
rubidium
3055d42fc4 (svn r11107) -Feature: some tool so one can still build tunnels under rails (and other structures) when the owner of the structure built it on foundations and if you have enough "empty" space ofcourse. One could use the tool for some other construction needs too. Patch by frosch. 2007-09-14 22:27:40 +00:00
truelight
9e14778057 (svn r11106) -Add: added .tar support; you can pack all files in your data/ dir in how ever many .tar files you like, keeping the dir-structure equal to the unpacked version, and OpenTTD can handle them just like the files were unpacked
-Note: useful for GRF-packs and 32bpp PNGs. Don't forget to keep the dir-structure alive for 32bpp PNGs!
  -Note: file-loading-order: search-paths, .tar-files in the order found on disk (can be anything at all, don't depend on it.. use 'openttd -d1' to see which order they are added)
2007-09-14 22:25:00 +00:00
rubidium
9478b2cff8 (svn r11105) -Codechange [FS#1223]: add some support for tuning of the bounding boxes for some special cases (like tunnels and bridges). Patch by frosch. 2007-09-14 21:54:57 +00:00
rubidium
f68051d19b (svn r11104) -Fix: bounding boxes also overlap when the min of a bounding box is equal to the max of another bounding box. Patch by frosch. 2007-09-14 21:36:59 +00:00
rubidium
b62d995ce8 (svn r11103) -Codechange: remove pointless comparison as it can never ever be true (unless you've got at least 3 bit errors and then you're screwed anyway). Patch by frosch. 2007-09-14 21:35:22 +00:00
rubidium
556035f448 (svn r11102) -Codechange: remove some pointless addition+substractions. Patch by frosch. 2007-09-14 21:32:21 +00:00
truelight
c6c3139914 (svn r11101) -Fix r11099: the check: file_pos == 0, no longer works; adjust the check with file_slot. This solves the ? sprites with autorail (nice catch Progman) 2007-09-13 22:48:11 +00:00
truelight
e994f3195a (svn r11100) -Fix r11099: darn typos... 2007-09-13 18:50:42 +00:00
truelight
b84bd3cd1c (svn r11099) -Codechange: allow on opening of a file via FioFOpenFile to request the size of the file, so we can keep that in mind 2007-09-13 18:46:29 +00:00
truelight
45a1ad524a (svn r11098) -Fix r11096: forgot spaces before comments 2007-09-13 18:35:29 +00:00
truelight
f9a4d4e1a4 (svn r11097) -Codechange: for easy future extension of NewGRF Scanning, split up the functions a bit 2007-09-13 18:28:56 +00:00
truelight
122cc9e1a4 (svn r11096) -Fix: when 2 different GRF-files had the same name (e.g.: ""), the double-entry checker didn't always work correctly, resulting in multiple entries of the same grf in the list 2007-09-13 18:26:18 +00:00
truelight
e545220563 (svn r11095) -Codechange: don't abuse 'file_pos' by storing the file_slot in it too, but use a nice seperate variable for it
-Note: on a side-note, this allows files bigger than 16+ MiB, needed for tar-support
2007-09-13 18:22:34 +00:00
belugas
5ec047d6b7 (svn r11094) -Documentation: Add comments on viewport structures and change an obscure variable name to something a little more meaningfull.
Heavily based of frosch's work (FS#1223)
2007-09-13 15:51:50 +00:00
truelight
d146a78f39 (svn r11093) -Fix r11092: also add a DEBUG(driver, 1) if the blitter is loaded, to show which one really loaded 2007-09-13 14:44:49 +00:00
truelight
ca161c8e72 (svn r11092) -Add: allow 'blitter=<value>' in openttd.cfg to set the blitter (so you don't have to keep on doing 'openttd -b 32bpp-optimized'..) 2007-09-13 12:28:53 +00:00
belugas
495c07cd08 (svn r11091) -Codechange: Partial rewrite of the road management code of towns, in order to make it more readable and with improved performance. (FS#1161 by skidd13) 2007-09-12 23:56:21 +00:00
rubidium
e9924421bf (svn r11089) -Codechange: add revision detection to MSVC. 2007-09-12 07:11:48 +00:00
glx
ccf13f3ccc (svn r11088) -Fix (r11063, r11067): MSVC warning C4804: '>' : unsafe use of type 'bool' in operation 2007-09-11 17:42:46 +00:00
miham
a20f87e1e7 (svn r11087) -Update: WebTranslator2 update to 2007-09-10 22:36:01
brazilian_portuguese - 6 fixed by tucalipe (6)
catalan    - 6 fixed by arnaullv (6)
dutch      - 6 fixed by webfreakz (6)
estonian   - 6 fixed by kristjans (6)
french     - 6 fixed by glx (6)
hungarian  - 6 fixed by miham (6)
italian    - 6 fixed by lorenzodv (6)
slovak     - 6 fixed by lengyel (6)
spanish    - 6 fixed by eusebio (6)
swedish    - 24 fixed by daishan (24)
ukrainian  - 6 fixed by mad (6)
2007-09-10 20:36:37 +00:00
rubidium
d651f6b9ed (svn r11086) -Fix/Revert (r11053, r10984): "fixing" r11053 made the acceleration code use the wrong speed, which can be fixed by reverting a small piece of r10984. 2007-09-10 17:13:37 +00:00
rubidium
b658ef535e (svn r11085) -Fix-ish (r11084): some tabs that did not show up in the diff, which caused a mess of tab and non-tab usage. 2007-09-10 15:36:33 +00:00
rubidium
99c4c8e43e (svn r11084) -Documentation [FS#1219]: of command.*. Patch by Progman. 2007-09-10 15:21:14 +00:00
truelight
f055b0b557 (svn r11083) -Fix r11078: don't clear the anim buffer when alpha = 0 (tnx to frosch) 2007-09-10 14:55:46 +00:00
truelight
65aed53cab (svn r11082) -Fix r11081: save before commit (yeah, whitelines are important too!) 2007-09-10 00:05:27 +00:00
truelight
f97d2b4706 (svn r11081) -Fix r11080: now solved the problem in a pretty way: don't do animation if we are not drawing to the screen-pointer 2007-09-10 00:03:47 +00:00
truelight
e2fe88fb70 (svn r11080) -Fix r11079: fix it, still dirty, correctly, as the last commit was ... wrong ;) 2007-09-09 23:57:47 +00:00
truelight
b823cc2b6b (svn r11079) -Fix: dirty fix to allow big-screenshots with 32bpp-anim 2007-09-09 23:47:55 +00:00
truelight
f827093ba7 (svn r11078) -Add: added 32bpp-optimized, which is almost twice as fast as 32bpp-simple (based on the work of frosch)
-Add: let 32bpp-anim use 32bpp-optimizeds, so he profits from the speed-up too
2007-09-09 23:16:01 +00:00
truelight
3de2c716df (svn r11076) -Fix: MakeTransparent of 32bpp blitter used 0..100; using 0..255 makes it much faster (frosch)
-Fix: ComposeColourXXX could work a tiny bit faster when using 256, not 255 as value to divide with; downside is that it can give alpha errors (frosch)
2007-09-09 21:56:52 +00:00
rubidium
634aba16a7 (svn r11072) -Fix [FS#1045]: when a vehicle had a service order, the goto-depot button did not make it possible to stop the vehicle at that depot. 2007-09-09 17:42:59 +00:00
rubidium
a93a1a8b62 (svn r11070) -Fix [FS#1217]: due to making an Action2 variable work properly, the NewGRF called other code too that wasn't prepared for non-train vehicles. 2007-09-09 15:32:46 +00:00
rubidium
8b46bc7b98 (svn r11069) -Codechange: allow slopes under statues. Patch by kaan. 2007-09-09 11:30:44 +00:00
rubidium
643ffb270c (svn r11068) -Codechange: remove Vehicle::HasFront as all vehicles have the Vehicle::first pointer correctly set. 2007-09-09 11:23:49 +00:00
rubidium
1f1ce4ac5b (svn r11067) -Codechange: also make it possible to use the advanced vehicle list for other players. Patch by SmatZ. 2007-09-09 10:34:32 +00:00
rubidium
c37b0a73b3 (svn r11066) -Documentation [FS#1091]: of map.*. Patch by Progman. 2007-09-09 10:21:27 +00:00
rubidium
0ca9fd7dc2 (svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman. 2007-09-09 10:13:17 +00:00
rubidium
10ea6cd13c (svn r11064) -Fix [FS#553]: when autorenew is enabled and it cannot renew the vehicle anymore (because the player cannot build the engine), the aging warnings as if autorenew is not enabled are shown. 2007-09-08 22:53:10 +00:00
rubidium
211b8dea39 (svn r11063) -Codechange: make it possible for people to view the loading indicators of everyone. Patch by SmatZ. 2007-09-08 22:04:49 +00:00
miham
7b0fd59eaa (svn r11062) -Update: WebTranslator2 update to 2007-09-08 22:37:00
croatian   - 1 changed by knovak (1)
estonian   - 4 fixed, 3 changed by kristjans (7)
french     - 2 changed by glx (2)
hungarian  - 4 fixed by miham (4)
japanese   - 4 fixed by ickoonite (4)
norwegian_nynorsk - 14 fixed by pollux (14)
slovak     - 4 fixed by lengyel (4)
slovenian  - 4 fixed by Necrolyte (4)
spanish    - 4 fixed by eusebio (4)
turkish    - 27 fixed by jnmbk (27)
ukrainian  - 2 fixed by mad (2)
2007-09-08 20:37:37 +00:00
glx
f12a2cabdb (svn r11061) -Fix [FS#1086]: [win32] some keys were handled twice 2007-09-08 14:59:58 +00:00
rubidium
305bdb70fd (svn r11060) -Codechange: replace some magic numbers with the right enumified constants. 2007-09-08 10:10:31 +00:00
rubidium
c97804461e (svn r11059) -Fix [FS#1182]: inconsistency between Rail<->ElRail conversions of different kinds of rail containing tiles (normal rail, stations, depots, etc). Patch by SmatZ. 2007-09-08 09:52:02 +00:00
belugas
20a3b37963 (svn r11058) -Fix[FS#1216]: GetTerrainType was a bit too relax with snow line.
After double checking with ttdpatch, behaviour is now more alike (Eddi)
2007-09-08 00:37:37 +00:00
rubidium
704844ed43 (svn r11057) -Fix [FS#1215]: loading TTD savegames went into an infinite loop due to not yet properly set next and previous pointers. 2007-09-07 22:06:52 +00:00
rubidium
88133a97b5 (svn r11056) -Fix [FS#1213]: road/tram tiles would not always get marked dirty properly, causing glitches for non-local players. Patch by SmatZ. 2007-09-07 21:17:01 +00:00
rubidium
36845f243a (svn r11055) -Fix [FS#1214]: loading indicators would sometimes glitch due to a bounding box that was too small. Patch by frosch. 2007-09-07 21:15:32 +00:00
rubidium
8110b9f517 (svn r11054) -Fix [FS#944]: mismatch between TTDP's and OTTD's placement of catenary, creating graphical glitches when loading a catenary replacement. Patch by frosch. 2007-09-07 21:11:12 +00:00
rubidium
8da977b407 (svn r11053) -Fix: train status bar flickering a lot when waiting at a signal. 2007-09-07 21:09:37 +00:00
glx
5ad79a5db0 (svn r11052) -Fix (r11017)[FS#1210]: vehicles always skip service order 2007-09-07 17:01:35 +00:00