Commit Graph

1113 Commits

Author SHA1 Message Date
rubidium c685a7179f (svn r9891) -Fix [FS#787]: the manage list menu wasn't removed/updated when changing to another group making it able to perform "group" actions for "all vehicles", which would cause a crash. 2007-05-20 18:34:47 +00:00
peter1138 f1c0229b5d (svn r9890) -Codechange: Don't allocate space for 0 spriteset ranges 2007-05-20 16:17:03 +00:00
peter1138 546dfc2758 (svn r9889) -Codechange: Use cargo's freight status for choosing livery scheme. 2007-05-20 10:27:43 +00:00
peter1138 c28cffdf67 (svn r9888) -Codechange: [NewGRF] allow non-spec cargo action2s to work, and using the goods sprite if really nothing is returned. 2007-05-20 09:17:42 +00:00
peter1138 44fc08391d (svn r9887) -Fix (r9867): Industry production statistics messed up... 2007-05-20 05:53:19 +00:00
belugas 88042df6bb (svn r9886) -Codechange: Cleanup of industries (Step-13). Include the sounds table into the industry's spec. 2007-05-20 00:50:06 +00:00
truelight 49aa3bedfb (svn r9885) -Fix r9846: some last bitshifts with zoom-levels that were forgotten
-Fix r9846: initialize the zoom level for 'screen', as assuming 0 is not correct
2007-05-19 23:52:04 +00:00
truelight 6954045bb4 (svn r9884) -Feature: 2 new zoom-out levels: 8 times and 16 times
-Codechange: unified the blitter function so we have 1 function for all zoom-levels
-Codechange: make most of the label functions work with zoom-level instead of magic numbers and big switches per zoom-level
-Codechange: MakeXXXDirty() functions didn't take into account zoom-level, but just used the biggest possible value
-Codechange: simplified blitter functions to avoid code duplication
2007-05-19 22:48:04 +00:00
peter1138 1ce633b894 (svn r9883) -Fix (r4965): [NewGRF] Check for overflow and carry over when adding to the existing value. 2007-05-19 22:37:24 +00:00
rubidium 707bc97c03 (svn r9882) -Fix (r9874): the "default group" is also a valid group in some cases. 2007-05-19 21:47:14 +00:00
rubidium 904619f631 (svn r9881) -Fix (FS#782, r9874): accidentally removed one condition too many causing asserts. 2007-05-19 20:15:50 +00:00
glx c9d72a900b (svn r9880) -Add: [NewGRF] Add action 7/9 condition 0B/0C (cargo type availability) 2007-05-19 19:13:12 +00:00
rubidium 1434c7746d (svn r9879) -Fix (r9874): global autoreplace was little broken ;) 2007-05-19 12:46:48 +00:00
rubidium 4570a8954a (svn r9878) -Fix (9874): some vehicle count's were not properly updated on delete or autoreplace of vehicles. 2007-05-19 12:29:09 +00:00
peter1138 a58bd26b74 (svn r9877) -Revert (r9876): one file too many... 2007-05-19 11:18:22 +00:00
peter1138 47d17bea9d (svn r9876) -Codechange: [NewHouses] Add support for callback 2E (cargo production) 2007-05-19 11:17:30 +00:00
peter1138 60a2c5280e (svn r9875) -Fix (r9828): Only set carriage capacity if the wagon has not been refitted. 2007-05-19 10:29:51 +00:00
rubidium 7d4be11516 (svn r9874) -Feature: advanced vehicle lists a.k.a. group interface. Now you can make groups of vehicles and perform all kinds of tasks on that given group. Original code by nycom and graphics by skidd13. 2007-05-19 09:40:18 +00:00
peter1138 816d31f0aa (svn r9873) -Codechange: Add missing second callback parameter for houses 2007-05-19 09:13:08 +00:00
rubidium 5178911345 (svn r9872) -Codechange: more type strictness for vehicle types 2007-05-18 23:38:29 +00:00
peter1138 b8a82dcb05 (svn r9871) -Fix (r8826): Some cargo costs were wrong for different climates. Multiple definitions of the same cargo type are sometimes required. 2007-05-18 21:50:32 +00:00
belugas 49570edfe9 (svn r9870) -Codechange: Silence two compiler warnings and give proper type to the "type" member of industry struct 2007-05-18 17:55:07 +00:00
rubidium ba24c34f85 (svn r9869) -Codechange: replace some bytes with VehicleType, i.e. more type strictness. 2007-05-18 17:31:41 +00:00
belugas 2196abd71d (svn r9868) -Codechange: bring external declaration of functions togueter and adjust a comment 2007-05-18 14:34:15 +00:00
belugas 380d18fb69 (svn r9867) -Codechange: Remove data duplication. The exact same values can be found in the industry spec, so take it from there instead. 2007-05-18 00:33:47 +00:00
rubidium 44ddf033ed (svn r9866) -Codechange: remove the technical one-input-cargo-creates-one-output-cargo limit in the factories, sawmills, steelmills and the ones I'm forgetting to mention right now. Use of this functionality will come later. 2007-05-17 20:19:55 +00:00
glx 5b74a6ab2f (svn r9865) -Fix (r9862): NOT_REACHED() and error() declarations are needed for strgen 2007-05-17 20:00:45 +00:00
rubidium c8a84628f6 (svn r9862) -Fix (9842): strgen's error() does return in contrast to OTTD's error(). 2007-05-17 13:36:00 +00:00
rubidium aea6ef94bc (svn r9861) -Fix: null pointer derefence under MorphOS and AmigaOS. 2007-05-17 12:06:47 +00:00
rubidium 042bcc0325 (svn r9857) -Fix: loading of TTDP savegames with features that OTTD has. 2007-05-16 21:28:23 +00:00
rubidium c53bd7404d (svn r9855) -Fix: [FS#779] do not perform any commands on MP_VOID tiles. 2007-05-16 08:20:37 +00:00
belugas 3fb4003534 (svn r9850) -Codechange: Introduction of the Override/Substitute manager. Currently only used for newhouses.
Basically, it is more a gathering of IDs from grf files and ingame data.
2007-05-15 21:36:58 +00:00
truelight d2776ccde9 (svn r9848) -Fix r9846: how every many times you check something, of course you always switch them at the last moment... UnScaleByZoom was ScaleByZoom and visa versa... (tnx to yeti_ for noticing) 2007-05-15 17:54:46 +00:00
miham 052ab1929d (svn r9847) -Update: WebTranslator2 update to 2007-05-15 19:41:41
estonian   - 10 fixed by kristjans (10)
japanese   - 9 fixed by ickoonite (9)
traditional_chinese - 21 changed by xbddc (21)
2007-05-15 17:41:50 +00:00
truelight 765c466b8d (svn r9846) -Codechange: introduced ZOOM_LVL_MIN and ZOOM_LVL_MAX for the obvious reasons
-Codechange: introduced ZOOM_LVL_DETAIL to show/remove details
-Codechange: changed << and >> operator with ZoomLevel to a simple wrapper (that in theory also allows zoom-in besides the current zoom-out)
-Fix r9845: missed some int -> ZoomLevel
2007-05-15 16:08:46 +00:00
truelight d3f375231f (svn r9844) -Codechange: replace zoomlevel with an enum
-Codechange: use predefined enums for viewport zoomlevels
2007-05-15 14:08:39 +00:00
rubidium 196ddae1db (svn r9843) -Fix (r9838): tell the newgrfs that we now support proper FIFO loading. 2007-05-15 13:38:43 +00:00
rubidium f9e0d3835b (svn r9842) -Codechange: now NOT_REACHED is also triggered when debugging is disabled. 2007-05-15 13:01:52 +00:00
rubidium 23492f1f34 (svn r9841) -Codechange: add a little more type strictness to the vehicle types. 2007-05-15 11:28:22 +00:00
rubidium a390db6941 (svn r9840) -Fix (r9838): MSVC is complaining about signedness again (Belugas). 2007-05-15 06:20:16 +00:00
rubidium 54de7d90f6 (svn r9839) -Fix: vehicles in old savegames could leave the station because the changed loading algorithm thought it was already finished. 2007-05-14 20:17:26 +00:00
rubidium 72662e15f9 (svn r9838) -Fix: make "improved loading" a proper improved loading instead of loading one (semi-)random vehicle at a time:
- Now it is really FIFO.
 - When there is enough cargo to fill the first vehicle in the queue, the next vehicle in the queue start loading (and the next when ....).
2007-05-14 20:12:32 +00:00
peter1138 b80e11c44c (svn r9837) -Fix: [NewGRF] Catch occurance of division-by-zero in varaction handling. 2007-05-14 17:37:34 +00:00
rubidium c7d57379fb (svn r9836) -Codechange: make non-improved loading happen FIFO-ish; generally loading/unloading will happen fifo, but there are no guarantees on the FIFO-ness. For (better) FIFO guarantees you still need to use improved loading. 2007-05-14 16:07:05 +00:00
truelight d7b4fb80d0 (svn r9835) -Codechange: use Pixel typedef instead of byte where ever possible 2007-05-14 15:20:50 +00:00
glx 62fe9c2e42 (svn r9834) -Add: win9x check in win32 builds 2007-05-14 14:06:46 +00:00
rubidium 42f920964b (svn r9833) -Fix: also 'leave' the station when leaving for automatic servicing. 2007-05-14 08:07:20 +00:00
rubidium e72ab0fdf5 (svn r9832) -Fix: leave the station when manually skipping to the next order and we are currently (un)loading. 2007-05-13 22:10:04 +00:00
rubidium d78651f7b1 (svn r9831) -Codechange: more refactoring of the loading/unloading. 2007-05-13 21:24:58 +00:00
belugas 2ccc060b4a (svn r9830) -Fix(r9779) : Let the town expand and build new houses along the roads of the users, even in case of "No Road" layout (skiddl13) 2007-05-13 00:11:13 +00:00
rubidium c46a00aba7 (svn r9829) -Codechange: more refactoring of the unloading algorithm. 2007-05-12 09:09:10 +00:00
peter1138 1d5135830a (svn r9828) -Codechange: [NewGRF] Add support for changing cargo capacity with callback 36. This is set on construction for ships and roadvehicles, and whenever carriages are attached for trains. 2007-05-12 07:05:34 +00:00
peter1138 5e00e688f8 (svn r9827) -Codechange/Fix: [NewGRF] Text strings of 1 character are perfectly valid... (fixes dbsetxl refits again...) 2007-05-11 19:22:43 +00:00
peter1138 c9018d3e7c (svn r9825) -Codechange: [NewGRF] Add support for early vehicle retirement. 2007-05-10 23:10:23 +00:00
maedhros 3cc31aae86 (svn r9823) -Feature: Add support for house property 1F - minimum life span. 2007-05-10 16:03:06 +00:00
peter1138 9643fd7638 (svn r9819) -Codechange: Take account of AMED_HOLD in OTTD/TTDP state translation (bulb) 2007-05-10 09:21:22 +00:00
peter1138 dc2073b96e (svn r9818) -Codechange: Cache wagon override sprite set whenever consist is changed, instead of 'recalculating' it every time it is used or just tested. 2007-05-10 06:42:43 +00:00
rubidium f24f9d5a2e (svn r9817) -Fix [FS#772]: an assertion that was triggered by the AI building when its rating for the town was not high enough. 2007-05-09 20:50:11 +00:00
rubidium 2d86e87a3d (svn r9815) -Fix (r9761) [FS#769): transfers weren't accounted in the vehicle profits. 2007-05-08 16:42:48 +00:00
maedhros d098e88035 (svn r9814) -Fix (r1): Remove the duplicate sign sprite from openttd.grf since it's in the original data files. 2007-05-08 14:28:55 +00:00
rubidium 5869384530 (svn r9813) -Fix (r9799): wagons must have EC_STEAM, otherwise they don't show up in the purchase list (mart3p). 2007-05-08 08:41:16 +00:00
peter1138 e0a276c1a2 (svn r9812) -Fix (r9679): Obiwan prevented proper display of last transparency button. 2007-05-07 20:25:20 +00:00
miham e52a953e99 (svn r9811) -Update: WebTranslator2 update to 2007-05-07 19:59:41
american   - 11 fixed by WhiteRabbit (11)
danish     - 11 fixed by ThomasA (11)
dutch      - 9 fixed, 2 changed by Zr40 (11)
2007-05-07 17:59:50 +00:00
peter1138 e643aeaed2 (svn r9810) -Feature: Add drag and drop removal of station tiles (Wolf01) 2007-05-07 17:10:30 +00:00
peter1138 bc7d762196 (svn r9809) -Codechange: [NewGRF] Add callback 36 properties to purchase lists and add running cost changing for ships. 2007-05-07 16:38:21 +00:00
rubidium 2efecd34c4 (svn r9808) -Codechange: unify the Handle<VehicleType>Loading functions. 2007-05-07 16:21:34 +00:00
rubidium 161786e222 (svn r9807) -Codechange: unify playing of sound when vehicle has been loaded and leaves the station. 2007-05-07 15:58:05 +00:00
peter1138 4591fb5b0d (svn r9806) -Codechange: [NewGRF] Add callback 36 support for purchase cost, for all vehicle types. 2007-05-07 13:26:10 +00:00
peter1138 0de85b7eb0 (svn r9805) -Codechange: Use HASBIT() et al for display options bits. 2007-05-07 11:24:23 +00:00
peter1138 76ee6d1c82 (svn r9804) -Fix (r9761): Update aircraft cached information when its 'pos' changes, as well as 'state'. (Thanks to bulb) 2007-05-06 21:10:49 +00:00
rubidium b46e37774d (svn r9803) -Feature(tte): support for "curvature info", Action 2 for train, variable 45 (mart3p). 2007-05-06 20:05:10 +00:00
rubidium feadd86819 (svn r9802) -Fix: a vehicle without visual effects isn't per definition unpowered (mart3p). 2007-05-06 20:00:36 +00:00
rubidium 411985b13a (svn r9801) -Fix: do not assume that trains running on monorail/maglev cannot smoke/spark (mart3p). 2007-05-06 19:58:34 +00:00
rubidium 208e40a839 (svn r9800) -Codechange: play sound effects based on the engine class, not the rail type (mart3p). 2007-05-06 19:51:25 +00:00
rubidium fe1306ce65 (svn r9799) -Codechange: separate engine class and engine running cost class (mart3p). 2007-05-06 19:44:22 +00:00
peter1138 37a873e03c (svn r9797) -Feature: [NewGRF] Add action 1, 2 and 3 support for canals. 2007-05-06 18:14:33 +00:00
miham b0e3c0d40a (svn r9796) -Update: WebTranslator2 update to 2007-05-06 19:05:33
brazilian_portuguese - 10 fixed by tucalipe (10)
bulgarian  - 5 fixed by thetitan (5)
catalan    - 9 fixed by arnaullv (9)
czech      - 9 fixed by Hadez (9)
esperanto  - 11 fixed by LaPingvino (11)
finnish    - 11 fixed by habazi (11)
french     - 9 fixed by belugas (9)
german     - 9 fixed by Neonox (9)
hungarian  - 9 fixed by miham (9)
italian    - 9 fixed by lorenzodv (9)
japanese   - 2 fixed by ickoonite (2)
korean     - 9 fixed by darkttd (9)
norwegian_nynorsk - 11 fixed by pollux (11)
polish     - 8 fixed by meush (8)
portuguese - 21 fixed, 6 changed by supra90 (27)
romanian   - 11 fixed by kneekoo (11)
spanish    - 2 fixed by eusebio (2)
swedish    - 11 fixed by giddorah (11)
traditional_chinese - 11 fixed, 2 changed by xbddc (13)
turkish    - 8 fixed by jnmbk (8)
ukrainian  - 11 fixed by mad (11)
2007-05-06 17:06:10 +00:00
rubidium 5c0a52149d (svn r9795) -Codechange: enumify the EngineClass. 2007-05-06 15:01:44 +00:00
rubidium abbaa1691e (svn r9794) -Codechange: refactor the question whether a vehicle can be loaded into LoadUnloadVehicle instead of duplicating it for each vehicle. 2007-05-06 14:59:01 +00:00
maedhros cf927a9792 (svn r9793) -Fix (r9701): Action D 'TTDPatch variable' 0x0B should be the starting year, not the current year. 2007-05-06 09:12:58 +00:00
maedhros b81a390d47 (svn r9792) -Fix (r9734): Pause on newgame should only apply to games, not the scenario editor. 2007-05-06 08:50:03 +00:00
glx 41bbc5c990 (svn r9791) -Fix (r9779, FS#766): add TownLayoutByte to correctly save town layout value 2007-05-05 23:21:49 +00:00
peter1138 74bf87dd82 (svn r9790) -Codechange: [NewGRF] Skip action 1 sprites in all stages except activation. This also cleans up some special-case handling of the sprites. Actions 1 and 2 are now not considered unsafe, as an Action 3 (which is unsafe) is required for them. 2007-05-05 10:47:35 +00:00
rubidium 438d55d576 (svn r9789) -Fix (r9770): vehicles didn't get unloaded when 'full load' was specified and the vehicle was already full when it entered. 2007-05-05 09:51:26 +00:00
glx 79637ef7b8 (svn r9785) -Fix (r942, FS#765): only non dedicated servers can't have 0 players 2007-05-04 22:45:37 +00:00
rubidium b76cc8c96b (svn r9784) -Codechange: remove unused variable. 2007-05-04 22:38:36 +00:00
peter1138 e81906c62d (svn r9780) -Codechange: [NewGRF] Add support for variable vehicle weight for trains (callback 36, property 16) 2007-05-04 19:24:01 +00:00
belugas aff49954bf (svn r9779) -Feature: Add the possiblity to choose different road patterns for towns to use.
Possible patterns are : 
No Road (not available in scenario editor)
Original (for the nostalgics)
Better Roads (same as original, but based on distance of 2 tiles instead of one)
2x2 grids
3x3 grids
Patch by skiddl13
2007-05-04 16:27:13 +00:00
peter1138 449e76c05a (svn r9775) -Fix: Remove arbitrary limit on length of NewGRF strings. 2007-05-04 07:08:35 +00:00
miham 574013a920 (svn r9774) -Update: WebTranslator2 update to 2007-05-03 22:30:56
brazilian_portuguese - 1 fixed by tucalipe (1)
bulgarian  - 2 fixed by thetitan (2)
catalan    - 2 fixed by arnaullv (2)
czech      - 2 fixed by Hadez (2)
dutch      - 2 fixed by habell (2)
estonian   - 1 fixed, 1 changed by kristjans (2)
french     - 2 fixed by belugas (2)
german     - 3 fixed by Neonox (3)
hungarian  - 2 fixed by miham (2)
italian    - 2 fixed by lorenzodv (2)
korean     - 2 fixed by leejaeuk5 (1), darkttd (1)
norwegian_nynorsk - 19 fixed, 3 changed by pollux (22)
russian    - 1 fixed, 33 changed by HMage (34)
slovak     - 1 fixed, 15 changed by lengyel (16)
slovenian  - 1 fixed by Necrolyte (1)
2007-05-03 20:31:25 +00:00
glx a7c39f7325 (svn r9773) -Fix r9772: MSVC warning 2007-05-03 17:07:51 +00:00
rubidium 9194d5ab9e (svn r9772) -Fix [r9770,FS#761]: under some circumstances loading/unloading didn't work (correctly). 2007-05-03 11:02:37 +00:00
peter1138 c584b7a401 (svn r9771) -Feature: (-tte) Add password protected status to 'players' (network server) console command. (mostly dihedral) 2007-05-02 19:00:59 +00:00
rubidium 981bf52bdd (svn r9770) -Codechange: perform the payment of cargo when loading/unloading, but when arriving at the station. 2007-05-02 18:29:11 +00:00
belugas e4dc1f460b (svn r9769) [newGRF] -Feature: Add translation support for Esperanto, Bulgarian, Japanese and Korean 2007-05-02 15:20:48 +00:00
rubidium 951c74806f (svn r9765) -Codechange: constify some class functions. 2007-05-02 09:39:11 +00:00
rubidium dce7dcb664 (svn r9764) -Codechange: replace some lookup tables by functions. 2007-05-02 09:29:41 +00:00
rubidium 1bea3b55a6 (svn r9763) -Codechange/Fix (r9760): don't read the variables that are calculated automatically either. 2007-05-01 18:17:52 +00:00
belugas 9b7a615887 (svn r9762) -Feature: Two new difficulty settings : Very low number of towns and very low number of industries
Based on FS#289, by pitt2
2007-05-01 17:16:51 +00:00
rubidium f25a168c98 (svn r9761) -Codechange: refactor cargo payment out of LoadUnloadVehicle. 2007-05-01 16:45:03 +00:00