Commit Graph

2419 Commits

Author SHA1 Message Date
rubidium 3d38b2c8ba (svn r11581) -Codechange: add some missing cargo classes and some documentation. 2007-12-06 20:36:46 +00:00
skidd13 2c3c6593d4 (svn r11580) -Feature: Memorise the resizing of the build bridge selection window during runtime 2007-12-06 18:29:31 +00:00
belugas 6c70cf2d82 (svn r11579) -Revert(r11578): some cases of key propagation are not handled correctly.
A better solution will be deviced, but not now.  Let's not cause a ton of bug reports
2007-12-06 15:58:39 +00:00
belugas 7edf28529d (svn r11578) -Codechange: Introduce the window default flag WDF_TEXTENTRY which specifies that the window holding it is actually one that enables an edit box.
Use this flag when dispatching a key event instead of using some hard coded window IDs.
This should ease a little bit the creation of new edit aware windows.
2007-12-06 02:31:47 +00:00
smatz 49d632c31b (svn r11577) -Fix: invalidate 'list trains/roadvehs/ships/planes' widgets when station part is added/removed 2007-12-05 19:13:42 +00:00
smatz eda5921284 (svn r11576) -Codechange: enumerize and comment station GUI 2007-12-05 17:08:10 +00:00
smatz 079482f0a2 (svn r11575) -Fix [FS#1502]: widget numbers of StationViewWindow were incorrect at some places 2007-12-05 16:55:33 +00:00
smatz c65c14f06b (svn r11574) -Fix: flood train stations when there are no trains on border tiles too (when non-uniform stations are OFF) 2007-12-05 00:16:20 +00:00
rubidium 8c5c0e9367 (svn r11573) -Codechange: pause games that miss GRFs by default and throw some warnings and disclaimers when you want to unpause it. 2007-12-04 22:50:07 +00:00
glx 46441ac31c (svn r11572) -Fix [FS#1494]: reinitialise windows system before loading a savegame 2007-12-04 22:22:50 +00:00
rubidium 02c46026b3 (svn r11571) -Fix [FS#1493]: road vehicle getting to the wrong side of a station when trying to overtake in there. 2007-12-04 21:53:09 +00:00
smatz ddc8f2d16f (svn r11570) -Fix: do not flood rail station tiles when there is a vehicle on it (when non-uniform stations are ON) 2007-12-04 21:39:03 +00:00
rubidium 5f576e12aa (svn r11569) -Fix [FS#1480]: full paths sometimes did not work correctly. 2007-12-04 18:42:08 +00:00
belugas 5847abc9f8 (svn r11568) -Codechange: Use bit shifts instead of values for flags. It helps readability a little bit. 2007-12-04 17:51:50 +00:00
glx 0f43982c72 (svn r11567) -Fix [FS#1512] (r11011): break the chain before moving a vehicle after another in the same chain 2007-12-04 15:32:54 +00:00
smatz 05fca79cf0 (svn r11565) -Revert: part of r11564 2007-12-03 22:40:18 +00:00
skidd13 82913a2134 (svn r11564) -Codechange: Increase the usage of the for_each_bit macro and rename it fitting to the naming style 2007-12-03 09:19:19 +00:00
skidd13 1a43c6a6f6 (svn r11563) -Codechange: Align the preprocessor code in stdafx.h with tabs 2007-12-02 21:43:16 +00:00
rubidium fe76841255 (svn r11562) -Fix [FS#1503] (r11546): aircraft sometimes stopped mid-air when the airport got destroyed. 2007-12-02 21:35:44 +00:00
glx 164d0a4710 (svn r11561) -Fix [FS#1504] (r11463): group list was not updated when removing the last group 2007-12-02 20:13:12 +00:00
rubidium b7d8681129 (svn r11560) -Codechange: replace 'custom' version of FindLastBit with the generic. 2007-12-02 19:23:46 +00:00
rubidium faf096f506 (svn r11559) -Fix [FS#1505]: overflow when drawing graphics with high company values. 2007-12-02 19:21:56 +00:00
rubidium b5a902703e (svn r11557) -Codechange: send and store the passwords a little more secure to/in the servers.
Each server and game yield a (usually) different 'salt'. This salt is used by the clients to hash their passwords. This way the passwords are not sent in clear text and it is not trivial to use those hashes on other servers.
NOTE: It is still NOT safe to use your trusted passwords and it will not stop people from being able to 'hijack' your password, it only makes it harder to do and certainly much less trivial than just dumping passwords from the memory.
2007-12-02 15:12:19 +00:00
rubidium d9081ad3f5 (svn r11556) -Feature: allow setting a default password for new companies in network games. 2007-12-02 14:48:26 +00:00
rubidium 527b72749d (svn r11555) -Codechange: use the new members introduced in r11551. 2007-12-02 14:29:48 +00:00
rubidium 50fced3c66 (svn r11554) -Codechange: be more consistent with the naming of the widget functions. 2007-12-02 13:32:41 +00:00
rubidium b20b2f4ec8 (svn r11553) -Fix: make a few widget 'accessor' function const when they should be const. 2007-12-02 12:10:48 +00:00
miham 4e574cab45 (svn r11552) -Update: WebTranslator2 update to 2007-12-02 12:31:46
czech      - 1 fixed by Hadez (1)
french     - 15 fixed by glx (15)
galician   - 2 fixed by Condex (2)
italian    - 15 fixed by lorenzodv (15)
norwegian_bokmal - 6 fixed by jhsoby (6)
russian    - 7 fixed by Smoky555 (7)
slovenian  - 1 fixed by Necrolyte (1)
spanish    - 1 fixed by eusebio (1)
2007-12-02 11:32:24 +00:00
belugas e2b4afaa4b (svn r11551) -Codechange: Introduction of widget control members on struct Window. These "new" members have the exact same functionalities as their pure functions "genitors"
Ex: "Window::SetWidgetLoweredState(byte widget_index, bool lowered_stat)"  is the member corresponding to "SetWindowWidgetLoweredState(Window *w, byte widget_index, bool lowered_stat)"
2007-12-02 00:59:48 +00:00
skidd13 7be55559b8 (svn r11550) -Fix (r11547): Updated the data files regarding to r11549 2007-12-02 00:53:01 +00:00
rubidium 08ab4e1850 (svn r11547) -Add: signal selection GUI for the ones that really like to use that over CTRL. Patch by BigBB. 2007-12-01 21:40:18 +00:00
belugas 0feaee4124 (svn r11546) -Fix[FS#1496]: If ever the air/heli port is suddenly not available while the "chopper" is descending, just go back into flying.
The code should have been better written, but in respect of newgrf_port branch, i prefer minimalist intervention
2007-12-01 14:04:16 +00:00
belugas 4f030bbfff (svn r11545) -Revert(r11543): The result is not what was expected. Looks like more work might be needed 2007-12-01 02:59:22 +00:00
glx da9f06252b (svn r11544) -Fix [FS#1501]: revert r11453 as it translated cargo when it should not 2007-12-01 02:47:10 +00:00
belugas aa0d37854d (svn r11543) -Codechange: Give a more adequate message when trying to place an industry required to be built over a house on any other type of tiles.
In reference to FS#1492, and other "bugs" like that one
2007-12-01 01:31:05 +00:00
bjarni 6b68c6557b (svn r11542) -Fix r11540: [OSX] presumed 10.3 style strings when using GetCurrentLocale nomatter what OSX the target was 2007-11-30 14:49:13 +00:00
bjarni 7162b8ddb3 (svn r11541) -Fix: [OSX] detect statvfs at runtime (based on OSX version) instead of compile time
This should prevent a crash on OSX 10.3 with the precompiled binaries (in the load/save windows)
2007-11-30 14:42:16 +00:00
bjarni 5fcbb8f59b (svn r11540) -Fix: [OSX] Don't try to compile the quartz video driver on OSX 10.3. It will fail 2007-11-30 13:26:24 +00:00
skidd13 4704d4619b (svn r11539) -Feature: Make the bridge selection window resizable 2007-11-29 18:27:39 +00:00
skidd13 6e511188ae (svn r11538) -Codechange: Rewrite GetNthSetBit in a more uncontroversial way and add its documentation 2007-11-28 21:59:06 +00:00
rubidium 981865dbcc (svn r11537) -Codechange: make it much harder to 'accidentally' add savegame conversion code after the window and cache initializations. 2007-11-28 15:42:52 +00:00
belugas 440608a6f0 (svn r11536) -Codechange: Align some elements of the _tree_layout_sprite table a little better looking for the eye 2007-11-28 00:41:20 +00:00
miham 34edc93f2a (svn r11535) -Update: WebTranslator2 update to 2007-11-27 20:21:42
ukrainian  - 1 fixed by mad (1)
2007-11-27 19:22:08 +00:00
belugas b10eea628d (svn r11534) -Feature(newgrf): Implement property 23h for Industries.
This will add a cost to the removal of an industry using the cheat magic bulldozer.
Note that the removal of regular or newgrf industries without specified removal cost will have no cost applied to.
This is a difference from original spec, where a default base cost is added.
2007-11-27 17:13:49 +00:00
belugas 1682d5d679 (svn r11533) -Codechange: Rename some unclear clear_x prices member names.
While at it, remove one unused entry on the clear_price_table array.
It is based on ground type, and the unused one was referencing a non existing one.
2007-11-27 16:02:13 +00:00
belugas 9402d4054a (svn r11532) -Feature[newgrf]: Add decrement(0x0D) / increment(0x0E) production operations from result of production callback cb29/35.
Only var 0x93 will be affected by these operations
2007-11-27 04:16:08 +00:00
smatz 6f7d37d3d3 (svn r11530) -Codechange: do not update Tpool->first_free_index for PoolItems allocated on stack 2007-11-26 22:56:30 +00:00
miham a7d4334664 (svn r11529) -Update: WebTranslator2 update to 2007-11-26 21:13:37
brazilian_portuguese - 1 fixed by fukumori (1)
catalan    - 1 fixed, 2 changed by arnaullv (3)
dutch      - 1 fixed by habell (1)
french     - 1 fixed, 1 changed by glx (2)
italian    - 1 fixed by lorenzodv (1)
lithuanian - 4 fixed by Domas (4)
slovak     - 1 fixed, 1 changed by lengyel (2)
ukrainian  - 5 fixed by mad (5)
2007-11-26 20:14:20 +00:00
maedhros 8e273e0f88 (svn r11528) -Fix (r11500): With smooth economy enabled, industries that should only decrease production would always increase it when more than 60% was transported. 2007-11-26 19:23:53 +00:00
skidd13 71c10f7df7 (svn r11527) -Codechange: Split the bitmath functions of to their own files 2007-11-26 17:50:22 +00:00
skidd13 734b22e070 (svn r11526) -Codechange: Rename the function delta fitting to the naming style 2007-11-26 16:01:29 +00:00
rubidium d736a04b59 (svn r11525) -Fix: do not do all kinds of 'updates' for town, waypoint, station and other signs when you haven't converted the map to the 'current' format as that means you are going to read data in the 'old' format when you assume that it is in the 'current' format. 2007-11-25 20:20:16 +00:00
rubidium 77b6a2674e (svn r11524) -Fix [FS#1485]: assertion when tram reversed at a station. 2007-11-25 19:45:09 +00:00
skidd13 bdc7fd2d76 (svn r11523) -Codechange: Move the CHANCE macros to core/random_func.cpp cause they depend on Random()
-Codechange: Convert the CHANCE macros to functions and rename them fitting to the naming style
2007-11-25 15:35:25 +00:00
skidd13 2bf2be987d (svn r11522) -Fix: The scrollbar of the network gui could run out of bounds 2007-11-25 15:17:16 +00:00
egladil 1d5010edf9 (svn r11521) -Codechange: [OSX] Check what the running os version is in a cleaner way. 2007-11-25 14:43:16 +00:00
egladil 9aaa455e5d (svn r11520) -Fix: [OSX] The cocoa video driver let the mouse cursor escape the window when using rmb scrolling. Thanks ln- for pointing this out and providing a fix. 2007-11-25 12:58:32 +00:00
smatz d061d985d6 (svn r11519) -Codechange: enumerization and cleanup of NetworkLobbyWindow in network_gui.cpp 2007-11-25 11:36:45 +00:00
smatz 2cd25ed2ca (svn r11518) -Codechange: enforce (by assert) unused parameters of widgets to be zero. Better readability of DrawWindowWidgets(), too 2007-11-25 00:41:31 +00:00
smatz 72eb6ae278 (svn r11517) -Codechange: better cleanup of NetworkStartServerWindow in network_gui.cpp 2007-11-24 21:49:49 +00:00
smatz a62e07b08e (svn r11516) -Codechange: cleanup of NetworkGameWindow in network_gui.cpp 2007-11-24 21:41:59 +00:00
smatz 5dfead8b5c (svn r11515) -Codechange: cleanup of NetworkStartServerWindow in network_gui.cpp 2007-11-24 18:09:02 +00:00
rubidium bd8bf99139 (svn r11514) -Change: implement the automatic multiplier handler for NewGRF industries. 2007-11-24 14:03:47 +00:00
smatz cbd1c05218 (svn r11513) -Codechange: enumerize some depot GUI actions 2007-11-24 13:50:29 +00:00
rubidium 6cf5e4cf05 (svn r11512) -Change: make the subsidy window able to resize to something smaller than 640x127 (especially the 640 part) when the screen is really too small. 2007-11-24 13:00:32 +00:00
rubidium f27acfdf78 (svn r11511) -Revert parts of r11505: forgot that CTRL might be used for other features, like adjacent stations or signals. 2007-11-24 12:36:52 +00:00
skidd13 bf959f926f (svn r11510) -Codechange: merge the IS_*INSIDE* functions and rename them fitting to the naming style 2007-11-24 10:38:43 +00:00
rubidium 64246a2775 (svn r11509) -Fix: off-by-one error in some sprite numbers; increase sprite number counter before loading the next sprite instead of after doing so. 2007-11-24 10:19:56 +00:00
egladil fcbfba1e17 (svn r11508) -Cleanup: Removed unused headers from the cocoa video driver. 2007-11-24 09:55:17 +00:00
rubidium 221e9271c5 (svn r11507) -Fix [FS#1463]: signs totally illegible when transparant signs is turned on and zoomed out more than one level. 2007-11-24 09:27:20 +00:00
rubidium 9a70ec1cb2 (svn r11506) -Fix [FS#1471]: selling vehicles could cause the window of others to scroll to that location. 2007-11-24 09:14:58 +00:00
rubidium 81c7ba42af (svn r11505) -Fix/Feature: make CTRL work on all road/rail construction options that 'work' with the 'Bulldozer' button instead of only a few. 2007-11-24 08:56:29 +00:00
rubidium ea072322fa (svn r11504) -Fix [FS#1467]: removing docks/ship depots could result in non-canal water where canals should have been build. 2007-11-24 08:45:04 +00:00
glx c8add52504 (svn r11502) -Fix (r11144): don't do standard production change if callbacks 29/35 failed
-Fix (r11144): disable smooth economy for industries using callbacks 29/35
2007-11-23 16:50:54 +00:00
egladil 2e0dd78ccf (svn r11501) -Fix: [OSX] This remedies a problem with right click scrolling that was introduced in r11492. 2007-11-23 13:45:59 +00:00
belugas 536be43411 (svn r11500) -Codechange: Smooth economy fine-tuning, making industries more responsive. Patch by Sirkoz. 2007-11-23 12:12:07 +00:00
glx ee81e00082 (svn r11499) -Fix (r11144): mul/div factor were wrong (off by two) 2007-11-23 04:17:41 +00:00
egladil 2ebf50e421 (svn r11498) -Add [FS#1411]: [OSX] Added support for using Quartz instead of Quickdraw in windowed mode on OS X 10.4 and higher. Based on a patch by blackis. 2007-11-23 02:44:05 +00:00
rubidium 9d3cc5b271 (svn r11495) -Fix (r11493): some compilers fail to show warnings when they should. 2007-11-22 22:54:49 +00:00
glx b979995795 (svn r11494) -Fix [FS#1461] (r11450): cargo translation table was now loaded too late ;) 2007-11-22 22:37:06 +00:00
rubidium 64a4ac3444 (svn r11493) -Fix [FS#1472]: game crashing on savegame load because it tried to render some part of the window before the savegame conversion was done. 2007-11-22 22:34:30 +00:00
egladil 3ad488e98f (svn r11492) -Codechange: [OSX] Split the cocoa video driver into several files. The reason for this is that the fullscreen and windowed mode api are separate from each other in OS X and thus the driver actual is two drivers in one. This split is to make the code more readable and to prepare for replacing the Quickdraw windowed mode code which uses apis deprecated as of OS X 10.5 (and maybe earlier). 2007-11-22 21:48:17 +00:00
miham 2653d94bcb (svn r11491) -Update: WebTranslator2 update to 2007-11-22 20:55:02
brazilian_portuguese - 5 fixed by tucalipe (5)
catalan    - 5 fixed by arnaullv (5)
czech      - 5 fixed by Hadez (5)
danish     - 6 fixed, 3 changed by MiR (9)
dutch      - 5 fixed by habell (5)
french     - 5 fixed by glx (5)
italian    - 2 fixed by lorenzodv (2)
japanese   - 5 fixed by ickoonite (5)
korean     - 58 fixed by leejaeuk5 (58)
slovak     - 5 fixed, 86 changed by lengyel (91)
slovenian  - 5 fixed by Necrolyte (5)
spanish    - 5 fixed by eusebio (5)
swedish    - 5 fixed by daishan (5)
turkish    - 5 fixed by jnmbk (5)
2007-11-22 19:55:54 +00:00
skidd13 737aec4db6 (svn r11490) -Codechange: Split the math functions to their own header
-Codechange: Replace the rest of the math macros with functions
2007-11-22 18:01:51 +00:00
skidd13 1d56af1d33 (svn r11489) -Fix r11488: Somehow the code was added multiple times 2007-11-21 19:18:34 +00:00
skidd13 83601671c7 (svn r11488) -Codechange: Spilt the random functions out to seperate file
-Codechange: Make the mersenne twister more readable
-Codechange: Unify the seeding process of random
2007-11-21 19:13:38 +00:00
smatz d53bfd8f2f (svn r11487) -Fix (r11435): move the list of vehicles a bit higher in the player GUI 2007-11-21 13:50:36 +00:00
glx b168ae34be (svn r11486) -Fix [FS#1457]: industry count was wrong in smallmap 2007-11-21 13:46:29 +00:00
skidd13 a91c2a4c39 (svn r11485) -Codechange: Remove the doubled function ToggleBitT and rename the remaining to fit with the naming style 2007-11-20 14:11:19 +00:00
skidd13 eeaa348f8b (svn r11484) -Codechange: Remove the doubled function SetBitT and rename the remaining to fit with the naming style 2007-11-20 13:35:54 +00:00
skidd13 b8885630aa (svn r11483) -Codechange: Replace codeparts with functions that do the same to increase readability 2007-11-20 12:57:24 +00:00
skidd13 5c31a973a1 (svn r11482) -Codechange: Remove the doubled function ClrBitT and rename the remaining to fit with the naming style 2007-11-19 21:32:20 +00:00
skidd13 71c4325c50 (svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style 2007-11-19 21:02:30 +00:00
skidd13 58bb5c7525 (svn r11480) -Codechange: Rename the function ALIGN fitting to the naming style
This fixes also FS#1450
2007-11-19 20:40:14 +00:00
skidd13 d076ea8697 (svn r11479) -Codechange: Move the BIGMUL functions to the file of their usage
-Codechange: Rename the BIGMUL functions to the fitting naming style
2007-11-19 20:18:27 +00:00
rubidium e815dae3c6 (svn r11478) -Fix: two small layout issues with the vehicle grouping GUI. 2007-11-19 19:54:23 +00:00
rubidium a4df4728fc (svn r11477) -Fix [FS#1451]: a road vehicle must not show that it is driving max speed when it is standing still waiting for the vehicle in from of it. 2007-11-19 18:58:32 +00:00
skidd13 50bfe1a19d (svn r11476) -Codechange: rename the function myabs to abs to get rid of an unneeded define 2007-11-19 18:58:04 +00:00
skidd13 8be526e499 (svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit with the coding style 2007-11-19 18:38:10 +00:00
belugas 006acff183 (svn r11474) -Feature: Allow to resize on creation the smallmap gui in order to show all the types industry available.
-Feature: Allow to enable/disable individually or all at once, the industries shown on small map.
This will permit to easily find those that are of some interest for the player.
Heavily based on gule's patch
2007-11-19 04:34:40 +00:00