Commit Graph

336 Commits (f3645d73073e262d9dba2f4d69a9848be435b7df)

Author SHA1 Message Date
Darkvater 13c7b2b337 (svn r2391) - Feature: saving games happen in a seperate thread so you no longer will have to wait such a long time (especially handy on bigger maps and multiplayer games). The mouse also changes into the 'ZZZ' state :P. The thread on windows is currently given a little-bit-less-than-normal priority so it should not interfere that much with the gameplay; it will take a bit longer though. Upon the exit of the game any pending saves are waited upon.
- Fix: fixed GetSavegameFormat() so that it takes the best compressor (highest), or a forced one added with the parameter
- Open issues: 
1. Don't attempt to load a game while saving is in progress, it will kick you back to the intro-screen with only the vast ocean to look at.
2. The server is disabled from threaded-saving, but might be enabled in the future.
3. Current implementation only allows 1 additional running thread.
4. Stupid global variables.....grrr
Big thanks for TrueLight and the amazing memorypool :D
19 years ago
miham 77ce6d50cf (svn r2376) [Translations] Updated to 2005-04-29 (28 strs / 3 langs) 19 years ago
miham 1684e0d0bf (svn r2362) [Translations] Updated to 2005-04-23 (207 strs / 6 langs) 20 years ago
miham fbc4831826 (svn r2350) [Translations] Updated to 2005-04-18 (156 strs / 3 langs) 20 years ago
miham 72f5ce0563 (svn r2341) [Translations] Updated to 2005-04-17 (74 strs / 6 langs) 20 years ago
miham 5132d16b0e (svn r2335) [Translations] Updated to 2005-05-16 (36 strs / 17 langs, removed unused strings) 20 years ago
Darkvater e4eb0c672a (svn r2307) - Fix (regression): it was not possible to change the drive-side in the intro-game.
- CodeChange: remove unused "CANT_DO_THIS" double-string.
20 years ago
Darkvater 7470322a3d (svn r2306) - CodeChange: Check the last commands; refits. This needed an extensive rewrite and global/local-cargo ID juggling and bitmasking. However with this done it looks better as well and is compatible with newgrf handling. Big thanks to HackyKid for doing most of the work. This also closes patch "[ 1199277 ] Command checks" 20 years ago
miham 5c8d40bb05 (svn r2305) [Translations] Updated to 2005-05-14 (~50 strs / 7 langs) 20 years ago
Darkvater 09a71c391a (svn r2303) - CodeChange (fix): when giving money to other players only allow transferring money that is above your loan. Eg you can't give away your loan.
- Langfix: 'goes down by' 'increases', vv for down in english.txt.
20 years ago
miham de0c601db3 (svn r2282) [Translations] Updated to 2005-05-08 (58 strs / 3 langs) 20 years ago
miham fa541b8656 (svn r2240) [Translations] Updated to 2005-05-01 (17 strs / 2 langs) 20 years ago
miham e469f69bc6 (svn r2236) [Translations] Updated to 2005-04-28 (21 strs / 3 langs) 20 years ago
miham 65353d05f6 (svn r2235) [Translations] Updated finnish translation (Ville Koshinen) 20 years ago
miham c35baf477f (svn r2234) [Translations] Updated to 2005-04-26 (149 strs / 12 langs) 20 years ago
Darkvater 9bda9327e1 (svn r2221) - Fix: "Map size" is two words. Also draw the string right-aligned in the intro gui so it doesn't matter how long it is in other languages. 20 years ago
miham feda65a88b (svn r2219) [Translations] Updated to 2005-04-21_2 (40 strs / 5 langs) 20 years ago
miham 6e4f1b5a4b (svn r2216) [Translations] Updated to 2005-04-21 (67 strs / 6 langs) 20 years ago
Darkvater 53135e91ba (svn r2215) - Feature: Add a temporary mapsize selector to the intro gui. This is sufficient until the real window is designed & coded. 20 years ago
Darkvater dc415a9624 (svn r2214) - Fix: Dragging the desert tool over half-desert turns it into full-desert; dragging the tool while pressing ctrl, will remove the desert area. 20 years ago
miham 62089b8f2f (svn r2212) [Translations] Updated to 2005-04-17 (139 strs / 3 langs) 20 years ago
Darkvater dc193d2f00 (svn r2209) - CodeChange: [ 1184348 ] Remove unused _newspaper_flag that was supposed to be some ugly hack for chatting (gonewacko) 20 years ago
miham 7b673ec0cb (svn r2203) [Translations] Updated to 2005-04-15 (25 strs / 5 langs) 20 years ago
miham 166e1fa992 (svn r2199) [Translations] Updated to 2005-04-14 (188 strs / 13 langs) 20 years ago
miham b44019b5b3 (svn r2194) [Translations] Updated to 2005-04-14 (12 strs / 5 langs) 20 years ago
Darkvater e25dfa6e7e (svn r2192) - Add greater control to the 'message options' window. Now you can turn off the telegraphc ticker sound for summarized messages, or turn off news-messages altogether (you get a red blot to notify you though). The [<][>] set the settings in one way, while clicking on the option itself, cycles it. This commit also 'fixes' bugs [1166973], [1121484] and patch [1169930].
- I also changed an order of strings from On, Off to Off, On, so this can be used ingame with the WWT_4 widget type.
- Since the newssettings now take 2 bits per setting (off/summary/on) _news_display_opt is widened to 32 bits and the settings code changed slightly to accomodate for a maximum of 16 message-types.
20 years ago
miham 35e5844be3 (svn r2186) [Translations] Refreshed translations (20 strs/3 langs) 20 years ago
miham 88a0e06cfc (svn r2175) [Translations] Updated translations (11 strs/3 langs) 20 years ago
miham a1f8eb1d32 (svn r2174) [Translations] Updated translations (7 strs/2 langs) 20 years ago
miham 0844159786 (svn r2172) [Translations] Translations from the last two days (37 strs/11 langs) 20 years ago
miham e3226dba1e (svn r2171) [Translations] Manually fixed string-order in english.txt (someone fscked it up!) 20 years ago
Darkvater 1ba3d4ea9f (svn r2164) - Language: [ 1173684 ] fix some wrong french translations (glx) 20 years ago
Darkvater 817a665c52 (svn r2162) - Fix: Tooltips of horizontal scrollbars were wrong; they now say left/right instead of up/down 20 years ago
miham e6abbbca77 (svn r2158) [Translations] Updated translations (72 strs/2 langs) 20 years ago
miham 4b3f20f484 (svn r2151) [Translations] Updated translations (36 strs/2 langs) 20 years ago
miham 089ea3cbb9 (svn r2150) [Translations] Updated translations (14 strs/10 langs) 20 years ago
miham facec3d922 (svn r2145) [Translations] Updated translations (174 strs/6 langs)
[Translations] Also switched to two spaces instead of tabs (Darkvater requested)
20 years ago
Darkvater b05713285e (svn r2136) - Fix: [ 1174313 ] terrain hotkeys nonfunctional in scenario editor (D,Q,W,E,R,T,Y,U fltr)
- Fix: 'L' no longer opens ingame terraform bar in scenario editor bar, but the land generator one
- Feature: [ 1095110 ] Create Lake and draggable Create Desert tools (initial implementation GoneWacko), also added sticky buttons to land generator and town generator
- CodeChange: moved around some of the draggable tools, demystifying them
- CodeChange: change CmdBuildCanal to allow for XANDY dragging not only X or Y (only scenario editor)
- CodeChange: add some more enums to sprites.
- TODO: merge most of the ingame and scenario editor land terraform code. This can only be done after OnClickButton function is changed so it also includes the backreference to the widget being clicked, postponed to after 0.4.0
20 years ago
miham 1ce34ea456 (svn r2135) [Translations] Updated translations (142 strings to 4 languages) 20 years ago
pasky ff403d04a2 (svn r2129) Reverted r2125 and depending revisions (map size selector in the intro window). Will be done in a separate dialog. This also fixes showing of various rail/road-related strings. 20 years ago
pasky 225aa2ef48 (svn r2125) - Feature: In the intro dialog, show a map size selector below the landscape type selector. 20 years ago
miham 333376cb6a (svn r2120) [Translations] Updated translations (166 strings to 6 languages) 20 years ago
miham 5e07cd938d (svn r2117) [Translations] Introduce lithuanian translation as finished 20 years ago
miham 74d7cc6bf3 (svn r2116) [Translations] Updated translations 20 years ago
truelight 3dae675f63 (svn r2079) -Add: signlist, shows all signs in the map. Clicking on them, and you go
to the sign. Very needed for coop. You can find it under World Map.
20 years ago
miham 802b63a5a9 (svn r2050) Weekly langfile updates 20 years ago
miham e2321fe97a (svn r2027) Fixed a typo in the brazilian-portuguese language name 20 years ago
miham 446a5cbb57 (svn r2026) Moved brasilian_portuguese to finished languages 20 years ago
miham 71a558f09a (svn r2025) Daily langfile changes - 05/03/19 20 years ago
miham c7e5ef76df (svn r2023) Added brazilian-portuguese translation [yet unfinished] 20 years ago
miham a55be6ebef (svn r2016) Langfile updates 20 years ago
miham 53f35f4bb4 (svn r1985) Automatic langfile updates 20 years ago
miham 3b8feb2aa8 (svn r1913) Weekly langfile update 20 years ago
celestar 2eda5228d1 (svn r1881) -Fix: [ 1119308 ] Max passengers / mail variables are now 32 bit 20 years ago
miham 6186162742 (svn r1880) [Codechange] Added isocodes to langfiles and support code to strgen (Lauri Nurmi) 20 years ago
miham 4b3bac1572 (svn r1871) Daily langfile updates #2. 20 years ago
miham 7c0df5c836 (svn r1870) Added new language: lithuanian 20 years ago
miham ab57ad1f3d (svn r1864) Automatic langfile updates 20 years ago
bjarni b0042740a6 (svn r1851) - Language: added Frisian translation (no strings have been translated yet) 20 years ago
miham 491063c9a1 (svn r1807) Langfile updates (20050205) 20 years ago
miham eb21ec63a3 (svn r1759) Daily/Weekly/Monthly langfile updates 20 years ago
matthijs eb78cdb2d4 (svn r1751) - Feature: New PathFinder (NPF).
- Supports trains, road vehicles and ships.
	- Uses A* pathfinding (same codebase as the new ai).
	- Currently unlimited search depth, so might perform badly on large maps/networks (especially ships).
	- Will always find a route if there is one.
	- Allows custom penalties for obstacles to be set in openttd.cfg (npf_ values).
	- With NPF enabled, ships can have orders that are very far apart. Be careful, this will break (ships get lost) when the old pathfinder is used again.
