Commit Graph

2008 Commits

Author SHA1 Message Date
glx 17870089d0 (svn r11116) -Fix (r11106): tar loader was not compiled for WIN32 2007-09-15 15:21:17 +00:00
rubidium 070f7b7a27 (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 1c998c6d92 (svn r11111) -Fix (r11106): missing const broke compilation with MSVC 2007-09-15 00:49:44 +00:00
truelight f438dcdd67 (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 e8ff9ee982 (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 fef64185b8 (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 5647bd5157 (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 b25c661ce6 (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 6762862edc (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 faa183a060 (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 6f296b9870 (svn r11102) -Codechange: remove some pointless addition+substractions. Patch by frosch. 2007-09-14 21:32:21 +00:00
truelight d5171df2df (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 7648df7fb5 (svn r11100) -Fix r11099: darn typos... 2007-09-13 18:50:42 +00:00
truelight 3d0ac92267 (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 c0c12bca3d (svn r11098) -Fix r11096: forgot spaces before comments 2007-09-13 18:35:29 +00:00
truelight 70772e9cc9 (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 bf17a96b63 (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 8cd9ab9b7e (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 1970e657a3 (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 b21093ea8f (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 f1336fba68 (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 1e4f8d7a23 (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 9e7931f6ea (svn r11089) -Codechange: add revision detection to MSVC. 2007-09-12 07:11:48 +00:00
glx 7b7c66fb6b (svn r11088) -Fix (r11063, r11067): MSVC warning C4804: '>' : unsafe use of type 'bool' in operation 2007-09-11 17:42:46 +00:00
miham 22843caaf5 (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 74d0bf52b2 (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 160e719836 (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 a2a3a00e17 (svn r11084) -Documentation [FS#1219]: of command.*. Patch by Progman. 2007-09-10 15:21:14 +00:00
truelight 1de38b4119 (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 8de52c089d (svn r11082) -Fix r11081: save before commit (yeah, whitelines are important too!) 2007-09-10 00:05:27 +00:00
truelight fc80e722cf (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 ab880fdf07 (svn r11080) -Fix r11079: fix it, still dirty, correctly, as the last commit was ... wrong ;) 2007-09-09 23:57:47 +00:00
truelight 3c31722825 (svn r11079) -Fix: dirty fix to allow big-screenshots with 32bpp-anim 2007-09-09 23:47:55 +00:00
truelight 34e48f7886 (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 89bdfaacd9 (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 38ff181ebf (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 384bfae293 (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 30b3819870 (svn r11069) -Codechange: allow slopes under statues. Patch by kaan. 2007-09-09 11:30:44 +00:00
rubidium 40b871410b (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 efea7622ac (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 ed3b1d398a (svn r11066) -Documentation [FS#1091]: of map.*. Patch by Progman. 2007-09-09 10:21:27 +00:00
rubidium 65f9a0f21a (svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman. 2007-09-09 10:13:17 +00:00
rubidium ef4d248325 (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 3243b07542 (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 814583f2a6 (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 1713d89374 (svn r11061) -Fix [FS#1086]: [win32] some keys were handled twice 2007-09-08 14:59:58 +00:00
rubidium 82f6a90a56 (svn r11060) -Codechange: replace some magic numbers with the right enumified constants. 2007-09-08 10:10:31 +00:00
rubidium 91a49cee55 (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 8141fe0898 (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 4eef590b15 (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 c25655d4ae (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 a208f83e8b (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 8daaea0398 (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 1d5d9de628 (svn r11053) -Fix: train status bar flickering a lot when waiting at a signal. 2007-09-07 21:09:37 +00:00
glx 4a658a562b (svn r11052) -Fix (r11017)[FS#1210]: vehicles always skip service order 2007-09-07 17:01:35 +00:00
belugas 518fd6aa4d (svn r11050) -Codechange: Use the translated gfx, not the original one. 2007-09-06 03:02:38 +00:00
rubidium 8a161d1488 (svn r11049) -Codechange: unify a large part of the vehicle details window. Based on a patch by nycom. 2007-09-05 23:26:45 +00:00
rubidium 15ea3be986 (svn r11048) -Fix [FS#1206]: several cases where (re)moving eninges on a train would corrupt the vehicle counts for the groups. 2007-09-05 21:05:12 +00:00
rubidium 104300c9fa (svn r11047) -Fix (r11011) [FS#1205]: desync due to wrong cached vehicle length on articulated vehicle construction. 2007-09-05 17:53:14 +00:00
bjarni f7d1c125b1 (svn r11046) -Codechange: added function to get the next movable (non-articulated, non-read end of dualheaded engine) vehicle in a train 2007-09-05 10:33:42 +00:00
bjarni 7cdf6d1cbe (svn r11045) -Codechange: added a function to tell if a vehicle is the rear part of a dualheaded train engine 2007-09-05 10:15:23 +00:00
bjarni 1028e2dc91 (svn r11044) -Fix (r11043): [autoreplace] a proper fix should cover all cases, not just the one mentioned in the bug report
Certain dualheaded/articulated consists could still trigger this issue
2007-09-05 09:31:15 +00:00
bjarni 75bc407c46 (svn r11043) -Fix (r10039) [FS#1185]: Autorenew/autoreplace fails silently with multiple multi-headed engines 2007-09-04 19:58:18 +00:00
rubidium c5cfb281ad (svn r11042) -Fix [FS#1196]: so newgrf callbacks returned slightly wrong heights (height of nothern corner instead of height of lowest corner). Patch by frosch. 2007-09-04 12:06:38 +00:00
rubidium a0559dd89e (svn r11041) -Fix (r10460) [FS#1195]: the industry's owner was saved twice instead of the owner and the founder. Patch by frosch. 2007-09-04 12:00:12 +00:00
rubidium 9706c32ed6 (svn r11040) -Fix [FS#1179]: removing CMD_AUTO from some commands could remotely trigger an assertion. 2007-09-04 11:58:27 +00:00
rubidium b1effc466e (svn r11039) -Fix [FS#1191]: underflow that caused overflows in the performance rating calculation. 2007-09-02 20:41:46 +00:00
miham d396b0c556 (svn r11038) -Update: WebTranslator2 update to 2007-09-02 22:28:19
brazilian_portuguese - 4 fixed by tucalipe (4)
bulgarian  - 1 fixed by thetitan (1)
catalan    - 4 fixed by arnaullv (4)
croatian   - 6 fixed, 563 changed by knovak (569)
czech      - 4 fixed by Hadez (4)
dutch      - 4 fixed by habell (4)
french     - 4 fixed, 5 changed by Skiper (3), glx (6)
italian    - 4 fixed, 2 changed by lorenzodv (6)
korean     - 14 fixed, 22 changed by leejaeuk5 (36)
2007-09-02 20:28:53 +00:00
rubidium 52e1d03ec7 (svn r11033) -Fix [FS#1184] (r11011): building articulated vehicles failed. Based on a patch by SmatZ. 2007-09-01 20:09:26 +00:00
rubidium 05581edf59 (svn r11032) -Codechange: unmagicify some table sizes and removal of some unnecessary variables. Patch by frosch. 2007-09-01 09:12:46 +00:00
rubidium 56ab253307 (svn r11031) -Codechange: reduce the amount of duplication of bit counting functions. Based on patches by skidd13, SmatZ and Belugas. 2007-09-01 08:31:36 +00:00
rubidium 0df355bbda (svn r11030) -Revert r11016, Fix [FS#1178]: the way to determine whether a station should get goods was not done properly. 2007-09-01 08:04:08 +00:00
glx 1f7f4f6f62 (svn r11029) -Fix [FS#1164]: win32 midi doesn't stop when closing openttd 2007-08-31 23:29:53 +00:00
rubidium 79fedd37be (svn r11028) -Fix [FS#1177]: crash when having the Finance window opened of the player you are cheating to. 2007-08-31 23:02:16 +00:00
rubidium 57db6a8c20 (svn r11027) -Fix: do not unconditionally assume that a tile has a depot. 2007-08-31 20:52:38 +00:00
rubidium 10475e88c6 (svn r11026) -Fix: the name of a sign could sometimes be NULL causing crashes. 2007-08-31 20:50:59 +00:00
rubidium c720d9d83a (svn r11025) -Fix: safeguard StrEmpty from calls with NULL. 2007-08-31 20:50:18 +00:00
rubidium 8c85125fd9 (svn r11024) -Fix [FS#1173]: give a more correct error when building some things on tile 0; "Can't build on water" or "Too close to the edge" instead of "Vehicle in the way". Patch by SmatZ. 2007-08-31 20:03:50 +00:00
rubidium a8033758e7 (svn r11023) -Fix [FS#1150]: Switching players (using the cheat) crashed on Big Endian machines. 2007-08-31 19:49:31 +00:00
rubidium dd60e3b7dd (svn r11022) -Fix: the canal border determination did not take oil rigs into consideration. 2007-08-31 19:46:45 +00:00
rubidium 9695727120 (svn r11021) -Fix [FS#1175]: do not display income/expenses when they do not belong to a "valid" tile, like the money cheat/giving money. 2007-08-31 17:43:29 +00:00
rubidium 3fa5559cfc (svn r11020) -Fix [FS#1174]: One could not give money when (s)he had too much money or rather: when casting the amount of money to an int32 becomes negative. 2007-08-31 17:38:29 +00:00
rubidium 1b9ea5468e (svn r11019) -Fix [FS#1176]: Vehicles in a group must always have the same type when adding new vehicles to a group. Patch by SmatZ. 2007-08-31 17:31:54 +00:00
rubidium 7f21de5ea9 (svn r11018) -Fix [FS#1169]: Disallow buying/selling shares in your own company or a bankrupted/non-existant company. 2007-08-31 17:15:46 +00:00
rubidium 2c8e50f20c (svn r11017) -Codechange: unify determining whether a vehicle needs/can be service a little more. 2007-08-31 17:13:39 +00:00
rubidium 976ce8ad3f (svn r11016) -Fix [FS#1172]: stations would also be given cargo when vehicles have only dropped cargo of that particular type. 2007-08-31 17:09:13 +00:00
rubidium c81eafdaa0 (svn r11015) -Fix [FS#1166]: towns would build bridges through eachother. 2007-08-31 13:06:28 +00:00
rubidium 98a3b8abfa (svn r11014) -Fix (r11011) [FS#1170]: crash when selling the first train of a consist. 2007-08-31 12:57:52 +00:00
rubidium c19b8c72b7 (svn r11013) -Fix [FS#1171]: MoveGoodsToStation's search area is too small as it assumed a lower maximum catchment area than the real maximum catchment area. Based on a patch by PhilSophus. 2007-08-31 12:45:21 +00:00
rubidium aba867d78d (svn r11011) -Fix [FS#1129]: GetFirstVehicleInChain did change the game state while being marked const.
-Codechange: do not brute force determine the first vehicle in the chain or previous vehicle, but do it by properly accounting the previous and first pointers when updating the next pointer. This gives a performance increase of about 15% when there are a lot of vehicles in the game.
2007-08-30 21:11:12 +00:00
rubidium 8a6cc3aa10 (svn r11009) -Codechange: unvirtualise IsValid as that isn't needed with templates. This gives up to 10% performance increase in games with lots of vehicles. 2007-08-30 20:40:33 +00:00
rubidium 9833639b00 (svn r11006) -Fix: spectators are not allowed to issue commands. Issue spotted by SmatZ. 2007-08-30 19:20:15 +00:00
rubidium b284b5fa92 (svn r11005) -Codechange: move the tiletype specific terraforming checks to the functions for those tile types.
-Codechange: barren the rail grounds on terraforming.
2007-08-30 17:17:04 +00:00
rubidium 9b65bc430c (svn r11004) -Codechange: some reworks of the saveload mechanism to be able to save and load private and protected variables in the vehicle struct. 2007-08-30 13:09:44 +00:00
rubidium cb7eaff353 (svn r11003) -Codechange: replace Vehicle->next to Vehicle->Next() and Vehicle->SetNext() so we can trap instances that change a next pointer and (in the future) update the first/previous pointers based on that. 2007-08-30 13:03:56 +00:00
rubidium ac5fde61fb (svn r11002) -Codechange: unhackify the cargo packet list saving (a little). 2007-08-30 12:10:32 +00:00
rubidium a407d53d1b (svn r11001) -Codechange: unify the way to determine whether a vehicle is in a depot. 2007-08-29 21:49:08 +00:00
truelight a28d33b5dc (svn r11000) -Fix r10121: when introducing the new blitter system, smallmap regained an old bug: buffer-overflow when moving window to far bottom-right.
-Note: we no longer cheat on not drawing the last line in smallmap, this time we created a more elegant fix
2007-08-29 21:30:03 +00:00
rubidium 3f3b013b99 (svn r10999) -Codechange: unify the way the running cost of a vehicle is determined. Patch by nycom. 2007-08-29 21:27:16 +00:00
rubidium 99409d99d0 (svn r10998) -Codechange: refactor of the "core" of the terraforming code to make it possible to push the tile type specific terraforming requirements out of the generic part of the terraforming code. Patch by frosch. For more information take a look at FS#1147. 2007-08-29 21:08:35 +00:00