|
peter1138
|
r5108:28640689af54
|
18 years ago
|
|
|
|
Darkvater
|
r4912:d420151de4c6
|
18 years ago
|
|
(svn r6884) -Codechange: Add strict bounds checking in string formatting system. The last parameter should point to the end of the buffer (eg lastof(buf)) Courtesy of Tron.
|
|
peter1138
|
r4862:d628b8a0219f
|
18 years ago
|
|
|
|
Darkvater
|
r4849:41dc3967353a
|
18 years ago
|
|
(svn r6775) -Codechange: Use some more proper types, especially Owner and PlayerID as these are used intermixed often.
|
|
Darkvater
|
r4833:da6e028854b3
|
18 years ago
|
|
(svn r6757) -Fix (r6754): Remove double function declerations from functions.h..Gaah local copy mess....
|
|
Darkvater
|
r4829:a27f2b09ce34
|
18 years ago
|
|
(svn r6753) -Codechange: Move some function declerations from functions.h into network.h and let NetworkDisconnect handle all shutdown related operations.
|
|
Darkvater
|
r4828:36b2551e4f6c
|
18 years ago
|
|
|
|
bjarni
|
r4766:faaab7cb5a8d
|
18 years ago
|
|
|
|
rubidium
|
r4548:6a33e364fba5
|
18 years ago
|
|
(svn r6380) -Codechange: unify all ways to quit OTTD. This means that in the intro menu the 'Quit' button immediatelly quits and the 'Quit' in the menu of the normal game and scenario editor immediatelly quits when the 'autosave_on_exit' patch is turned on. This is the same way as the OS/window manager initiated quits, like alt-F4 and the 'x' in the (OS/window manager drawn) title bar of OTTD.
|
|
tron
|
r4512:0882483119bc
|
18 years ago
|
|
|
|
rubidium
|
r4432:882116c46ee9
|
18 years ago
|
|
|
|
truelight
|
r4300:642b2431578b
|
18 years ago
|
|
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds: - New optional landscape generator (TerraGenesis Perlin) - Load heightmaps (either BMP or PNG) - Progress dialog while generating worlds (no longer a 'hanging' screen) - New dialogs for NewGame, Create Scenario and Play Heightmap - Easier to configure your landscape - More things to configure (tree-placer, ..) - Speedup of world generation - New console command 'restart': restart the map EXACTLY as it was when you first started it (needs a game made after or with this commit) - New console command 'getseed': get the seed of your map and share it with others (of course only works with generated maps) - Many new, world generation related, things - Many internal cleanups and rewrites Many tnx to those people who helped making this: Belugas, DaleStan, glx, KUDr, RichK67, Rubidium, and TrueLight (alfabetic) Many tnx to those who helped testing: Arnau, Bjarni, and tokai (alfabetic) And to all other people who helped testing and sending comments / bugs Stats: 673 lines changed, 3534 new lines, 79 new strings
|
|
rubidium
|
r4261:8c2d0c75e37a
|
18 years ago
|
|
(svn r5887) -Cleanup: move date related functions, defines and variables to date.[ch] -Cleanup: fix whitespace related coding style issues in date.[ch] -Cleanup: make original comments doxygen compatible and remove/change outdated comments
|
|
tron
|
r4238:74ce9370fc4f
|
18 years ago
|
|
|
|
Darkvater
|
r4220:ecc4f07e457a
|
18 years ago
|
|
(svn r5764) - Cleanup: - Cleanup: Move the now unified FiosAlloc, compare_FiosItems, FiosFreeSavegameList, FiosMakeSavegameName, FiosDelete and FileExists to newly created file fios.c where it belongs. - Fix: forgot to remove GetLanguageList from functions.h in previous commit
|
|
tron
|
r4212:b3a8b5327843
|
18 years ago
|
|
(svn r5723) - Move the declaration of DrawRoadDepotSprite() out of functions.h (but I'm not too happy with the new header) - Use DiagDirection instead of plain int for the orientation of the depot graphics - Rename the associated data tables with sprites to something more meaningful
|
|
tron
|
r4000:702cb45b8eab
|
18 years ago
|
|
|
|
tron
|
r3794:9d3fc41aae37
|
18 years ago
|
|
|
|
tron
|
r3636:a8e0c73aca96
|
18 years ago
|
|
|
|
tron
|
r3416:f8cc1e7bf1e0
|
18 years ago
|
|
|
|
Darkvater
|
r3341:9e6b46ee7ba7
|
19 years ago
|
|
|
|
Darkvater
|
r3329:ddd8de7d4298
|
19 years ago
|
|
(svn r4105) - Feature: Add proper ISO-8859-15 <> LOCALCODE conversion. As the mess that is makefile can't properly support it at the moment, it is only available for MACOSX. Windows doesn't need FS conversion and I have no idea about OS/2 so it's disabled for them. - CodeChange: Change the function GetCurrentLocale(). It returns the locale from some default environment-variables, plus a custom one defined as parameter. If all fail, it tries $LANG.
|
|
tron
|
r3297:f1e9c2bc76bc
|
19 years ago
|
|
(svn r4028) The last external user of FindLandscapeHeightByTile() is gone (r4027). Move its implementation into its only caller - FindLandscapeHeight() - and remove it
|
|
tron
|
r3156:c9d8084e145c
|
19 years ago
|
|
|
|
tron
|
r3150:6242a630abac
|
19 years ago
|
|
|
|
tron
|
r3133:9f9a1b2c3e35
|
19 years ago
|
|
|
|
Darkvater
|
r3121:d92bf3e0a6d9
|
19 years ago
|
|
(svn r3726) - [6/6] Finalize conversion, finally save the patches struct. - Remove the temporary synchronisation in during the map-transfer as this is no longer needed - The saved patches work just like the saved gameoptions. You have a _patches and a _patches_newgame struct. The _patches_newgame struct contains the values from the configuration file and thus the defaults for new games. When a new game is started or an older game is loaded, the default values are copied over to _patches to be used. When you load a game that has PATS saved, the default values are also loaded, but immediately overwritten by the values from the savegame. This ensures that player-based values are always taken from your personal preferences. - The current implementation also changes the default values if you change player-based settings in the game. For example changing window_snap_radius in a certain game will also change it for all next OpenTTD sessions. - The savegame version has been increased to 22. - The last 6 orso patches close the following reports: [ 1366446 ] different names for patches: all patch settings have the same name as in the configuration file and are reachable from the console. [ 1288024 ] Strange string on OTTD initial screen: configuration (and this includes patches) inputs are validated and clamped to their minimum/maximum values. [ 1423198 ] Make "Signals on Drive side" player, not server, based: this is only visual so current setting is to save it with the savegame but not synchronise in multiplayer. [ 1208070 ] Patches and New GRF options saved: apart from newgrf this is done
|
|
tron
|
r2817:7ad46034031f
|
19 years ago
|
|
|
|
tron
|
r2816:3dd6634c2a23
|
19 years ago
|
|
|
|
tron
|
r2794:cf7bea53ebee
|
19 years ago
|
|
|
|
tron
|
r2788:50876acf77ef
|
19 years ago
|
|
|
|
tron
|
r2639:e298192a7c03
|
19 years ago
|
|
(svn r3181) -Bracing -Indentation -Whitespace -DeMorgan's Law -Test with NULL or 0 for non-booleans -'\0' instead of 0 for chars -Remove redundantly redundant comments (like DoFoo(); // Do foo) -Join multiple short lines with a single statement -Split single lines with multiple statements -Avoid assignments in if
|
|
tron
|
r2520:1767662fb229
|
19 years ago
|
|
|
|
Darkvater
|
r2482:52d443ba6369
|
19 years ago
|
|
(svn r3008) [ 1247535 ] Native Support for Win64 (compile&run only) (michi_cc) Fix warning in graph_gui.c with const problem
|
|
tron
|
r2475:8ceca0de932b
|
19 years ago
|
|
(svn r3001) s/Player*/const Player*/ s/byte/PlayerID/ s/int/PlayerID/ and related changes
|
|
peter1138
|
r2471:bee74ab7f6e9
|
19 years ago
|
|
|
|
Darkvater
|
r2436:963efe8b84cc
|
19 years ago
|
|
(svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters - change a lot of byte player types to PlayerID - beautify header files, same "#endif /* filename */" ending
|
|
Darkvater
|
r2380:9736146c8fbf
|
19 years ago
|
|
|
|
tron
|
r2306:83bf5acd9e01
|
19 years ago
|
|
|
|
tron
|
r2285:47dd485c1ae4
|
19 years ago
|
|
|
|
tron
|
r2283:31a28d276844
|
19 years ago
|
|
(svn r2807) Fix two major bugs in the threaded save code: - Do not dereference a local variable which no longer exists; this lead to random crashes when saving - (Win32) Do not close a handle before it is used last There are still many major problems (race conditions and resulting memory corruption/crashes) left
|
|
ludde
|
r2261:e6fb9fd7ed61
|
19 years ago
|
|
|
|
tron
|
r2234:6f59925a7314
|
19 years ago
|
|
|
|
tron
|
r2220:ffd09009ed77
|
19 years ago
|
|
|
|
tron
|
r2210:ed1be54700ae
|
19 years ago
|
|
(svn r2728) -Fix/Feature: Change the driver probing algorithm Instead of trying to start a single driver and bailing out if that fails, try to initialise one by one and use the first one which succeeds. This should fix problems on machines with no sound card, where -s null had to be specified manually.
|
|
tron
|
r2186:5ee653b1b5e1
|
19 years ago
|
|
|
|
tron
|
r2162:7c64e21f12f9
|
19 years ago
|
|
|
|
ludde
|
r2125:87ebf6378cb6
|
19 years ago
|
|
(svn r2635) Fix: [ntp/misc] Improve the old pathfinder. Changed it to A* instead of Dijkstra. - Benchmark shows that NTP is now around 10x faster than NPF. - Made IsTunnelTile macro to determine if a tile is a tunnel. - Added some useful debugging functions for making tiles red / getting accurate timestamps. - Remove old depot finding algorithm. - Disable warning for signed/unsigned comparisons.
|
|
ludde
|
r2091:b9e8f21f2886
|
19 years ago
|
|
|
|
ludde
|
r2078:0300868e49d0
|
19 years ago
|
|
|
|
Darkvater
|
r2075:832339004524
|
19 years ago
|
|
|
|
ludde
|
r2073:6be1dac46f17
|
19 years ago
|
|
(svn r2583) Move OS specific code out of misc.c Added support for Mersenne Twister random number generator (not implemented in network yet) Wrap player randoms around #ifdef
|
|
ludde
|
r2051:04d7c352ccc4
|
19 years ago
|
|
(svn r2560) Fix: various minor code changes. Added RandomTile/RandomTileSeed functions to generate a random tile. Changed landscape routines so they don't assume that the Y map side is a power of two. (support for this is not complete, though) Changed some frequently used map macros to not compute the values each time. Silence some warnings on MSVC.
|
|
tron
|
r1977:1f8b99c96041
|
19 years ago
|
|
|
|
celestar
|
r1935:14189c6d6c9d
|
19 years ago
|
|
|
|
Darkvater
|
r1914:63c34ade2fdf
|
19 years ago
|
|
|
|
Darkvater
|
r1885:5a3b2b72280f
|
19 years ago
|
|
(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
|
|
Darkvater
|
r1812:a78a2f58cdc8
|
19 years ago
|
|
|
|
Darkvater
|
r1796:4bbf4ea0805e
|
19 years ago
|
|
(svn r2300) - CodeChange: check the last number of commands, now only the refit ones remain, and some server-only commands. - CodeChange: remove cmd-misuses CmdStartScenario() and CmdDestroyCompanyHQ() - Fix (invisible): when parameter checking CmdRestoreOrderIndex() the vehicle did not have its orders yet, so it would fail. So move doing this until AFTER the orders have been added back in RestoreVehicleOrders()
|
|
Darkvater
|
r1794:15e23047f8c1
|
19 years ago
|
|
(svn r2298) - CodeChange: removed CmdAbuses: CmdSetTownNameType(), CmdStartNewGame(), CmdCreateScenario(), CmdSetNewLandscapeType() and CmdGenRandomNewGame(). - CodeChange: renamed CmdTrainGotoDepot() to CmdSendTrainToDepot() to be consistent with other depot commands. - CodeChange: 'newgame' console command now calls the unabused GenRandomNewGame(). For the server it still creates a new game, a client quits the game and continues in SP. - CodeChange: in the game-difficulty window, setup the disabled buttons on window creation, not every redraw.
|
|
Darkvater
|
r1688:04d84999dd62
|
19 years ago
|
|
(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.
|
|
tron
|
r1589:e83980b96e9f
|
20 years ago
|
|
|
|
truelight
|
r1542:6bae7041e7bc
|
20 years ago
|
|
(svn r2046) -Codechange: moved all waypoint code to waypoint.c/waypoint.h -Codechange: rewrote some functions while moving waypoint-stuff -Add: added support for 64k waypoints -Fix: made the waypoint struct a bit more logic (no bit-fucking)
|
|
truelight
|
r1539:66e974341a54
|
20 years ago
|
|
|
|
truelight
|
r1538:9b83bdd8ee42
|
20 years ago
|
|
|
|
tron
|
r1420:7965ace4a109
|
20 years ago
|
|
|
|
celestar
|
r1377:61ffe715e00e
|
20 years ago
|
|
|
|
tron
|
r1335:da4955366538
|
20 years ago
|
|
|
|
tron
|
r1329:88de95f6e7d3
|
20 years ago
|
|
|
|
tron
|
r1328:7f615de66cc5
|
20 years ago
|
|
|
|
tron
|
r1317:3783af524858
|
20 years ago
|
|
|
|
tron
|
r1310:6ae63c644612
|
20 years ago
|
|
|
|
tron
|
r1309:4100b4013e37
|
20 years ago
|
|
|
|
matthijs
|
r1247:d01094dbcdcc
|
20 years ago
|
|
(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().
|
|
tron
|
r1245:eb9b943bd917
|
20 years ago
|
|
|
|
celestar
|
r1217:1f9b7fc00eb8
|
20 years ago
|
|
(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.
|
|
tron
|
r1211:0ff891861c37
|
20 years ago
|
|
|
|
truelight
|
r1120:85a1bbe4f9d5
|
20 years ago
|
|
|
|
tron
|
r1115:6588bcd8e0ed
|
20 years ago
|
|
(svn r1616) Introduce ttd_strlcat() and use it to de-uglify some piece of code in misc_cmd. While here rename the len parameter of ttd_strlcpy() to size, because it is a buffer size and not a string length. Also add -Wwrite-strings to the Makefile, because the above mentioned piece of code was the only part which triggered this warning.
|
|
tron
|
r1093:18f56ef2d029
|
20 years ago
|
|
|
|
darkvater
|
r1082:5511b4ed9376
|
20 years ago
|
|
|
|
tron
|
r1009:24bbc79858a2
|
20 years ago
|
|
|
|
darkvater
|
r999:d2f24d7133ae
|
20 years ago
|
|
(svn r1497) -Fix: [1101179] Crash if generating land while industry window is open. This also happened for towns and the land information window -Added DeleteWindowByClass() function that deletes all windows of a given class
|
|
darkvater
|
r998:60ce1309b99c
|
20 years ago
|
|
(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.
|
|
truelight
|
r988:49007d1ff1d3
|
20 years ago
|
|
(svn r1486) -Codechange: moved all 'signs' stuff to signs.c/h and prepared it for dynamic arrays
|
|
darkvater
|
r983:9c58202c20d1
|
20 years ago
|
|
(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.
|
|
tron
|
r873:8376969b1534
|
20 years ago
|
|
|
|
truelight
|
r781:13ab6b3c1f17
|
20 years ago
|
|
(svn r1248) -Add: initial OS/2 support (read docs/ReadMe_OS2.txt) (orudge) Works fine, beside some minor stuff: - Network is not working yet - Keyboard is not working - No MIDI support - 'A few file selector bugs involving drives'
|
|
dominik
|
r738:f65fde6f029e
|
20 years ago
|
|
|
|
truelight
|
r619:51b758976a98
|
20 years ago
|
|
|
|
truelight
|
r543:efdb197f91ad
|
20 years ago
|
|
|
|
tron
|
r536:306d4b3ff699
|
20 years ago
|
|
(svn r907) Sprinkle holy ANSI water: - "inline" must before the return type (and after "static") - Initialise all struct members, not just some of them - Remove (one) spurious semicolon
|
|
tron
|
r473:f7d76ddceb3a
|
20 years ago
|
|
(svn r724) Remove restriction that a tile can only accept 3 cargo types. This especially enables houses to accept passengers, mail, goods AND food. Add string templates for up to 5 cargo types for the tile info window. If more are needed just add them. Simplify (de-uglify) the logic for cargo acceptence for houses and split the goods/food table into two. The acceptance is unmodified, but accepting goods AND food is now trivially possible. The exact amounts have to be decided. This is based on Celestar's changes in the map branch plus some further bits that will be merged there soon.
|
|
tron
|
r430:c6aefd620ab0
|
20 years ago
|
|
(svn r631) Merge r440, r444, r485, r630 to trunk: r440 Move screenshot function declarations to new file screenshot.h Clean up screenshot.c a bit, mostly whitespace, alloca() -> malloc() and checking return values r485 Remove unused field from struct ScreenshotFormat
|
|
dominik
|
r415:c5fe3f4f9198
|
20 years ago
|
|
|
|
darkvater
|
r395:9c19f4df13fc
|
20 years ago
|
|
|
|
darkvater
|
r393:57c73ac69034
|
20 years ago
|
|
|
|
tron
|
r387:b66e8bc66817
|
20 years ago
|
|
|
|
tron
|
r337:998f55d0b04c
|
20 years ago
|
|
(svn r513) Merge revisions 402, 416, 417, 478, 479, 511, 512 from map to trunk This includes 2 fixes -Fix: [1048596] Monorail and Maglev sounds are swapped (r511) -Add special case to load the jackhammer sound (r478) The rest are cleanups und enumeration to make merging possible/easier
|
|
signde
|
r239:0103bf045d04
|
20 years ago
|
|
(svn r240) -Fix: desync on subsidy generation -Fix: sometimes commands got executed to early on some clients -Feature: universal event packets for transmitting subsidys
|