Commit Graph

1579 Commits

Author SHA1 Message Date
orudge 0bad65bf78 (svn r10310) -Fix: Trunk can now be built on OS/2 :) 2007-06-24 20:41:24 +00:00
rubidium 58451059de (svn r10309) -Revert (part of r10308): "fixing" the bounding box for bridge entrances reveals one of the bugs that will be fixed when FS#119 is fixed. 2007-06-24 20:17:39 +00:00
rubidium 1caa0f7fb7 (svn r10308) -Codechange: some "cleanup" chunks from B. N. SmatZ!' work on fixing FS#119. 2007-06-24 20:06:10 +00:00
rubidium b17b9351dd (svn r10306) -Fix [FS#890]: the fix in r10219 was not enough to stop this bug from happening. 2007-06-24 16:44:06 +00:00
miham af5667394c (svn r10305) -Update: WebTranslator2 update to 2007-06-24 18:32:39
american   - 33 fixed by WhiteRabbit (33)
brazilian_portuguese - 5 fixed by tucalipe (5)
catalan    - 5 fixed, 7 changed by arnaullv (12)
italian    - 5 fixed by lorenzodv (5)
japanese   - 8 fixed by ickoonite (8)
korean     - 5 fixed, 2 changed by darkttd (7)
norwegian_nynorsk - 36 fixed by pollux (36)
portuguese - 7 fixed by izhirahider (7)
slovenian  - 32 fixed by Necrolyte (32)
traditional_chinese - 78 fixed, 2 changed by xbddc (80)
2007-06-24 16:33:10 +00:00
KUDr 59090c53d8 (svn r10304) -Fix [YAPF](r10301): removed assert which could violate without danger when searching for the nearest depot. From now on the segment can be closed without reason in that case (peter1138) 2007-06-24 14:40:54 +00:00
KUDr ac9fb1c34e (svn r10303) -Fix [YAPF](r10301): warning: unused variable tile_cost (peter1138) 2007-06-24 13:30:03 +00:00
KUDr a7d5363e65 (svn r10302) -Fix [YAPF, MP]: now (with r10301) it is no longer needed to invalidate the YAPF segment cache every tick in MP. Segment cost now doesn't contain the curves between segments. As a result the cache should be now accurate. 2007-06-24 13:22:41 +00:00
KUDr ef4c335cb4 (svn r10301) -Fix [FS#901, YAPF]: another assert violation in some special cases (immeR) 2007-06-24 13:18:54 +00:00
rubidium c600158c1d (svn r10300) -Fix [FS#917]: give a better explanation why the loading of a savegame failed and do not crash on loading savegames that were altered by patches or branches. 2007-06-24 12:27:11 +00:00
rubidium e12e83ef5f (svn r10299) -Codechange [FS#931]: industry foundations should be drawn as all other foundations, i.e. with DrawFoundation, instead of writing the same functionality itself. 2007-06-24 10:20:05 +00:00
rubidium 6402d00190 (svn r10298) -Fix [FS#903]: show the subdirectory below the default data directory in this filename in the newgrf list. The directory was removed in r9560 because then it used to full path instead of the path relative to the data directory, but since the inclusion of "search paths" that is not necessary anymore. 2007-06-23 21:12:09 +00:00
rubidium be35df3f03 (svn r10297) -Codechange: increase the performance of CargoPacket::AllocateRaw using a very simple "caching" system. 2007-06-23 20:38:28 +00:00
miham e1958a1d59 (svn r10296) -Update: WebTranslator2 update to 2007-06-23 20:35:10
brazilian_portuguese - 38 fixed by tucalipe (38)
catalan    - 35 fixed, 10 changed by arnaullv (45)
dutch      - 33 fixed by webfreakz (14), habell (19)
estonian   - 4 fixed by kristjans (4)
french     - 32 fixed by glx (32)
hungarian  - 7 fixed by miham (7)
italian    - 34 fixed, 1 changed by lorenzodv (35)
korean     - 34 fixed by darkttd (34)
romanian   - 59 fixed by kneekoo (59)
russian    - 45 fixed, 11 changed by Smoky555 (56)
swedish    - 29 fixed by giddorah (29)
ukrainian  - 1 fixed by mad (1)
2007-06-23 18:35:37 +00:00
truelight 0844eaabc5 (svn r10295) -Fix [FS#775]: flush stdout on dedicated server output to ensure an update of stdout (Zuu) 2007-06-23 14:40:19 +00:00
truelight 62cb041238 (svn r10294) -Fix [FS#914]: WKC_PAUSE didn't work in SE (+ some cosmetic) (Smoovious) 2007-06-23 14:17:31 +00:00
truelight 834d0cf79e (svn r10293) -Add [FS#885]: a sticky button for the client list window (oxygene) 2007-06-23 14:13:05 +00:00
KUDr 6ced6f8f5f (svn r10292) -Fix: suppress VC 7.1 warning: "\src\texteff.cpp(251) : warning C4258: 'y' : definition from the for loop is ignored; the definition from the enclosing scope is used" which prevents compilation on MSVC 2003 2007-06-23 09:04:07 +00:00
truelight 2d591ec1af (svn r10291) -Fix [FS#920]: double click in town-GUI didn't work as expected 2007-06-23 00:33:15 +00:00
truelight 27a6e21975 (svn r10290) -Fix: with smooth_economy, when industry production hit 32, it stayed there for ever. Give it some chance to get out of that uber-lowness (although it is a very slim chance, at least it has one) 2007-06-22 23:53:16 +00:00
rubidium 2d42f4544d (svn r10289) -Fix [FS#735]: {COMPANY} takes two arguments. As this was not properly accounted for the plural rule used the second argument of {COMPANY} instead of the later {COMMA}. 2007-06-22 23:41:33 +00:00
truelight 34723257f0 (svn r10288) -Fix [FS#202]: also age engines that aren't front-engines (based on a patch by kaan) 2007-06-22 22:42:18 +00:00
rubidium 117368a5a9 (svn r10287) -Fix (r10266): some surprises from that (almost always) complaining compiler... 2007-06-22 22:28:15 +00:00
truelight 8d415469cc (svn r10286) -Fix r10284: nice typo (tnx glx) 2007-06-22 22:25:21 +00:00
truelight cc6ee1840a (svn r10284) -Fix [FS#899]: in the unlucky event 2 clients join at the same time to start a new company while there is only one spot left, all clients became spectator. Now only make either one of the joining clients spectator (much more game-friendly ;)) 2007-06-22 22:14:42 +00:00
rubidium a56661fcc1 (svn r10283) -Fix [FS#913]: catenary was drawn on bridges when elrail was disabled. Patch by B. N. SmatZ!. 2007-06-22 21:48:41 +00:00
truelight 60f0610a85 (svn r10278) -Fix r10276: make the _realtime_tick less demanding on the CPU 2007-06-22 20:07:39 +00:00
truelight 2e19d3cf78 (svn r10276) -Codechange: made a counter based on milliseconds and independent of the game-state to base double-click and TGP Generation Process on
-Codechange: renamed _timer_counter to _palette_animation_counter, as that is what it is
2007-06-22 20:04:21 +00:00
glx e90b072c11 (svn r10273) -Change: remove the strings removed in r10270 from the translations 2007-06-22 19:42:00 +00:00
glx 337d56d4bb (svn r10272) -Fix (FS#916): remove more invalid characters from savegame names 2007-06-22 19:30:59 +00:00
truelight cc533d77e5 (svn r10271) -Fix r9563: move the Transparency Option menu item to the place it should have been in the first place: Option Menu, not Map Menu (go figure :p) 2007-06-22 18:43:11 +00:00
truelight f80fa33cc5 (svn r10270) -Add: prefixed the loading indicator with an arrow, up meaning vehicle is loading, down meaning vehicle is unloading 2007-06-22 18:28:44 +00:00
rubidium 74b867db72 (svn r10269) -Fix [FS#912]: station ratings were shown for all cargos instead of only the cargos that have been transported. 2007-06-22 17:34:04 +00:00
rubidium 96d208d04b (svn r10268) -Fix: some old savegames could have the wrong bits unset (follow up of r10147) 2007-06-22 17:33:13 +00:00
glx 8dff21e421 (svn r10267) -Add: enable double clic to add in 'add newgrf' window 2007-06-22 13:10:56 +00:00
rubidium e5c352818d (svn r10266) -Codechange: keep track of the origin, time of travel and accumulated feeder share (transfers) of individual pieces of cargo. This means that cargo isn't thrown on a big pile when it's put in a station or unloaded at a station, however the GUI does not reflect these changes yet so you will not actually see it. 2007-06-22 11:58:59 +00:00
truelight 6159f58948 (svn r10265) -Feature: allow double-clicking on certain places: build-vehicle and town-action 2007-06-22 10:57:53 +00:00
rubidium 046b6f18da (svn r10263) -Fix (r10262): due to 64 bits alignment a struct became a little too large. 2007-06-21 19:18:49 +00:00
rubidium 0b34c9aefe (svn r10262) -Fix (r10258): some places that needed to be changed to uint64 were hidden/forgotten, which caused memory corruptions and that in caused all kinds of assertions to trigger. 2007-06-21 19:08:47 +00:00
rubidium fb7964e902 (svn r10261) -Cleanup: we do not need CURRENCY64 and CURRCOMPACT64 anymore, because everything is already 64 bits by default. 2007-06-21 17:38:59 +00:00
miham e432c7459e (svn r10260) -Update: WebTranslator2 update to 2007-06-21 19:36:07
piglatin   - 12 fixed by adammw (12)
2007-06-21 17:36:16 +00:00
rubidium 9feb9f84fc (svn r10259) -Fix (r10258): committed a little too much.. would've made pretty cheap tunnels though :) 2007-06-21 17:27:21 +00:00
rubidium 9c0944aa09 (svn r10258) -Codechange: as we are now using int64 all over the place, it's better to use int64 variables in the string generating too instead of packing them into two int32s.
-Fix: some displays of money were wrong.
2007-06-21 17:25:17 +00:00
miham c5225992c1 (svn r10257) -Update: WebTranslator2 update to 2007-06-21 19:15:05
danish     - 25 fixed, 50 changed by ThomasA (75)
finnish    - 117 fixed by habazi (117)
hungarian  - 6 fixed by miham (6)
romanian   - 8 fixed, 9 changed by CrystyB (17)
spanish    - 7 fixed by jfrank (7)
ukrainian  - 28 fixed by mad (25), fevral13 (3)
2007-06-21 17:18:33 +00:00
belugas 240bba540e (svn r10256) -Add: Addition of IndustryTileOverrideManager 2007-06-21 17:09:10 +00:00
truelight af8a234db0 (svn r10255) -Codechange: remove some old debug code nobody was using anymore 2007-06-21 16:53:57 +00:00
truelight 56eb1738ee (svn r10254) -Feature: loading indicator, which shows in % how full a vehicle is while loading/unloading (TheJosh) 2007-06-21 16:17:47 +00:00
rubidium 2792019b78 (svn r10253) -Fix (r10249): putting the < the wrong way around made the new towns pretty small. 2007-06-21 16:12:31 +00:00
rubidium 02154f38b8 (svn r10252) -Fix: never overflow when applying exchange rates before drawing the amount of money. 2007-06-21 15:57:14 +00:00
glx 3fe19238b2 (svn r10251) -Fix (r10186, FS#907): alt-tab back into openttd could leave the taskbar visible 2007-06-21 15:48:00 +00:00
rubidium bc01e53967 (svn r10250) -Fix: money is always 64 bits, so always parse those 64 bits. 2007-06-21 15:37:05 +00:00
rubidium b6cbd30c3f (svn r10249) -Fix [FS#906]: town tried to gather information about the neighbourhood of a tile when it couldn't even *ever* build on that tile. 2007-06-21 15:13:09 +00:00
rubidium 709ec29563 (svn r10248) -Codechange: don't limit the cost of tunnels. 2007-06-21 14:58:30 +00:00
rubidium eb1472a82d (svn r10247) -Fix (r10210): *always* call SetDParamMoney when you want to place money in some string. 2007-06-21 14:54:51 +00:00
rubidium f806b46cc9 (svn r10246) -Fix (r10297): some forgotten money conversions and truncation issues. Thanks to benc for providing the patch. 2007-06-21 14:32:27 +00:00
truelight 06fded123a (svn r10245) -Codechange: added GetName also to all Blitters, instead of only the Factory 2007-06-21 13:56:59 +00:00
truelight e8f9332af9 (svn r10244) -Fix: make sure to let 32bpp-anim report the increased buffer-size it needs 2007-06-21 13:31:41 +00:00
glx edf68a04b0 (svn r10243) -Fix: crash when resizing with 32bpp and 'broken' display with 'non-standard' resolutions 2007-06-21 13:30:23 +00:00
truelight 1fa725ecae (svn r10242) -Fix: avoid a segfault if you move your mouse at startup with 32bpp-anim 2007-06-21 12:45:41 +00:00
truelight 3fa3d2e365 (svn r10241) -Codechange: CopyToBuffer now produces a buffer that is unreadable from outside the blitter, so the blitter can store anything he likes
-Codechange: added CopyImageToBuffer, which produces a readable buffer for screenshots
-Fix: 32bpp-anim now holds animation on transparent objects to avoid strange graphical effects
-Fix: 32bpp-anim now works correct on mouse-movement (it holds the palette animation correctly)
2007-06-21 12:36:46 +00:00
miham 3b12e7b6b0 (svn r10240) -Update: WebTranslator2 update to 2007-06-21 08:03:49
american   - 30 fixed, 1 changed by WhiteRabbit (31)
bulgarian  - 1 fixed by thetitan (1)
dutch      - 1 fixed by habell (1)
estonian   - 25 fixed by kristjans (25)
french     - 1 fixed by glx (1)
german     - 15 fixed by Neonox (15)
hungarian  - 24 fixed by miham (24)
italian    - 1 fixed by lorenzodv (1)
japanese   - 25 fixed by ickoonite (25)
korean     - 1 fixed by darkttd (1)
slovenian  - 1 fixed by Necrolyte (1)
2007-06-21 06:09:50 +00:00
maedhros e93d82d4b2 (svn r10239) -Fix (r10236): The pin button didn't move when resizing the timetable gui. 2007-06-20 20:02:30 +00:00
maedhros 996fde1699 (svn r10238) -Fix (r10236): Resizing the timetable window caused it to think it could only show one line at a time. 2007-06-20 19:57:18 +00:00
maedhros b2609653e4 (svn r10237) -Fix (r10236): It helps if you use svn add with new files... 2007-06-20 19:26:25 +00:00
maedhros cf0118ee63 (svn r10236) -Feature: Introduce a form of timetabling for vehicles. 2007-06-20 19:17:22 +00:00
truelight a982fe2e80 (svn r10235) -Fix: the 32bpp-anim blitter repainted pixel color 0, which is transparency and therefor should never be repainted (spotted by Rubidium) 2007-06-20 12:09:47 +00:00
truelight 636db862a5 (svn r10234) -Fix r10233: make peter1138 happy 2007-06-20 10:30:25 +00:00
truelight d7acd238ac (svn r10233) -Fix: 8bpp-optimized encoder fucked up if 255+ pixels in a row were non-transparent (tnx boekabart) 2007-06-20 10:26:39 +00:00
belugas 436eb69a39 (svn r10232) -Fix(r1): _numof_industry_table never was composed of 12 entries. Only 11.
It never hurt before, but it would have...
2007-06-20 03:03:00 +00:00
rubidium 55b93b1c05 (svn r10230) -Fix [FS#594]: terraforming wipes out canals. Now you always have to remove the canal before terraforming, instead of "just" removing the canal. 2007-06-19 21:15:14 +00:00
glx 6e4264237e (svn r10229) -Cleanup: removed duplicate include (dihedral) 2007-06-19 19:49:03 +00:00
rubidium aec52c4ebd (svn r10228) -Fix [FS#894]: why MSVC must always bitch about stuff? 2007-06-19 19:04:25 +00:00
truelight b2bd361dae (svn r10227) -Add: added 32bpp-anim blitter, a 32bpp blitter that does palette animation (at the cost of an animation-buffer to keep track of the 'm'-channel of all sprites) 2007-06-19 17:43:30 +00:00
belugas 2ad0d708cc (svn r10226) -Codechange: Add support for newindustry tiles drawing.
Heavily based on Maedhros's newhouses implementation
2007-06-19 17:33:12 +00:00
truelight 2a6b7e4e02 (svn r10225) -Codechange: move common Colour routines for 32bpp to the base class (and nick it colour, not color) 2007-06-19 17:32:01 +00:00
rubidium b11bf3e157 (svn r10224) -Fix [FS#891]: the town road belongs to didn't get set properly when a town builds road over tram bits. 2007-06-19 17:27:59 +00:00
glx 9e2e73f30b (svn r10223) -Fix r10211: GCF_INIT_ONLY flag was never cleared 2007-06-19 17:13:25 +00:00
peter1138 e7191fc57a (svn r10222) -Fix [FS#892]: Only 2 trains could crash at one time as collision checking stopped on the first hit. This could cause desyncs in network games as the collision hash order is not guaranteed. (patch by B. N. Smatz) 2007-06-19 16:40:59 +00:00
rubidium e51a513eb8 (svn r10221) -Fix: the one way sprites weren't drawn in the correct order, so they could remove the tramtrack in some cases. 2007-06-19 15:56:03 +00:00
truelight 65a3abe1c1 (svn r10220) -Fix r10216: even more fuck-ups for non-SDL video backends 2007-06-19 15:40:27 +00:00
rubidium 265f8b7d5d (svn r10219) -Fix [FS#882,FS#890]: land under foundations was terraform when it shouldn't be terraformed. 2007-06-19 15:34:43 +00:00
glx fc3ec8689b (svn r10218) -Fix r10216: more compile errors 2007-06-19 15:26:10 +00:00
truelight a7dd710f06 (svn r10217) -Fix r10216: forgot to declare 'blitter' in win32 and cocoa driver (tnx glx) 2007-06-19 15:18:26 +00:00
truelight 1c4760ee06 (svn r10216) -Fix: palette animation always redid all palette entries, where in fact only a few indexes were needed
-Codechange: allow blitters to handle palette animation internally or even disable it; 8bpp uses video-backend for palette animation
2007-06-19 15:04:08 +00:00
truelight 9ad02c11c6 (svn r10215) -Fix r10214: forgot 2 cases of the same mistake 2007-06-19 12:19:31 +00:00
truelight b98e0ea648 (svn r10214) -Fix: off-by-one in draw-rect-color-remapping (peter1138) 2007-06-19 12:18:24 +00:00
rubidium 16ce2192e4 (svn r10212) -Fix [FS#723]: money overflow bugs in many locations. 2007-06-19 00:05:26 +00:00
glx 23af871615 (svn r10211) -Feature: [NewGRF] Add support for action 0F 2007-06-18 23:00:55 +00:00
rubidium 7d6c255044 (svn r10210) -Codechange: make all money related variables 64 bits, so overflowing them should become a little harder. 2007-06-18 22:49:55 +00:00
rubidium fbb22487fc (svn r10209) -Fix/Codechange: forgot a few changes of int32 -> Money in the previous commit 2007-06-18 22:09:54 +00:00
rubidium 2ee73b50b8 (svn r10208) -Codechange: replace int32 with Money where appropriate. 2007-06-18 21:44:47 +00:00
rubidium 7a72dcb3b5 (svn r10207) -Codechange: remove the redundant player_money in favour of the money64, which is now renamed to player_money. 2007-06-18 21:00:14 +00:00
truelight 26e9b5ca5f (svn r10206) -Codechange: more moving things to blitter-layer: ScrollBuffer 2007-06-18 20:08:21 +00:00
rubidium 49220cc6f1 (svn r10205) -Codechange: refactor returning of cost, so it can be more easily modified. 2007-06-18 19:53:50 +00:00
truelight 09879ea308 (svn r10203) -Codechange: more moving things to blitter-layer: DrawLine 2007-06-18 19:38:23 +00:00
peter1138 c31ff284c3 (svn r10201) -Codechange: Replace Blitter::SetHorizontalLine with Blitter::DrawRect, as the former was only used by the rectangle drawing code anyway. This lets us draw rectangles in one go. 2007-06-18 18:45:12 +00:00
rubidium b09431478d (svn r10200) -Codechange: add "shortcut" for !CmdFailed (CmdSucceeded). 2007-06-18 16:42:40 +00:00
KUDr fad2a36b8f (svn r10199) -Fix [FS#884, YAPF]: 'target_seen' flag that is set prematurely in some cases (1 tile long cached segment followed by target station) stops on assert (immeR) 2007-06-18 14:40:07 +00:00
rubidium 0c369c21e0 (svn r10198) -Fix (r10194): did not search all search paths. 2007-06-18 11:04:12 +00:00
rubidium 966e2738b9 (svn r10197) -Codechange: replace int32 with CommandCost where appropriate. 2007-06-18 10:48:15 +00:00
miham f6be61bb34 (svn r10196) -Update: WebTranslator2 update to 2007-06-18 10:15:44
japanese   - 2 fixed by ickoonite (2)
slovenian  - 3 fixed by Necrolyte (3)
2007-06-18 08:17:31 +00:00
rubidium 5938dea88d (svn r10194) -Codechange: prefer the current working directory above the user's home directory when openttd.cfg exists in the current working directory, otherwise prefer the home directory. 2007-06-17 21:26:57 +00:00
truelight f5776a8c6b (svn r10193) -Fix r10190: somehow an other partly-patch was applied too 2007-06-17 20:47:11 +00:00
truelight 9a93a6006b (svn r10192) -Fix r10190: forgot to change the includes of win32 and cocoa video-driver 2007-06-17 20:40:02 +00:00
rubidium 6680a6a0e6 (svn r10191) -Backport (r9148 from NoAI): detecting of CPU type (32 vs 64 bits). 2007-06-17 20:36:14 +00:00
truelight 003375d375 (svn r10190) -Codechange: merged renderer and blitter to one single class API: blitter
-Codechange: introduced a hierachy of blitters to avoid a lot of code duplication
 Note: this allows much easier adding other types of video-drivers, like OpenGL
2007-06-17 20:30:28 +00:00
rubidium b2799961bc (svn r10188) -Codechange: make it a little easier to load a savegame from the console:
-g <absolute path>
 -g <relative path from current working directory>
 -g <relative path from within the savegame directory>
2007-06-17 20:09:05 +00:00
rubidium 6d9393cb60 (svn r10187) -Fix: don't do a 270 degree turn on the international airport when a 90 degree turn is enough. 2007-06-17 19:46:01 +00:00
glx 22257f46c2 (svn r10186) -Fix (FS#876): don't mess desktop when using alt-tab (win32) 2007-06-17 19:00:45 +00:00
rubidium 3afa69052d (svn r10185) -Codechange: make the bounding boxes of the drive through road stops a little larger so NewGRFs authors have more possibilities when replacing them (minime). 2007-06-17 18:22:43 +00:00
rubidium 28b1809725 (svn r10184) -Fix: remove empty strings that are clearly bad. WT2 shouldn't add them anymore. 2007-06-17 18:18:18 +00:00
rubidium 347c28b71a (svn r10182) -Codechange: rewrite most part of the file loading/searching to be more flexible.
-Codechange: add support for personal directories on Windows.
-Fix [FS#153, FS#193, FS#502, FS#816, FS#854]: fix issues related to fixed names, fixed places of files/directories and application bundles.
2007-06-17 15:48:57 +00:00
rubidium 5fdde681c2 (svn r10181) -Fix (r10093): clamp the zoom level so it won't try to use a wrong zoom level when loading an old savegame. 2007-06-17 13:27:50 +00:00
rubidium 6c67bdcc71 (svn r10180) -Fix (r10167): do not reset the 2cc loaded feature setting when a (later) newgrf does not have 2cc. 2007-06-17 13:26:19 +00:00
maedhros 5a9c7b5899 (svn r10178) -Fix: Don't deactivate newgrf files when skipping the rest of the file during the initialisation stage. 2007-06-17 11:01:58 +00:00
peter1138 94bd08fc17 (svn r10177) -Fix: Passengers has one A and two Es (ln) 2007-06-17 10:47:30 +00:00
maedhros cf4911ddaf (svn r10176) -Fix (r10071): Deselect the currently selected order when clicking on an empty part of the orders window. 2007-06-17 10:14:47 +00:00
miham f177c1769f (svn r10175) -Fix: [Translations] Stupid me, {STRINGx} can only be used in english... 2007-06-17 07:24:39 +00:00
miham 4507044cbb (svn r10174) -Fix: [Translations]: piglatin plural forms had some problem.. 2007-06-17 07:21:02 +00:00
miham f8a5775a6c (svn r10173) -Add: Translations: added new language "Pig Latin". Already "pre-translated", only needs checking. Idea of Piglatin language was from Adam M-W 2007-06-17 05:45:05 +00:00
belugas 0b2b435c44 (svn r10172) -Fix(r10127): Wrong evaluation order on variable 0x41 for industry tile.
The industry's xy (northernmost tile) should be checked against the relative tile, not the other way around.
2007-06-17 01:01:15 +00:00
rubidium 9f01009b39 (svn r10170) -Codechange: remove some duplication of code. 2007-06-16 12:03:36 +00:00
rubidium f4c0bfc3a4 (svn r10169) -Fix [FS#875]: trunk did still tell Windows that it was version 0.5.0(.0), so now we use a "bogus" version number to tell it's not a real release. The version number that will be shown in-game will not change, only the version number in the file properties. 2007-06-16 11:13:30 +00:00
rubidium d58d721fab (svn r10168) -Fix [FS#879]: cannot build airport when an aircraft is flying over it. 2007-06-16 10:10:22 +00:00
belugas 108ee9bc3e (svn r10167) -Codechange: Change the flagging system of grf loaded feature from a bitset to a bool evaluation.
Like easier to read and faster to evaluate :)
2007-06-15 23:55:52 +00:00
peter1138 ef099dbc27 (svn r10166) -Feature(tte): Add support for antialiased typefaces via FreeType. This is configurable for each font size in the configuration settings and requires using the 32bpp blitter and suitable fonts. 2007-06-15 16:21:56 +00:00
rubidium d6267f5539 (svn r10165) -Fix [FS#874]: crash when trying to get the aircraft movement state of an aircraft going to a just deleted airport. 2007-06-15 08:05:24 +00:00
miham 54fbad017e (svn r10164) -Update: WebTranslator2 update to 2007-06-15 07:44:28
catalan    - 2 fixed by arnaullv (2)
dutch      - 2 fixed by habell (2)
esperanto  - 1 fixed by LaPingvino (1)
norwegian_bokmal - 24 fixed by oletk (24)
turkish    - 16 fixed by jnmbk (16)
2007-06-15 05:44:45 +00:00
belugas 402cf772f0 (svn r10163) -Fix(r8128): Industries had lost their random recoloring. A test was removed and is now reintroduced in another way. 2007-06-15 01:53:43 +00:00
rubidium 0e2978720d (svn r10158) -Codechange: port some changes from NoAI and FS#872 to make the loan commands a little better readable. 2007-06-14 15:24:34 +00:00
truelight 144035bf5c (svn r10157) -Fix: use as indentified for PNGs, the place of the image as it was in the grf, not the internal SpriteID 2007-06-14 14:31:48 +00:00
truelight a61f0d9049 (svn r10156) -Fix: PNG loader can now load 8bpp palette images and greyscale images 2007-06-14 14:11:08 +00:00
rubidium 0e5a6661f7 (svn r10155) -Fix [FS#601]: Airports didn't flood when there are aircraft on the airport. 2007-06-14 08:39:27 +00:00
rubidium 3b5203dbc6 (svn r10154) -Fix [FS#870]: some vehicles were not drawn when having a high resolution and a high zoom-out level. Patch by B. N. SmatZ!. 2007-06-13 23:43:00 +00:00
rubidium 991996eb36 (svn r10153) -Fix [FS#869]: vehicles disappear when crossing certain tiles. Fix by B. N. SmatZ!. 2007-06-13 23:14:08 +00:00
truelight ab6883bc19 (svn r10150) -Fix r10148: show a message to users when using 32bpp blitter and no libpng available 2007-06-13 19:34:33 +00:00
truelight 79817428b1 (svn r10149) -Fix r10143: MSVC warnings... (tnx boekabart and glx) 2007-06-13 19:05:42 +00:00
truelight 4b51ea375b (svn r10148) -Fix r10143: make --without-png to compile again 2007-06-13 18:52:06 +00:00
rubidium 2c6bf89e02 (svn r10147) -Fix: the oldloader did clear some bits for road vehicles that shouldn't be cleared in some cases. 2007-06-13 18:36:04 +00:00
belugas 0b65070b36 (svn r10146) -Codechange: Silence a compiler warning
-Codechange: Comment style beautifying
-Codechange: define (tentatively) var 0x44 and 0x61 for industry tiles
2007-06-13 18:35:06 +00:00
rubidium 197a8fd5f3 (svn r10145) -Fix: make compiling with networking disabled (again) possible. 2007-06-13 17:34:05 +00:00
truelight b7443d800b (svn r10143) -Add: store the filename of the grfs opened and allow easy access to the name
-Codechange: store the SpriteID in the spritecache too
-Add: add a PNG loader for graphical files
-Documentation: added a document to explain the PNG format
2007-06-13 16:21:11 +00:00
truelight 4185c4afcd (svn r10142) -Fix r10132: do something useful with the alpha channel instead of ignoring it 2007-06-13 16:04:35 +00:00
celestar 5f1791bfb1 (svn r10141) -Fix (FS#848, r8973): Set the newgrf bit for realistic plane speeds (bulb) 2007-06-13 15:24:40 +00:00
rubidium 91420c0d8d (svn r10140) -Fix [FS#867]: an industry could overbuild a bridge. 2007-06-13 15:22:28 +00:00
rubidium a702f6b3a8 (svn r10139) -Fix: all inner parts of OpenTTD assume that the resolution is at least 1 by 1, so force the resolution to be always at least 1 by 1. 2007-06-13 14:57:42 +00:00
rubidium 504d93c499 (svn r10138) -Fix: when you got a sufficiently small resolution, there is a possibility for a division by zero when a sound is played. 2007-06-13 14:56:27 +00:00
rubidium 112f05e705 (svn r10137) -Add: console command to get the current game date. 2007-06-13 14:52:41 +00:00
truelight e7221d1fa9 (svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
-Add: added a new renderer and blitter to make room for some optimized bpp
-Fix: fill the alpha channel in the grf-spriteloader
2007-06-13 10:31:40 +00:00
rubidium 97b74fe4f2 (svn r10131) -Fix [FS#810]: when removing a dock, a ship will always try to reach the old location of the dock even when it cannot anymore because it the old location of the dock is now land instead of water. 2007-06-13 09:12:10 +00:00
maedhros 860fe49b80 (svn r10130) -Fix (r4493): SetCurrentGrfLangID returned the wrong language ids for most languages. 2007-06-13 07:59:20 +00:00
peter1138 f477075a0b (svn r10129) -Fix (r10111): Test for x == INVALID_COORD instead of v->tile == INVALID_TILE to determine if a vehicle should be removed from the has. 2007-06-13 07:14:42 +00:00
peter1138 f7e4d4d6e7 (svn r10128) -Fix (r4811): missing printf parameters in newgrf debug message 2007-06-13 06:42:43 +00:00
belugas 30863358f9 (svn r10127) -Add: Addition of basic structure for industry tiles callbacks (unfinished).
-Codechange: ResolverObject receives member gfx, making it compatible for both industries and industry tiles
-Codechange: NewIndustryResolver now has his randombits and triggers (even if not implemented)
2007-06-13 02:29:08 +00:00
glx da1743e980 (svn r10126) -Fix (r10111, FS#864): old_new_hash cache was not reset when the position hash were 2007-06-13 01:38:00 +00:00
rubidium 031565527e (svn r10125) -Fix [FS#865]: under some circumstances the wagons of a train didn't get loaded properly. 2007-06-12 23:35:10 +00:00
truelight 2f5c49abc2 (svn r10124) -Fix r10123: fix the OSX video driver properly 2007-06-12 23:10:47 +00:00
bjarni ee4208ffe9 (svn r10123) -Fix r10121: the 8 bpp cocoa video driver works again 2007-06-12 23:06:56 +00:00
maedhros 12be876131 (svn r10122) -Codechange: Add a CountBitsSet function and use it to replace some less efficient loops. 2007-06-12 22:13:49 +00:00
truelight f3f744d36a (svn r10121) -Codechange: split renderer from rest of code; no longer any code directly accesses the video-buffer
-Add: added NULL blitter and renderer, which are always used for -vnull
-Add: dedicated driver doesn't blit nor render by default. Can be overruled by user. (-D -b 8bpp-optimized)
-Remove: removed CTRL+D from win32, which is incompatible with above
-Add: extended screenshot support for PNG and BMP
-Codechange: remove all hardcoded 8bpp references and replace them with more dynamic ones
-Codechange: minor stuff in blitters
2007-06-12 20:24:12 +00:00
miham 381b11c979 (svn r10119) -Update: WebTranslator2 update to 2007-06-12 20:09:56
bulgarian  - 1 fixed by thetitan (1)
estonian   - 23 changed by kristjans (23)
italian    - 2 fixed by lorenzodv (2)
korean     - 2 fixed by darkttd (2)
romanian   - 28 fixed, 59 changed by CrystyB (87)
swedish    - 31 fixed by giddorah (31)
ukrainian  - 3 fixed by mad (3)
2007-06-12 18:10:14 +00:00
maedhros 49ba521e77 (svn r10117) -Fix [FS#863]: When deleting the vehicles of bankrupt players, delete trains as
a whole rather than each part individually, as that leads to invalid tests on
parts that have already been deleted.
2007-06-12 17:10:52 +00:00
rubidium 73790d9cd6 (svn r10116) -Fix [FS#850]: remove invalid characters (for the file system) from savegame names. Based on a patch by TheJosh. 2007-06-12 15:46:34 +00:00
belugas 4df44a4dff (svn r10115) -Codechange: Create accessors to triggers and random bits for industries.
Implementation will follow soon.
2007-06-12 14:22:28 +00:00
maedhros 109dd33c4a (svn r10114) -Fix: Only load newgrf error messages if the language matches the current
language. Since only one error can be loaded anyway, if the language didn't
match you'd get "Undefined string". Also since we're only loading one language
there's no need to use AddGRFString any more.
2007-06-12 13:22:14 +00:00
peter1138 d1e71eb34e (svn r10113) -Fix (r10092): Missing svn properties and some Id/@file comments 2007-06-12 12:27:40 +00:00
peter1138 78d797a6b7 (svn r10111) -Codechange: Add new vehicle hash table for collision detection and finding vehicles on a tile. The hash area scanned is far smaller than the old hash table, which is now used for viewport updates only. This should give a significant performance improvement for games with many vehicles. (Based on work by 'B. N. SmatZ!' and 'madman2003') 2007-06-12 11:22:32 +00:00
maedhros 105c7455ae (svn r10110) -Fix: Reset NewGRF errors along with all the other NewGRF data so that errors get loaded again when pressing "Apply". 2007-06-12 09:41:12 +00:00
rubidium be0539cb43 (svn r10109) -Fix [FS#838]: some NewGRFs use the same (unused in the "current" climate) sprite IDs. Normally this gives some artefacts, but when one NewGRF expects it to be a sprite and another NewGRF overwrites it with a non-sprite nasty things happen (drawing a non-sprite crashes OTTD). 2007-06-12 09:40:50 +00:00
belugas 8efb7e53ec (svn r10108) -Codechange: implement variable 0x60 (Get industry tile ID at offset) for industries.
It is exposed for for industry tiles who will reuse it too, for variable 0x62.
2007-06-12 00:49:50 +00:00
peter1138 28c5730583 (svn r10107) -Fix (r10092): Missing 'i' in 'optimized' 2007-06-11 21:17:02 +00:00
rubidium 01593bdb6a (svn r10106) -Fix (r10098): there's always a compiler complaining about something... 2007-06-11 19:29:42 +00:00
truelight d0250f6108 (svn r10105) -Fix r10092: fix sprite 4845 till 4881 (inclusive), so they store the data as on the disk in the memory, as the old landscape generate assumes this. Talking about ugly hacks... 2007-06-11 18:49:55 +00:00
miham 30627e6eeb (svn r10104) -Update: WebTranslator2 update to 2007-06-11 19:45:13
catalan    - 4 changed by arnaullv (4)
czech      - 3 fixed, 1 changed by Hadez (4)
danish     - 2 fixed by MiR (2)
dutch      - 1 fixed by habell (1)
estonian   - 2 fixed, 15 changed by kristjans (17)
french     - 3 fixed by glx (3)
hungarian  - 2 fixed by miham (2)
2007-06-11 17:45:32 +00:00
maedhros 560a542354 (svn r10103) -Fix (r10086): TrackBitsToTrack doesn't cope well with TRACK_BIT_NONE (e.g. non-rail tiles), so use FindFirstTrack instead. 2007-06-11 16:41:34 +00:00
truelight 4ad6639475 (svn r10102) -Documentation: @file header was wrong 2007-06-11 15:14:57 +00:00
truelight d2d25295ce (svn r10101) -Codechange: the class is named 8bppSimple, so name the files like that too 2007-06-11 15:13:30 +00:00
truelight 31ade47910 (svn r10100) -Fix r10093: some code now became obsolete as it never did something 2007-06-11 14:45:26 +00:00
belugas 81c7c87ed7 (svn r10099) -Fix(r9867, FS860): Use the specs of the to-be-created industry instead of the scanned industry
Spotted by Oxygene
2007-06-11 14:25:38 +00:00
rubidium cc4d18ecc4 (svn r10098) -Codechange: bilbo cared about the performance of the AI with respect to the airport placement, so he rewrote the aircraft handling of the AI; now it can actually make lots of money again :) 2007-06-11 14:23:04 +00:00
maedhros 3e326085fa (svn r10097) -Feature: Add support for articulated road vehicles, or callbacks 11 and 17 for
road vehicles for those who prefer the technical explanation.
2007-06-11 14:00:16 +00:00
truelight be0f5cf877 (svn r10096) -Fix r10092: freetype bypassed the Blitter::Encode, making fonts look weird 2007-06-11 13:38:11 +00:00
truelight 9d570fa018 (svn r10095) -Fix: avoid reading outside the buffer because of scaling problems 2007-06-11 12:51:27 +00:00
rubidium f98b175cf5 (svn r10094) -Fix: some really broken strings got in. 2007-06-11 12:44:02 +00:00
truelight a391f03ae2 (svn r10093) -Revert: removed 16x zoom-out as it is broken beyond repair 2007-06-11 11:59:36 +00:00
truelight 6b101cc177 (svn r10092) -Codechange: code-seperated the spriteloader and blitter from the rest of the code
-Add: make it possible to pick your own blitter (-b <blitter>, -h for overview)
-Add: added a new optimized 8bpp blitter (default, caches sprites of all zoom-levels)
-Add: added a debug 8bpp blitter and a very slow normal 8bpp blitter
2007-06-11 11:50:49 +00:00
maedhros 96a3a89c86 (svn r10089) -Fix (r10040): Use GetTileZ instead of GetClearGround in GetTerrainType as
GetTileZ is valid for any tile type. Also use GetTerrainType for stations.
2007-06-11 04:52:51 +00:00
belugas 94200b63b8 (svn r10088) -Codechange: A typo and a code-style 2007-06-10 23:40:29 +00:00
rubidium 5f5ab6cc87 (svn r10087) -Fix [FS#834]: multiple subsequent "give money" actions could result in duplicate messages that money has been transfered when it only happened once. 2007-06-10 21:34:45 +00:00
maedhros fe3a7cc5ed (svn r10086) -Codechange: Use more sensible types and functions in GenericPlaceSignals. 2007-06-10 21:28:20 +00:00
rubidium a0ffa793cc (svn r10085) -Fix [FS#839]: message that you had given money appeared even when an error occured. 2007-06-10 20:49:11 +00:00
rubidium 77b06e922f (svn r10084) -Fix [FS#855]: reversing a train when loading at a station crashed. 2007-06-10 20:27:28 +00:00
rubidium d0ad020dc6 (svn r10082) -Fix [FS#846]: another memory leak in the networking code (benc). 2007-06-10 19:59:08 +00:00
rubidium 7767e466e5 (svn r10081) -Fix [FS851]: towns/AIs didn't build bridges anymore (boekabart). 2007-06-10 10:52:19 +00:00
bjarni ff40914740 (svn r10080) -Cleanup: replaced magic numbers in SubtractMoneyFromAnyPlayer() with enum values 2007-06-10 09:37:09 +00:00
miham ab89ee7770 (svn r10079) -Update: WebTranslator2 update to 2007-06-10 08:31:40
bulgarian  - 29 fixed by thetitan (29)
catalan    - 1 fixed by arnaullv (1)
estonian   - 159 changed by kristjans (159)
2007-06-10 06:31:51 +00:00
belugas 08c9365971 (svn r10078) -Codechange: Centralize all industry counts data and access 2007-06-10 01:25:21 +00:00
bjarni 3afea2d673 (svn r10077) -Fix: FS#845 Cloning Trains Longer Than 8 Units Causes Crash
The problem was that if adding units to the clone (wagon by wagon) failed, then cloning wouldn't notice it and it made two half trains
  Now it detects this case and it will make cloning fail. The string with the explanation for the failed move will be used in the error message so the user will know why it failed.
2007-06-09 18:31:04 +00:00
miham ec25b71bd4 (svn r10076) -Update: WebTranslator2 update to 2007-06-09 10:29:27
danish     - 1 fixed by ThomasA (1)
estonian   - 1 fixed, 96 changed by kristjans (97)
german     - 29 fixed by Neonox (29)
hungarian  - 1 fixed by miham (1)
italian    - 1 fixed by lorenzodv (1)
japanese   - 1 fixed by ickoonite (1)
korean     - 1 fixed by darkttd (1)
2007-06-09 08:31:41 +00:00
rubidium 02146b13c8 (svn r10075) -Fix [FS#844]: small memory leak on some early returns. 2007-06-09 04:01:40 +00:00