- Feature: Disabling 90 degree turns for trains and ships.
	- Requires NPF to be enabled.
	- Ships and trains can no longer make weird 90 degree turns on tile borders.
- Codechange: Removed table/directions.h.
	- table/directions.h contained ugly static tables but was included more than once. The tables, along with a few new ones are in npf.[ch] now. Better suggestions for a location?
- Fix: Binary heap in queue.c did not allocate enough space, resulting in a segfault.
- Codechange: Rewritten FindFirstBit2x64, added KillFirstBit2x64.
- Codechange: Introduced constant INVALID_TILE, to replace the usage of 0 as an invalid tile. Also replaces TILE_WRAPPED.
- Codechange: Moved TileAddWrap() to map.[ch] 
- Add TileIndexDiffCByDir(), TileIndexDiffCByDir(). 
- Codechange: Moved IsTrainStationTile() to station.h
- Add: IsRoadStationTile() and GetRoadStationDir().
20 years ago
tron 001aa8e453 (svn r1722) -Feature: Bigger maps - anyone? 20 years ago
celestar 3c82a2b3c7 (svn r1721) -Feature: It is now possible to build multiple road stations (up to 8) on
a single station.
Thanks to: Truelight for the saveload code, Darkvater and Hackykid for
network testing and Tron for proof-reading 1500 lines of diff.
20 years ago
Celestar 0a531338e9 (svn r1693) -Fix: [ 1108618 ] A wrong error message was displayed when trying to
expand railroad stations beyond maximum spread
20 years ago
miham 08727614fc (svn r1678) Added cheat option for setting production of raw-material product industries in game 20 years ago
dominik dfd0276d3a (svn r1646) Miscellaneous langfile fixes, in particular for STR_NETWORK_SERVER_ADDRESS, broken by myself in r1611 20 years ago
miham c1db3ea675 (svn r1630) Langfile update 20 years ago
dominik c857bfa12a (svn r1611) Display server port in the multiplayer game info window
I had to make the multiplayer window 10 pixels wider for this
20 years ago
dominik bb34830bee (svn r1598) Feature: Message history now is stickyable and resizeable
The news messages are now precisely cropped according to pixel width to fit optimal into the window.
Introduced a new date format: DATE_TINY, which is ISOish.
20 years ago
celestar 07a10a51a7 (svn r1581) Added a display for the total map population to the town display (Jango) 20 years ago
dominik 274b4f01ee (svn r1579) Fix: [ 1105963 ] Buoys can now only be removed if no ship has it in their schedule.
This makes buoys more useable in multiplayer games again, as buoys can't be deleted by other players if they are used.
20 years ago
miham 05d0c2ce89 (svn r1555) Daily (err.. this time it's rather weekly, sorry!) langfile updates 20 years ago
dominik 8493f68c96 (svn r1543) Fix: [ 1101906 ] Configure Patches window text overflow 20 years ago
darkvater 0fc9b656e2 (svn r1538) -Feature: [988816] Disable servicing when breakdowns set to none (jaguar7) 20 years ago
darkvater 8bec09737f (svn r1531) -Feature: [1039061] Swiss town-names (vulvulune) 20 years ago
darkvater cd4272e08d (svn r1518) -Fix: server issue where some company names were wrong
-Fix: Highscore troubles; accessing members of deleted window
20 years ago
darkvater 0961c6af96 (svn r1515) -Removed the 'close ALL windows' from the toolbar since shift+del does this. 20 years ago
miham 0c75fe0948 (svn r1503) Added feature:
o allows users to setup the production values of the rawmaterial producing 
  industries in the editor

Modified:
o ttd.h - added CT_INVALID for 0xFF cargo type
o english.txt - added 1 string
o industry_gui.c - the feature itself
o window.h - added compile asserts to the structs which checks whether their
  sizes are smaller than WINDOW_CUSTOM_SIZE

Thanks:
o Darkvater to bother me to constantly improve the patch
o Various users at #openttd for testing
20 years ago
celestar cd2779dc67 (svn r1500) -Feature: Train window shows now the number of vehicles per row (mpetrov) 20 years ago
celestar 18643f2a2f (svn r1499) -Fix: Order tooltip now explains the ctrl+click scroll. [1101412 / 1097043] (mpetrov) 20 years ago
darkvater 84adfdf8c8 (svn r1496) -Fix: highscore no longer crashes in network games with a dedicated server. At the end of the game (can only be set by the server) the highscore is shown for the top5 companies of that game
-Fix: fixed some compiler warnings
-Added PF_NETWORK_ONLY flag to settings. Such a setting can only be modified in a network game.
20 years ago
celestar 9a287d932d (svn r1495) -Fix: Loan does not count against the company value
-Feature: New companies receive a 5-year protection period
20 years ago
darkvater 199a77d1ea (svn r1479) -Added highscore chart (accessible from the difficulty window) with top5 companies for a given difficulty (select the difficulty in the menu)
-Added endgame score on 1 jan 2051 where you are added to the highscore if sufficiently large points have been accumulated. Game is paused while
-These values are saved in hs.dat; added read/write functions for it
-Added code to delete all windows to show charts. There is one issue left: somehow a news-gui pops up in front of the the chart at the end of the game.
20 years ago
truelight 0cfc15a475 (svn r1444) -Fix: fixed weight for double-head trains (and with that the acceleration)
(now maglev lvl4 can reach their top speed, and are faster than lvl3) 
(Tnx to Darkvater :))
-Fix: Buy Vehicle GUI now shows HPs bigger than 32000 correctly
20 years ago
miham 25470edddd (svn r1439) Daily langfile updates [except latvian for non-iso8859-1 chars] (semi-automatic)
The last patch (norwegian townnames was from Simen Graaten
20 years ago
miham 34dee18a2c (svn r1438) Added norwegian townnames 20 years ago
darkvater c2b59b2089 (svn r1418) -Feature: [1098254] (dis)Allow Shares. Add patch options to allow buying/selling of shares (Hackykid) 20 years ago
bjarni 3845670c78 (svn r1405) Added half done Estonian translation (indrek) 20 years ago
miham a08f926fe6 (svn r1403) Daily langfile updates (semi-automatic) [505 missing strings] 20 years ago
dominik 0a37e6202b (svn r1385) Fix: [ 1095020 ] When all stations in an aircraft's order list are demolished, the plane eventually crashes (running out of fuel) 20 years ago
darkvater fc52b512aa (svn r1375) -Fix: [1050990] Buying trains sometimes accounted for incorrectly. Was the result of the cost getting reset in a recursive call of docommand. That is fixed. In addition all cost-commands are typed explicitely. Please do not forget to do so or your costs will be credited to construction if you are unlucky. 20 years ago
bjarni 578d34cfe0 (svn r1350) Replace Vehicle GUI:
- Replaced "WP(w,replaceveh_d).line_height" with 
"w->resize.step_height" since they needed to be the same anyway
- Cleaned the code a litte for readability (like correct tabbing)
- Added company color to replace vehicle windows to make them look like 
the rest of the vehicle windows and made the caption text white (also to 
fit the standard)

 --This line, and those below, will be ignored--

M    vehicle_gui.c
M    lang/english.txt
M    window.h
20 years ago
truelight 3b7d2a8b67 (svn r1348) -Feature: resizable windows. Read the comment in window.h to find out
how the system works. All useful windows are already made resizable. Enjoy :)
-Fix: fixed some GUI-glitches and flaws along the way
20 years ago
darkvater 83342a0bcb (svn r1341) -Fix: fix WWT_FRAME drawing when there is no text there (STR_NULL)
-Copyright notice is now 2002-2005 for all languages
20 years ago
darkvater d02bdb0768 (svn r1340) -Feature: scrolling credits list...finally! Hope nobody gets offended if I forgot them. 20 years ago
dominik 4c5c4d23f3 (svn r1335) Removed wrongly renamed STR_TOWNNAME_ADDITIONAL_ENGLISH from all language files 20 years ago
darkvater 37bf3bf4cf (svn r1327) -Fix: made resource file version independent for windows
-Fix: language file inconsistencies...please update all other language files as well when you rename a string name and do nothing else.
20 years ago
bjarni 5da75918c0 (svn r1323) Adding autoreplace feature
This feature works much like autorenew, but it will get you a new engine type instead of a new one of the same type. Once 
ordered, it will automatically replace the engines while they visits a depot. The GUI for setting this up have been added on the 
vehicle overview windows
Note: autorenew is now autoreplace, but to the same engine type
Nice new features, that was added to make this possible
- windows can now have two independant vertical scrollbars
- CMD_SHOW_NO_ERROR have been added as a flag for DoCommandP. It will make it do the action instead of showing the red box with 
estimated costs even if shift is pressed
- fixed problem where enginetypes where not initialized when loading a game. It's now done in InitializeGame()
20 years ago
truelight 5eeab7fcfe (svn r1322) -Add: banning system (mostly tnx to guru3)
A server can ban people via ClientList
  Both server and dedicated can do it via console:
   'ban', 'unban', 'banlist'.
20 years ago