Commit Graph

2870 Commits

Author SHA1 Message Date
peter1138 c313676c66 (svn r11901) -Add: add two widgets for dropdowns, one raised and one inset, to eventually replace use of two widgets for each dropdown control. 2008-01-17 18:09:15 +00:00
smatz c74cf439fa (svn r11900) -Fix: set correctly crossing state after train reversal, train leaving crossing, train crash
Fixes several ways to leave crossing red forever or to leave it unbarred when there is a train on crossing
2008-01-17 17:57:39 +00:00
frosch 35f3421842 (svn r11899) -Cleanup: Remove ShowReplaceVehicleWindow() as it is basically a duplicate of ShowReplaceGroupVehicleWindow(). 2008-01-17 17:35:59 +00:00
frosch c579bffed2 (svn r11898) -Fix: Update neighboured canals + signals when flooding non-flat tiles, too. 2008-01-17 17:13:47 +00:00
frosch 978a7ca56a (svn r11897) -Fix: Replace an uint with TileIndex and a small coding style fix. 2008-01-17 16:55:13 +00:00
glx 4f31704e2e (svn r11896) -Fix (r11886): a missing const broke compilation with MSVC 2008-01-17 16:46:41 +00:00
glx f37174f0e2 (svn r11895) -Fix (r11875): for once MSVC warns for a good reason 2008-01-17 16:41:02 +00:00
peter1138 a9c71ce375 (svn r11894) -Cleanup: Remove strings removed from english.txt in r11893 2008-01-17 14:06:49 +00:00
peter1138 68fc3b35da (svn r11893) -Codechange: build map size drop downs dynamically and remove unneeded strings 2008-01-17 14:00:17 +00:00
peter1138 f788298209 (svn r11892) -Fix (r11879): View switched from ungrouped to all vehicles as ungrouped is not technically a valid group, and ensure dropdown is removed
on any click in the window.
2008-01-17 13:37:28 +00:00
rubidium 08c01e64b8 (svn r11889) -Change: small inconsistency between documentation and code. Patch by Yexo. 2008-01-17 02:10:55 +00:00
glx 3d61a1adc5 (svn r11888) -Codechange: simplify sorting of the strings in town names dropdown 2008-01-17 02:10:26 +00:00
rubidium f658b79e15 (svn r11887) -Fix [FS#1658]: segmentation faults/wrong frees due uninitialized memory in the AI. 2008-01-17 02:09:34 +00:00
glx 69c18efdca (svn r11886) -Add: sort the strings in languages dropdown 2008-01-17 00:21:43 +00:00
peter1138 4d9a9bf6ff (svn r11885) -Cleanup: Remove gotos from widget drawing code. A side affect is that it is now possible for any widget type to be shown disabled. 2008-01-17 00:06:36 +00:00
peter1138 bc438a3033 (svn r11884) -Cleanup: leftover use of widget numbers instead of enum 2008-01-16 23:46:46 +00:00
smatz c8178d43c1 (svn r11883) -Fix (r11864): assert when trying to remove rail from a house or industry tile 2008-01-16 22:26:45 +00:00
smatz ac7bc24b0e (svn r11882) -Codechange: introduce MarkSingleVehicleDirty() and simplify the code at some places 2008-01-16 21:17:31 +00:00
peter1138 69cb009075 (svn r11881) -Cleanup: Code style for global variables. 2008-01-16 18:34:53 +00:00
peter1138 330ec8bdd6 (svn r11880) -Codechange: Generate vehicle group action dropdown dynamically, and assign an enum for the function return codes. 2008-01-16 18:25:23 +00:00
peter1138 abac83795d (svn r11879) -Fix: Only update group action drop down list when clicking on the dropdown text/button. Other times is not needed and caused a double free. 2008-01-16 17:43:46 +00:00
peter1138 019ffe29b8 (svn r11878) -Fix: Crash in MP in vehicle group window if the currently selected group is deleted by another player. 2008-01-16 16:52:50 +00:00
smatz 692fbb3c05 (svn r11877) -Fix: another way to crash competitors' train in a station
-Codechange: increase the speed train is approaching line end/semaphore in non-diagonal direction a bit
2008-01-16 15:48:36 +00:00
frosch 5659cbe6fe (svn r11876) -Fix: Start industry tile animation also for overridden industry tiles. (Will only apply to new games or newly build industries.) 2008-01-16 15:06:48 +00:00
bjarni beb1b07f5f (svn r11875) -Fix: automatically sending aircraft to depot for autoreplace/renew is now triggered by the correct conditions
Now it triggers by the following conditions:
  - aircraft is old enough for renew or needs to be autoreplaced
  - player has 2*cost of new aircraft+autorenew money (we don't want to send many aircraft to hangars when there is only money for replacing one)
  - aircraft has no hangars in it's order list
  - new aircraft is buildable (imagine autorenewing a retired design)
  This triggers right after a helicopter takes off or when a plane touches the ground while landing

  Another effect of this change is that this functionality no longer generates network traffic
2008-01-16 13:59:08 +00:00
rubidium 2817e5425b (svn r11874) -Fix [FS#1655]: all wagons of maglev/monorail trains would get the livery colour of the engine instead of their wagon type. 2008-01-16 11:25:15 +00:00
belugas 7a66d5e21d (svn r11873) -Codechange: less a few magical numbers and a tiny bit more comments on town zones 2008-01-16 02:53:55 +00:00
bjarni 77a20eae43 (svn r11872) -Fix (r9874): EngineHasReplacementForPlayer() didn't look in ALL_GROUP 2008-01-16 01:27:24 +00:00
smatz 9556623281 (svn r11871) -Fix [FS#1074]: do not update signals after each tile when building/removing a large block of track/signals/station 2008-01-16 01:18:15 +00:00
smatz 40a7ace4fa (svn r11870) -Fix: slow down train when approaching tile we can't enter in more cases
(tunnel/bridge/depot from wrong direction, competitor's track, wrong railtype)
-Fix: do not make crossing red when we can't enter it in any case
2008-01-16 00:33:28 +00:00
rubidium 6891bc2011 (svn r11867) -Fix: do not reset changes to persistent storages during world generation.
-Fix: store changes to persistent storages after performing all the game logic instead of resetting them.
2008-01-15 18:51:46 +00:00
rubidium 576f8ad93e (svn r11866) -Codechange: swap OFB_* and OF_* so it conceptually in sync with other cases of *B_* vs *_* like VETSB_* and VETS_*. 2008-01-15 18:44:22 +00:00
peter1138 ab7cb0804d (svn r11865) -Feature(tte): Support scrolling of drop down lists when in drag mode by moving the pointer above or below the list. 2008-01-15 16:30:08 +00:00
smatz 245f05a7cc (svn r11864) -Codechange: pass owner whose signals we will update instead of complex detection later 2008-01-15 15:00:01 +00:00
peter1138 932c586dfe (svn r11863) -Fix (r11848): One day I'll learn C++... Delete all items in a drop down list before deleting the list. 2008-01-15 13:20:58 +00:00
rubidium 26c621945d (svn r11862) -Fix [FS#1559]: when two NewGRFs 'fight' to define the same cargo it could happen that the strings are defined by one cargo and the 'action2' by another and when one assumes that both come from the same NewGRF... So store the GRF ID with the strings. To be extra sure add the same protection mechanism to industries and towns too. 2008-01-15 13:19:49 +00:00
smatz 0078fd1699 (svn r11861) -Fix: do not call rail specific functions when removing road tunnel/bridge 2008-01-15 11:45:29 +00:00
peter1138 ea6535c864 (svn r11860) -Fix: Test station class validity against number of classes, not abosolute limit. 2008-01-15 11:43:06 +00:00
peter1138 68a3df82b9 (svn r11859) -Codechange: Update newgrf station class dropdown to use new method of generating list. 2008-01-15 10:36:51 +00:00
peter1138 2723128ba9 (svn r11858) -Fix (r1679): Mask and rule colour in drop down lists using wrong source value. (r1679 partially reverted r1368) 2008-01-15 08:14:22 +00:00
rubidium c1108bd293 (svn r11857) -Fix: some compile time warnings. 2008-01-15 00:48:14 +00:00
glx af59eb2543 (svn r11856) -Revert (r11772): since FS#1335 is solved, we do not need the extra checking and such anymore. 2008-01-15 00:11:28 +00:00
glx 8c13852373 (svn r11855) -Fix [FS#1335]: recompute town population when removing a 'newhouses' grf, or when loading a game with missing 'newhouses' grfs 2008-01-15 00:03:48 +00:00
peter1138 1bcca5aae2 (svn r11854) -Fix (r11848): Nightly build farm showed up more compiler warnings... c++ is fun 2008-01-14 20:52:43 +00:00
miham 277ec663cb (svn r11852) -Update: WebTranslator2 update to 2008-01-14 21:05:38
brazilian_portuguese - 36 changed by fukumori (36)
korean     - 1 fixed by leejaeuk5 (1)
piglatin   - 20 fixed by adammw (20)
portuguese - 1 fixed by nars (1)
2008-01-14 20:06:18 +00:00
belugas e789ee83ab (svn r11851) -Codechange: A few magic numbers removal, plus a little code style 2008-01-14 18:19:29 +00:00
peter1138 bf0a7ae4fb (svn r11849) -Fix (r11848): Incomplete(?) class broke MSVC/mingw compilation 2008-01-14 16:35:49 +00:00
peter1138 e4c05f8d78 (svn r11848) -Codechange: New class-based drop down list functionality. Lists are now dynamically generated, and can include parameters, or be extended however needed. 2008-01-14 16:10:58 +00:00
smatz 7beb63a93b (svn r11847) -Fix: do not affect the speed a train is entering a depot by trackbits behind it 2008-01-14 14:46:09 +00:00
peter1138 027112e1fe (svn r11846) -Fix [FS#1651]: implicit conversion from unsigned to signed int caused compilation failure with MSVC. 2008-01-14 11:18:43 +00:00
smatz bfc4d80c8e (svn r11845) -Codechange: simplify train collision detection a bit 2008-01-13 23:53:33 +00:00
glx 7d2d4314ec (svn r11844) -Fix: road vehicle count was incorrect in network lobby window 2008-01-13 22:27:06 +00:00
smatz 311c14c9f5 (svn r11843) -Fix: mark dirty canal tile even in diagonal direction from flooded tile 2008-01-13 22:12:39 +00:00
rubidium 933aea42cb (svn r11842) -Fix: libtimidity.cpp did not compile anymore. 2008-01-13 22:10:54 +00:00
glx 48861a9fae (svn r11841) -Fix: win32 compilation 2008-01-13 22:07:33 +00:00
rubidium 392d59f6a9 (svn r11840) -Codechange: split network.h so not everything in there needs to be included when wanting to know whether we are a server. 2008-01-13 21:51:53 +00:00
rubidium 3ca95f2a85 (svn r11839) -Codechange: move some variables from variables.h to a more logical location. 2008-01-13 21:41:24 +00:00
smatz 27e5deb719 (svn r11838) -Fix (r11320): draw correctly canal next to half flooded rail tile 2008-01-13 17:55:00 +00:00
bjarni e281180d06 (svn r11837) -Feature: [OSX] added "/Library/Application Support/OpenTTD" to the search paths (based on patch by pv2b)
It is possible to set this to something else setting shared-dir with config
  This works on other OSes as well but it's off by default (and not really tested)
2008-01-13 17:45:29 +00:00
bjarni ef219245af (svn r11836) -Fix [r11834]: [OSX] fixed compilation 2008-01-13 17:37:17 +00:00
smatz 8da51e5eb2 (svn r11835) -Fix: mark depot, viewports, vehicle lists and vehicle details dirty when a train crashes 2008-01-13 14:42:28 +00:00
rubidium dc87b05e8c (svn r11834) -Codechange: only include settings_type.h if needed. 2008-01-13 14:37:30 +00:00
rubidium 5c4150d304 (svn r11832) -Codechange: get rid of (quite) some VARDEFs. 2008-01-13 13:36:01 +00:00
smatz b0c34f4d62 (svn r11831) -Fix: call TrainConsistChanged() when removing crashed train part to be consistent with saveload process 2008-01-13 13:11:59 +00:00
rubidium cc52a56052 (svn r11830) -Fix [FS#1625]: road vehicles would not wait in line, but at a single point on bridges. Based on a patch by SmatZ. 2008-01-13 12:08:35 +00:00
rubidium 079abbd04b (svn r11829) -Feature: allow reloading openttd.cfg when starting a new game on a dedicated server. Patch by dihedral. 2008-01-13 01:39:22 +00:00
rubidium d4e6a6bf57 (svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h. 2008-01-13 01:21:35 +00:00
rubidium a78d73805f (svn r11827) -Codechange: do not include enum_type.hpp unnecessary. 2008-01-13 00:28:01 +00:00
glx aa1d429d7f (svn r11826) -Fix (r10444): at least one instance of dmusic driver is needed for it to be registered and usable 2008-01-13 00:14:29 +00:00
rubidium 853ca6386e (svn r11825) -Fix (FS#1627): an articulated road vehicle could split up when it turned around at a corner and then would enter a drive through station at the next tile. 2008-01-12 22:10:00 +00:00
peter1138 c7debf7908 (svn r11824) -Fix (r11822): Converting signs from TTD games incomplete 2008-01-12 21:25:04 +00:00
peter1138 e677814a4b (svn r11823) -Fix (r11822): Custom names from old TTD games were not updated. 2008-01-12 21:01:27 +00:00
peter1138 ab8382c0db (svn r11822) -Codechange: Replaced fixed size custom name array. Names are now attached to their object directly and there is
no limit to the amount of names.
-Fix: NewGRF engines could not be renamed.
2008-01-12 19:58:06 +00:00
smatz a222fe2e86 (svn r11821) -Fix (r11802): 'optimization assert' when removing crashed wagon in some cases 2008-01-12 19:33:25 +00:00
smatz 704a75871a (svn r11820) -Fix: invalidate depot window when removing crashed train 2008-01-12 19:24:58 +00:00
smatz 712d4b6259 (svn r11819) -Fix: do not access the Vehicle struct that has been already deleted when removing crashed train 2008-01-12 19:20:44 +00:00
rubidium ac528411df (svn r11818) -Codechange: split player.h into smaller pieces. 2008-01-12 14:10:35 +00:00
peter1138 cbbc53e8f8 (svn r11817) -Codechange: Base vehicle group validity on owner, not name. 2008-01-12 13:36:22 +00:00
rubidium ed727f9a64 (svn r11816) -Fix: forgot clearing one byte, causing the passwords to differ slightly on different platforms. 2008-01-12 08:34:16 +00:00
smatz a4c1280945 (svn r11815) -Codechange (r11802): some compilers were giving a false warning about uninitialized variable 2008-01-11 22:29:47 +00:00
orudge 79e0a48c42 (svn r11814) -Fix: Get OpenTTD compiling again on OS/2 2008-01-11 18:53:52 +00:00
frosch cbe7e5d668 (svn r11813) -Fix [FS#1602]: Switch _screen to the output buffer and disable usage of 32bpp-anim animation buffer during giant screenshots. 2008-01-11 17:12:41 +00:00
smatz 4d04077156 (svn r11812) -Codechange: introduce TrainExitDir() to simplify some functions 2008-01-11 15:10:59 +00:00
rubidium 04f936c2c6 (svn r11811) -Fix: make compilation without networking work again (and thus move the debugdumpcommand stuff out of the network 'area'). 2008-01-11 00:30:32 +00:00
smatz e5d33482b4 (svn r11810) -Fix (r11802): reset sets when leaving prematurely 2008-01-10 22:46:04 +00:00
smatz a1266da782 (svn r11809) -Fix [FS#1643]: set expenses type when selling all vehicles in depot 2008-01-10 21:54:45 +00:00
frosch 1b936179ca (svn r11807) -Codechange: Make Action5 handler more upwards- and TTDP-compatible by allowing specifiing more sprites than needed. 2008-01-10 18:02:15 +00:00
glx 3976bb987d (svn r11806) -Fix (r11793) [FS#1638]: sign inversion when updating income and expenses 2008-01-10 15:51:34 +00:00
frosch 930f875c51 (svn r11805) -Fix [FS#1620]: VEHICLE_TRIGGER_EMPTY was triggered continuously while train waiting in station. 2008-01-10 13:13:18 +00:00
belugas 0181678cde (svn r11804) -Fix(r11797,FS#1636): Industry tiles should receive the same medecine as indstries themselves regarding the resolver's object 2008-01-10 00:53:17 +00:00
peter1138 d30321d2af (svn r11803) -Fix: unlikely but possible infinite loop leading to undefined behaviour 2008-01-09 23:17:40 +00:00
smatz f44a9a5d5b (svn r11802) -Fix [FS#716]: do not crash trains when leaving depot to a very long track
-Codechange: use dedicated pathfinder for signal updating, resulting in better performance and possible future improvements
2008-01-09 23:00:59 +00:00
rubidium 6c954cad5f (svn r11801) -Codechange: remove some unneeded includes from some header files. 2008-01-09 21:27:39 +00:00
rubidium 998d7644f6 (svn r11800) -Codechange: move some functions to a more logical location + some type safety. 2008-01-09 21:05:03 +00:00
peter1138 82fe2885ab (svn r11799) -Codechange: no need to special-case helicopter rotor 'overrides' 2008-01-09 20:23:12 +00:00
belugas 6375ea065b (svn r11798) -Codechange: add comments and give a more representative function's name 2008-01-09 18:35:18 +00:00
belugas f67b5798a0 (svn r11797) -Fix: Add protection against not already created industry while doing industry callback.
Some variables used were linked to invalid industry.
2008-01-09 18:14:29 +00:00
glx 785572ea32 (svn r11795) -Fix [FS#1616]: take town rating into account when testing if a command can be executed. 2008-01-09 17:47:05 +00:00
glx d133edd026 (svn r11794) -Fix [FS#1632]: reversing a train when loading at a station with an adjacent station in the same axis crashed. 2008-01-09 17:09:53 +00:00
rubidium 46650c54b6 (svn r11793) -Codechange: pass the expense type via the CommandCost instead of a global variable. Patch by Noldo (FS#1114). 2008-01-09 16:55:48 +00:00
rubidium b4337eba83 (svn r11792) -Codechange: move some (virtually) globally included AI related structs to a place where they are only included a few times. 2008-01-09 16:40:02 +00:00
peter1138 a27a240b87 (svn r11791) -Cleanup: move railtype data into table/, like other data files. 2008-01-09 16:02:13 +00:00
rubidium ebb6259057 (svn r11790) -Update: apparantly it's 2008 already ;). Patch by Anne Stellingwerf (FS#1613). 2008-01-09 11:46:40 +00:00
peter1138 a01fc4c142 (svn r11789) -Codechange: coding style for global variable names 2008-01-09 10:15:20 +00:00
rubidium b4b3190b62 (svn r11788) -Fix (11787): makedepend doesn't mark delete files as changed... 2008-01-09 09:57:48 +00:00
rubidium 0e517fe023 (svn r11787) -Codechange: more header rewrites. This time related to viewport.h. 2008-01-09 09:45:45 +00:00
peter1138 931e6ea49d (svn r11786) -Codechange: shuffle more includes 2008-01-09 08:12:10 +00:00
rubidium cd92981e9f (svn r11785) -Codechange: remove some unneeded includes. 2008-01-09 00:59:02 +00:00
peter1138 ce2104ed47 (svn r11784) -Codechange: set up initial engine data in one place 2008-01-08 18:25:51 +00:00
peter1138 814f47a3cc (svn r11783) -Codechange: compare engine type with its type property, not by its index 2008-01-08 18:16:26 +00:00
peter1138 352f13dad1 (svn r11782) -Codechange: e->type was used before being properly initialized (it relied on previous runs) but there is no need to invalidate window data during game load as the windows in question cannot be open. 2008-01-08 16:07:32 +00:00
peter1138 4479c06e2d (svn r11781) -Codechange: variable scope and initialization 2008-01-07 22:38:30 +00:00
peter1138 77717563e1 (svn r11780) -Codechange: When compiling a dedicated server build, select the dedicated video driver by default. 2008-01-07 16:41:03 +00:00
glx 2832a6cafb (svn r11779) -Fix: win32 compile failed. Also removed a duplicate include 2008-01-07 15:35:36 +00:00
rubidium eced1fb4ae (svn r11778) -Fix: compiles with ICONV failed. 2008-01-07 15:17:23 +00:00
rubidium a3ccdcea36 (svn r11777) -Codechange: split the string header and make do not include it when it's not necessary. 2008-01-07 14:23:25 +00:00
rubidium 38115acf5a (svn r11776) -Codechange: more header splittings to reduce the dependencies. 2008-01-07 14:02:26 +00:00
rubidium a8a3a7e3f2 (svn r11775) -Codechange: move all autoreplace/autorenew functions to a single location. 2008-01-07 09:19:53 +00:00
rubidium b0ac283aec (svn r11774) -Change: do not include variables.h in a header when it is not needed. 2008-01-07 00:57:19 +00:00
rubidium 64fc2ade9e (svn r11773) -Codechange: move some non-clear-land functions from clear_cmd.cpp to a more correct location. 2008-01-07 00:45:05 +00:00
glx 119b03ea70 (svn r11772) -Change: add some extra checking in the hope to find the cause of FS#1335 2008-01-07 00:43:03 +00:00
rubidium acc7c9eb01 (svn r11771) -Codechange: split settings.h into better separated headers. 2008-01-07 00:19:09 +00:00
peter1138 7be2160cfb (svn r11770) -Codechange: An engine type's type is EngineID, not byte. 2008-01-06 20:54:55 +00:00
miham fd330ce743 (svn r11769) -Update: WebTranslator2 update to 2008-01-06 19:58:01
brazilian_portuguese - 2 fixed, 15 changed by fukumori (17)
bulgarian  - 29 fixed, 10 changed by groupsky (39)
croatian   - 13 fixed by knovak (13)
czech      - 2 fixed by Hadez (2)
dutch      - 1 fixed by habell (1)
estonian   - 1 fixed by kristjans (1)
french     - 1 fixed, 1 changed by glx (2)
galician   - 38 fixed by Condex (38)
italian    - 1 fixed by lorenzodv (1)
japanese   - 1 fixed by ickoonite (1)
norwegian_bokmal - 1 fixed by brygge_2 (1)
romanian   - 1 fixed by kneekoo (1)
slovak     - 1 fixed by lengyel (1)
swedish    - 2 fixed by daishan (2)
ukrainian  - 2 fixed by mad (2)
2008-01-06 18:58:55 +00:00
rubidium aeff6e5761 (svn r11768) -Codechange: move some terraform related gui stuff from main_gui.cpp to terraform_gui.cpp (and introduce terraform_gui.h). Based on a patch by Roujin. 2008-01-06 18:56:43 +00:00
smatz f7a293f074 (svn r11767) -Fix: do not call rail specific functions when building road bridge
-Fix: missing space in terraform_gui.cpp
2008-01-06 11:39:40 +00:00
belugas f9a592cfdd (svn r11766) -Codechange: Last fine tunings on smooth economy, by Sirkoz. 2008-01-06 01:06:12 +00:00
rubidium 279bfad275 (svn r11765) -Fix: compile warning (Roujin). 2008-01-05 22:34:04 +00:00
rubidium f8f86420f8 (svn r11764) -Change: make the 'do characters exist in the current font file(s)' more robust. 2008-01-05 22:19:27 +00:00
smatz e165aad4db (svn r11763) -Fix: update signal states after merging a company 2008-01-05 22:04:11 +00:00
glx 91be5d7531 (svn r11762) -Fix: compilation with DEBUG_DUMP_COMMANDS was broken 2008-01-05 21:42:34 +00:00
peter1138 5d837282ee (svn r11761) -Codechange: Use appropriate variable types for NewGRF engine overrides, and adjust scope while there. 2008-01-05 15:39:22 +00:00
smatz 7302d8c88b (svn r11760) -Codechange: unify the way how other end of a tunnel/bridge is determined at some places
-Fix: adding road/tram to tram/road bridge was cheaper by one tile
2008-01-04 19:45:29 +00:00
peter1138 9299f76af4 (svn r11759) -Feature: Add drag-n-drop support to the raise/lower land tools. Land is raised/lowered at the start and the rest of the area levelled to match. Patch by Roujin. 2008-01-04 18:18:46 +00:00
peter1138 6a13067931 (svn r11758) -Fix(ette): Populate 'void' cargo slots (unused slots in temperate and arctic) with default data as per pre-newcargo support. These slots are still disabled by default, but some NewGRFs (erroneously?) expect the default data. 2008-01-04 17:25:53 +00:00
belugas 6b37ab36ea (svn r11757) -Fix(r11727): Don't use a function's default parameter when the value can be (more adequately, even better) computed from another source.
Thanks peter1138.
2008-01-04 15:39:08 +00:00
peter1138 1cd2c3d517 (svn r11756) -Fix: Out of bounds access caused if a vehicle's cargo amount was higher than its capacity when resolving sprite groups. 2008-01-04 13:40:23 +00:00
peter1138 3182cbb332 (svn r11755) -Fix: Debug level string buffer was not long enough to contain all debug levels. 2008-01-04 10:09:57 +00:00
belugas 23fab42b2f (svn r11754) -Fix(r11753): One too much command separator (;). Thanks glx for spotting 2008-01-04 03:31:08 +00:00
belugas c59ea520a7 (svn r11753) -Codechange: re-indent the switch case structures, as to be more code style oriented.
Hoping it makes the whole file easier to follow/read
2008-01-04 03:11:36 +00:00
belugas b0ef12e0e9 (svn r11752) -Fix(r11745): Silence a MSVC warning (glx) 2008-01-04 03:04:19 +00:00
belugas 8f94ac8f03 (svn r11751) -Codechange: Enumify some widgets (and others) and while at it, apply some code style 2008-01-04 02:32:58 +00:00
glx 72afdb8d34 (svn r11750) -Revert (r11749): commited too much 2008-01-03 23:54:23 +00:00
glx 42bddcf723 (svn r11749) -Fix (r11352): when a bankrupted company is bought, reset vehicle color mapping so the vehicles use the new owner color 2008-01-03 23:50:58 +00:00
belugas aebcd80088 (svn r11748) -Codechange: Remove magic numbers introduced on r11746 and r11727
-Codechange: A few bad coding style inadvertendly applied too
2008-01-03 14:33:10 +00:00
belugas 7e4b7e3ad4 (svn r11747) -Change: Return of the prodigal son (or something). Little update (but highly noticed) on the OpenTTD Team 2008-01-03 14:04:08 +00:00
belugas 6ce70b17ca (svn r11746) -Fix(r11727): Make sure that action 0A does follow the same new ordering of shore sprites. It was not considered in the missing shore patch 2008-01-03 02:39:06 +00:00
skidd13 ade37de6c6 (svn r11745) -Codechange: Unify the spinner widget drawing of the difficulty settings window and make its disabled state min max aware. 2008-01-02 23:59:11 +00:00
glx 6f7f4adffc (svn r11744) -Codechange: don't redefine snprintf when using MinGW Runtime 3.14 or superior, as it now have snprintf() and vsnprintf conform to C99 2008-01-02 18:42:51 +00:00
rubidium 19f8990f64 (svn r11743) -Fix [FS#1614]: group names got not deallocated in the command test run. 2008-01-01 22:39:11 +00:00
peter1138 fa83291a76 (svn r11742) -Codechange [FS#1319]: Run window tick events when paused, so that news pop-ups and the about window still progress. For other windows the events are ignored when paused. 2008-01-01 22:34:00 +00:00
peter1138 47082fec5c (svn r11741) -Feature: Add support for NewGRF's train 'tilt' flag. Trains with tilt capability (specific details are per NewGRF set) will be given a 20% speed limit bonus on curves. 2008-01-01 22:24:18 +00:00
egladil 9a2547b5a7 (svn r11740) -Fix [FS#1610]: Modify and possibly discard key events for code points in the unicode private use area. 2008-01-01 18:55:15 +00:00
peter1138 c94a6b8c78 (svn r11739) -Fix [FS#1609]: Set the new scroll position after zooming in instead of before, as the zoom will cancel it out. 2008-01-01 18:35:31 +00:00
peter1138 47d23eb003 (svn r11738) -Codechange: Refactor realistic acceleration's curve counting to use DirDiffs instead of local tables, and remove an unnecessary loop. 2008-01-01 18:12:17 +00:00
peter1138 24784b7e0d (svn r11737) -Fix: Reinstate NewGRF-specified engine list order in autoreplace window. 2008-01-01 17:01:06 +00:00
miham f0e9c0cfc9 (svn r11736) -Update: WebTranslator2 update to 2008-01-01 17:42:54
catalan    - 1 fixed by arnaullv (1)
german     - 4 fixed by chu (4)
hungarian  - 23 fixed by miham (23)
romanian   - 17 fixed, 2 changed by kneekoo (19)
slovenian  - 1 fixed by Necrolyte (1)
2008-01-01 16:43:31 +00:00
peter1138 aab495604a (svn r11735) -Fix [FS#1574]: Don't reset loading indicator IDs when only reloading NewGRFs. 2008-01-01 15:06:37 +00:00
belugas 3dd61f423a (svn r11734) -Change: Allow ToggleFullScreen to return the result of the operation' attempt. Previously, only visual clues were available.
-Fix[FS#1519]: When you can not use this resolution at full screen, now you'll know that it failed.
As for the reason it did not work, each computer/OS has its reason.
2008-01-01 14:20:48 +00:00
peter1138 a8611311ac (svn r11733) -Fix: Max speed for entering stations overrode the max speed of curves 2008-01-01 14:15:28 +00:00
peter1138 a967a7287f (svn r11732) -Fix (r4150): elrail merge gave elrail, monorail & maglev unintended speed bonuses for curves, as the bonus was based on the railtype index. The bonus is now specified by a property of the railtype. 2008-01-01 14:00:31 +00:00
peter1138 7031358cff (svn r11731) -Fix [FS#1582]: Clear sprite override data before performing NewGRF wagon attach callback. This stopped
the callback working for autoreplace and when moving wagons from train to train in a depot.
-Fix (r11724): Don't check wagon attach callback for the chain when moving a single wagon.
2007-12-31 21:51:16 +00:00
miham d8f4a80b0a (svn r11730) -Update: WebTranslator2 update to 2007-12-31 19:55:44
catalan    - 1 fixed by arnaullv (1)
dutch      - 1 fixed by webfreakz (1)
estonian   - 1 fixed by kristjans (1)
french     - 1 fixed by glx (1)
german     - 27 fixed by moewe2 (27)
hungarian  - 21 fixed by miham (21)
italian    - 1 fixed by lorenzodv (1)
japanese   - 1 fixed by ickoonite (1)
korean     - 1 fixed by leejaeuk5 (1)
norwegian_bokmal - 23 fixed by jhsoby (23)
polish     - 2 fixed by meush (2)
portuguese - 96 fixed, 7 changed by nars (103)
slovak     - 1 fixed by lengyel (1)
spanish    - 12 fixed by eusebio (12)
swedish    - 13 fixed by ChrillDeVille (13)
turkish    - 14 fixed by jnmbk (14)
2007-12-31 18:56:39 +00:00
peter1138 75472cbc16 (svn r11729) -Codechange: Don't rely on the first railtype's sprite offset being zero when drawing road stations. 2007-12-31 11:13:51 +00:00
rubidium b1be9f0137 (svn r11728) -Fix [FS#1577]: if there are no houses that can be build in a specific year yet, force the houses with the earliest introduction year to be available. 2007-12-31 07:14:25 +00:00
belugas 8ee1faca6c (svn r11726) -Feature[newGRF]: Extend the Action 5, feature 0D usage. Patch by BigBB 2007-12-31 04:38:11 +00:00
belugas 31e2ed8b4c (svn r11725) -Codechange: less a magical number 2007-12-31 02:39:50 +00:00
rubidium 1a70eed58c (svn r11724) -Fix: make it impossible (for users) to circumvent the length checking of the NewGRF 'allow wagon attach' callback by moving several wagons at a time. 2007-12-30 21:35:48 +00:00
skidd13 566a24d6ee (svn r11723) -Feature: add initial support for Intel C Compiler on linux
-Codechange: silence a few warnings of ICC
2007-12-30 19:32:09 +00:00
glx 892e231aad (svn r11722) -Fix (r11703): invalid plural form 2007-12-30 16:34:32 +00:00
rubidium a3b19fd50c (svn r11721) -Fix: do not disable NewGRFs for 'eternity' during games. 2007-12-29 23:49:48 +00:00
peter1138 06d578d07e (svn r11720) -Codechange: [NewGRF] Add support for bit 30 of station tile layouts; forcing a sprite to always be opaque. 2007-12-29 21:06:54 +00:00
rubidium e5e75bd8f8 (svn r11719) -Codechange: split sound.h in a header with types and one with functions. 2007-12-29 09:24:26 +00:00
egladil 6ae9302708 (svn r11718) -Fix [FS#1483]: Show the fullscreen modes available to the cocoa driver in windowed mode too. 2007-12-29 05:15:13 +00:00
smatz 108ab3b910 (svn r11717) -Fix [FS#1590]: make sure invalid players have all shares owned by PLAYER_SPECTATOR 2007-12-28 18:25:30 +00:00
glx c87f20ff37 (svn r11716) -Fix [FS#1561]: don't put more than one Random() in function calls because parameter evaluation order is not guaranteed in the c++ standard (can lead to desyncs) 2007-12-28 16:21:29 +00:00
smatz 8e1f21e29b (svn r11715) -Fix: do not use GetTrackBits() for depots and waypoints while converting railtype 2007-12-28 15:27:12 +00:00
belugas e9a039b845 (svn r11714) -Fix[FS#1569]: Do not allow player inauguration date on scenarios to be bigger than current year.
This will not (yet) be true if you are loading a scenario with the "-g" command line option.
2007-12-28 04:20:56 +00:00
belugas 5087a6cdd7 (svn r11713) -Codechange: Move some declarations and definitions in a more logical disposition 2007-12-28 03:14:55 +00:00
maedhros e2efaaff87 (svn r11712) -Fix (r9315): Add more house string id ranges to MapGRFStringID so NewGRFs use the proper string ids. 2007-12-27 20:49:44 +00:00
belugas e67ed0a808 (svn r11711) -Codechange: Name the Save Load Dialog Mode enum 2007-12-27 17:29:27 +00:00
bjarni 6196fa01ab (svn r11710) -Feature: [build vehicles windows] added sorting for cost, running costs and speed to road vehicles and ships build windows 2007-12-27 15:47:08 +00:00
egladil 6e1cae5256 (svn r11708) -Fix [FS#1598]: Removed include of variables.h as it was no longer needed and caused compilation to fail. 2007-12-27 14:45:10 +00:00
smatz 38f0e422ac (svn r11707) -Fix: do not allow refitting flooded (destroyed) vehicles 2007-12-27 14:10:47 +00:00
rubidium 384503e7d3 (svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes. 2007-12-27 13:35:39 +00:00
smatz 4e66f5a04b (svn r11705) -Fix [FS#1557]: trains could have sprites with wrong direction when reversing, also was inconsistent with save/load process (possible desyncs) 2007-12-27 13:25:23 +00:00
rubidium 0b1d3e43e5 (svn r11704) -Codechange: remove another bunch of useless includes. 2007-12-26 23:04:26 +00:00
miham c124792fd2 (svn r11703) -Update: WebTranslator2 update to 2007-12-26 17:33:24
estonian   - 16 changed by kristjans (16)
polish     - 94 fixed, 6 changed by meush (100)
russian    - 22 fixed by Smoky555 (22)
spanish    - 11 fixed by eusebio (11)
traditional_chinese - 25 fixed, 4 changed by xbddc (29)
2007-12-26 16:38:34 +00:00
rubidium b9046c97fb (svn r11702) -Codechange: move all date related stuff to date*. 2007-12-26 13:50:40 +00:00
rubidium 2786d789a1 (svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h). 2007-12-26 11:45:43 +00:00
rubidium aac835171e (svn r11700) -Codechange: reduce the amount of unnecessary includes. 2007-12-25 23:42:52 +00:00
skidd13 59d6c5e157 (svn r11698) -Change: Make the abort/accept process of the difficulty window a bit less confusing
-Change: Make the highscore button in the difficulty window a bit more obvious
-Codechange: Enumify the window-widgets of the difficulty window
2007-12-25 15:56:41 +00:00
rubidium 0bd93f5c37 (svn r11697) -Fix [FS#1585]: strgen did not (always) compile properly. 2007-12-25 14:08:56 +00:00
skidd13 7963963d98 (svn r11695) -Codechange: Converted the md5 algorithm to OOP
-Codechange: Adapt the md5 algorithm to the OpenTTD source
2007-12-25 13:59:21 +00:00
rubidium b3f6c0734b (svn r11694) -Codechange: move more endianness related stuff to endian_func.hpp. 2007-12-25 13:28:09 +00:00
rubidium 429521a7d1 (svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h' 2007-12-25 11:26:07 +00:00
rubidium bf98e25e43 (svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed. 2007-12-25 09:48:53 +00:00
egladil e2f79f0eb5 (svn r11690) -Fix: Since indices into the patch array is sent over the network having conditionally compiled entries in the table can cause desyncs. Moving them to the end will hide this issue, but it should really be solved in a better way. 2007-12-25 01:29:54 +00:00
smatz 17d1b522bc (svn r11689) -Fix: compilation error and most of warnings for gcc 4.3 2007-12-23 21:02:40 +00:00
egladil 22f79df328 (svn r11688) -Fix [FS#1581]: Compilation was broken on OS X again. 2007-12-23 18:08:39 +00:00
skidd13 da5d3a7b3b (svn r11687) -Codechange: move some defines to a better place 2007-12-23 14:06:03 +00:00
glx 451abbecb1 (svn r11686) -Fix (r11684): win32 compilation was broken again :) 2007-12-23 13:31:24 +00:00
rubidium 970fd6220a (svn r11685) -Codechange: remove a few 'useless' includes. 2007-12-23 11:20:41 +00:00
rubidium a773d45885 (svn r11684) -Codechange: split gfx.h in a type and functional header. 2007-12-23 10:56:02 +00:00
belugas 82d240e300 (svn r11683) -Fix(r11682): win32.cpp still requires gfx.h inclusion, at least for now. 2007-12-23 04:31:45 +00:00
rubidium 8f0e68285b (svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type. 2007-12-22 23:30:28 +00:00
rubidium a7d54cf946 (svn r11681) -Fix (r11674): hopefully fix the compile error on big endian machines. 2007-12-22 21:01:49 +00:00
rubidium 6a9e77e079 (svn r11680) -Codechange: refactor more out of openttd.h and functions.h. 2007-12-21 22:50:51 +00:00
glx 1b53dbf9cc (svn r11679) -Add: [newgrf] support for station vars 67 and 68 2007-12-21 22:11:55 +00:00
bjarni 18e96ab49f (svn r11678) -Fix (r11674): [OSX] fixed compilation 2007-12-21 22:08:59 +00:00
rubidium 9e9cfe6e59 (svn r11677) -Codechange: move price and command related types/functions to their respective places. 2007-12-21 21:50:46 +00:00
glx 65754b8d12 (svn r11676) -Fix (r11674): some references to macros.h were left 2007-12-21 21:16:14 +00:00
rubidium 433a9f3c09 (svn r11675) -Codechange: split the string types from the string functions. 2007-12-21 19:49:27 +00:00
rubidium 01e20c9140 (svn r11674) -Codechange: refactor some functions out of macros.h into more logical locations. 2007-12-21 19:21:21 +00:00
rubidium d5c4ba8246 (svn r11673) -Codechange: move the overflow safe type to a separate file. 2007-12-21 08:34:53 +00:00
rubidium a6b1526c13 (svn r11672) -Codechange: refactor some stuff out of gui.h. 2007-12-21 07:38:36 +00:00
smatz 30c0d6da99 (svn r11671) -Fix: sometimes a vehicle was selected in the vehicle list when it was opened 2007-12-20 22:45:56 +00:00
smatz 4a80cf8482 (svn r11670) -Feature [FS#1565]: list neutral stations where the player has service in the station list too 2007-12-19 23:35:14 +00:00
rubidium 5b49e75453 (svn r11669) -Codechange: refactor tile.h -> tile_type.h and tile_map.h 2007-12-19 23:26:02 +00:00
rubidium d582aea639 (svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found. 2007-12-19 20:45:46 +00:00
rubidium 8896bea306 (svn r11667) -Codechange: split window.h into a header that defines some 'global' window related types, on that defined 'global' window functions and one that defines functions and types only used by *_gui.cpps. 2007-12-19 19:44:29 +00:00
glx a9dafdff48 (svn r11666) -Fix (r11504): when removing buoys, return to water or canal depending on their owner 2007-12-19 02:41:25 +00:00
belugas b8196d36e7 (svn r11665) -Fix: Animation informations should not be copied from original industry tile spec, while doing an action 00, industry tile, prop 08.
Fix directly inspired by Csaboka
2007-12-18 21:25:44 +00:00
rubidium 7db6c7db38 (svn r11664) -Codechange: use more specific ("rail_type.h" instead of "rail.h" that includes way more than only "rail_type.h") includes at some places. 2007-12-18 20:58:12 +00:00
rubidium e4ef359f47 (svn r11663) -Codechange: moving of the road related types and functions. 2007-12-18 20:38:16 +00:00
rubidium df0c6eb2b9 (svn r11662) -Codechange: move some rail types/related functions around. 2007-12-18 20:10:21 +00:00
rubidium f56a354d31 (svn r11661) -Codechange: some header reworks in order to try to reduce the compile time of OpenTTD by reduce the amount of circular-ish dependencies. 2007-12-18 19:52:14 +00:00
miham 5dc1fcea04 (svn r11660) -Change: english -> english (uk), english_us ->english (us) 2007-12-18 18:08:51 +00:00
smatz c26a265f21 (svn r11659) -Fix [FS#1563]: do not allow modifying non-uniform stations when non-uniform stations are disabled 2007-12-18 18:02:00 +00:00
smatz 0b08f7370d (svn r11657) -Fix: show better error message when trying to convert rail
-Codechange: merge DoConvert functions into one, make test and exec runs the same for tunnels/bridges
2007-12-17 22:29:27 +00:00
smatz bda9d4a236 (svn r11656) -Codechange: add ZOOM_LVL_BEGIN and postfix operators so ZoomLevel can be used in some iterations 2007-12-17 22:04:07 +00:00
miham 61dcdbf0e0 (svn r11655) -Update: WebTranslator2 update to 2007-12-17 20:16:03
danish     - 22 fixed by ThomasA (22)
estonian   - 18 fixed, 47 changed by kristjans (65)
italian    - 4 changed by lorenzodv (4)
norwegian_nynorsk - 20 fixed by pollux (20)
2007-12-17 19:16:53 +00:00
miham 6f526fd2e1 (svn r11654) -Change: renaming american languagefile to english_US 2007-12-17 18:49:51 +00:00
egladil 2885c66060 (svn r11653) -Feature: [OSX] Allow windowed mode subdrivers to be disabled at compile time. 2007-12-17 07:47:21 +00:00
smatz 93c3e0d6ad (svn r11652) -Codechange: add the svn $ header for several files 2007-12-17 01:35:45 +00:00
rubidium 9ecda0a97a (svn r11651) -Codechange [FS#1555]: implement GRF parameter querying for industries and fix a 'bug' as side effect. 2007-12-16 23:10:30 +00:00
rubidium 85b52f6a64 (svn r11650) -Fix: 'initialised' NewGRFs could still be deactivated in the later 'activation' pass. 2007-12-16 22:21:34 +00:00
smatz 145517fb8e (svn r11649) -Codechange: some code can be simplified thanks to changes in r11642 2007-12-16 19:30:42 +00:00
rubidium 0730b9afc1 (svn r11648) -Fix [FS#1560]: the company password was not set when one pressed the enter key. 2007-12-16 19:28:07 +00:00
rubidium 3bba097bb3 (svn r11647) -Fix (r11646): it did not compile without freetype... 2007-12-16 19:21:28 +00:00
rubidium ff7ff890f9 (svn r11646) -Codechange: check whether (some) characters are missing in the current 'font' for the 'currently' chosen language and give a warning when that does happen. 2007-12-16 18:38:19 +00:00
glx 5e062d3f15 (svn r11645) -Fix (r8128): station ground tiles may have transparency or company colour 2007-12-16 17:50:09 +00:00
smatz 3cee0abdba (svn r11644) -Codechange: merge some functions from tunnel_map.h and bridge_map.h into tunnelbridge_map.h 2007-12-16 15:38:51 +00:00
rubidium ec90ce7e98 (svn r11643) -Codechange: conform with the coding style for the WP macro uses. 2007-12-16 10:54:08 +00:00
smatz acf6e08f78 (svn r11642) -Codechange: VehicleFromPos does check for v->tile == tile, so remove useless checks 2007-12-15 23:11:18 +00:00
rubidium 214d25905a (svn r11640) -Fix: missed change of include when moving stuff to random_func.cpp 2007-12-15 22:05:02 +00:00
smatz 701e9d27fc (svn r11639) -Codechange: simplify EnsureNoVehicleOnGround 2007-12-15 20:30:43 +00:00
smatz d0ad7688f2 (svn r11638) -Codechange: use faster check in SignalVehicleCheck for tunnel/bridge 2007-12-15 19:46:34 +00:00
smatz 4b22e57b33 (svn r11637) -Fix: mark viewports dirty when removing visible vehicle chain 2007-12-15 16:11:29 +00:00
smatz 46724104fe (svn r11636) -Fix: it was possible to build/remove road/tram in tunnel/bridge when there was vehicle in it 2007-12-15 13:59:38 +00:00