|
rubidium
|
r5469:9c38e5ce3f50
|
18 years ago
|
|
|
|
rubidium
|
r5436:19a01d6e6b71
|
18 years ago
|
|
|
|
celestar
|
r5385:1c8ef6521bf2
|
18 years ago
|
|
|
|
Darkvater
|
r5380:f5fecf6b34ff
|
18 years ago
|
|
(svn r7565) -Codechange: Rework DEBUG functionality. Look for appropiate debugging levels to use in debug.h. grfmsg() is now used as a specific debug-function for grf.
|
|
Darkvater
|
r5296:9e88faa6d573
|
18 years ago
|
|
(svn r7449) -Codechange: Rename _path to _paths as it is technically more correct, but mainly because it interferes with OS/2 symbol in libc (psmedley)
|
|
peter1138
|
r5228:68969c6ab65b
|
18 years ago
|
|
|
|
matthijs
|
r5216:bdd3aa57475e
|
18 years ago
|
|
(svn r7331) - Codechange: Rename all memory pool macro's and types to "old pool", so the new pool implementation can be committed alongside it. - Codechange: Rename pool.[ch] to oldpool.[ch].
|
|
peter1138
|
r5211:4adf6d7ce809
|
18 years ago
|
|
|
|
Darkvater
|
r5167:ab69788b1e19
|
18 years ago
|
|
(svn r7274) -Codechange [utf8]: Add input/output unicode support. This actually only changes win32 since it uses UTF16 for file access. To keep os-specific code to a minimum, OpenTTD uses UTF8 internally everywhere, converting to OS-type when needed (save/load/screenshot/etc.)
|
|
peter1138
|
r5163:a7c06b0ec769
|
18 years ago
|
|
|
|
Darkvater
|
r5142:6842a881353e
|
18 years ago
|
|
|
|
Darkvater
|
r5141:e61bae029532
|
18 years ago
|
|
(svn r7231) -Codechange: rename ini_get_variable to GetVariableAddress for use both in settings.c and saveload.c
|
|
Darkvater
|
r5140:ab9de233a12a
|
18 years ago
|
|
(svn r7228) -Codechange: [internal] Add the possibility to save/load string-pointers which do not have a pre-allocated buffer.
|
|
KUDr
|
r5116:6ab72109f482
|
18 years ago
|
|
(svn r7195) -Feature: [FS #297, optional elrails] New patches/vehicles option 'disable electrified railways'. (original patch by maedhros, ideas: peter1138, Darkvater, Rubidium, Patrick, Eddi|zuHause, ..)
|
|
peter1138
|
r5108:28640689af54
|
18 years ago
|
|
|
|
Darkvater
|
r5015:8110dca51d21
|
18 years ago
|
|
(svn r7048) -Cleanup: DEBUG doesn't need a newline character, use DEBUG instead of printf and the verb is build/built/built not build/*/build or build/*/builded.
|
|
tron
|
r4985:3022c22ae6ea
|
18 years ago
|
|
|
|
tron
|
r4983:335e5ad689f4
|
18 years ago
|
|
|
|
tron
|
r4981:ef6e7595ac1d
|
18 years ago
|
|
|
|
tron
|
r4980:f43a85870b6c
|
18 years ago
|
|
|
|
tron
|
r4978:9674f895d32e
|
18 years ago
|
|
|
|
tron
|
r4977:7eee4b937913
|
18 years ago
|
|
|
|
tron
|
r4974:41276932b8fc
|
18 years ago
|
|
|
|
tron
|
r4972:d62dbc1ddead
|
18 years ago
|
|
|
|
bjarni
|
r4712:ace1fd623579
|
18 years ago
|
|
(svn r6624) -Feature: added ability to add refit commands to vehicle orders (can only be done in goto depot orders) Example: make a train transport iron ore from A to B, then it visits a depot and refits to steel It then transport steel back to A or near A if there is a factory and then it visits another depot to refit to iron ore again
This is controlled in the orders. If a goto depot order is lightlighted, then "Unload" changes to "Refit" Control click "Refit" removes the refit part of the order (as the tooltip says) The player will still pay the normal refit costs
Known issues: If a vehicle is not in a depot, then the refit window will fail to tell refitted cargo capacity Refit costs in the refit window can sometimes print 0 when it should not because the refit calculation is unaware that the vehicle will be refitted in between
Warning: autoreplace got a protection against replacing something so you get a new cargo type, but it can fail here. In the iron ore/steel example, it can see that the vehicle carries iron ore and the new one can be refitted to iron ore, then it will replace. It will not check to see that it's valid for steel as well. This is something to look into in the future
|
|
peter1138
|
r4695:dfd8be1a9fcf
|
18 years ago
|
|
|
|
peter1138
|
r4603:3b159d0db197
|
18 years ago
|
|
|
|
KUDr
|
r4590:29ac4f008e91
|
18 years ago
|
|
|
|
rubidium
|
r4549:76b9213799ac
|
18 years ago
|
|
(svn r6381) -Cleanup: make the '/* */' comments that span multiple lines more uniform. -Cleanup: whitespace alignment of a few tables.
|
|
truelight
|
r4328:abeae2374271
|
18 years ago
|
|
(svn r6001) -Feature: when removing a farm, his farmland is removed too (over time) (based on peter1138's patch, FS #82) To make this to work, in older games farmland is removed on load, and replanted
|
|
rubidium
|
r4326:7102aa7f4fb2
|
18 years ago
|
|
(svn r5999) -Feature: change the original date format to a 32 bits format based at the year 0. The game date subsystem now allows someone to start in the year 0 and continue up to the year 5 000 000. However, you currently cannot build anything before 1920 as there is no newgrf support for dates before 1920 or after 2090 yet.
|
|
truelight
|
r4323:1dbdaaf66c90
|
18 years ago
|
|
(svn r5977) -Fix [FS #78]: never set I-am-a-thread bool to true IN the thread. Machines with dualcore can be faster then you want, and therefor create 2 threads, while you made the bool to make sure there is never more then 1 thread of this type.
|
|
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
|
|
truelight
|
r4298:ce4c65c3dd9b
|
18 years ago
|
|
(svn r5943) -Merge TGP (part r5725): -Codechange: renamed Thread to OTTDThread, as Windows (who else) uses Thread in winbase.h, and starts complaining if you define it otherwise (with weird, undefined errors) (tnx Arnau and Rubidium)
|
|
Darkvater
|
r4257:4a6f150c8b1f
|
18 years ago
|
|
|
|
Darkvater
|
r4255:8505c5deef37
|
18 years ago
|
|
|
|
tron
|
r4077:259c4c4aacad
|
18 years ago
|
|
|
|
richk
|
r4059:35d2ee7000b3
|
18 years ago
|
|
(svn r5346) - Feature: Add 4 new airports. 2 for aircraft, 2 for helicopters. Commuter airport: Small. 5x4. 3 terminals, 2 helipads. Intercontinental: massive. 9x11. 8 terminals, 2 helipads, 4 runways. Helidepot: a small heliport with a depot for helis only. Helistation: a large heliport with 3 helipads and a depot.
|
|
tron
|
r4039:a66c2cdcfa51
|
18 years ago
|
|
|
|
glx
|
r4016:ae22ef34a431
|
18 years ago
|
|
|
|
tron
|
r3977:63d936e7e5a8
|
18 years ago
|
|
|
|
celestar
|
r3933:400e9c30928e
|
18 years ago
|
|
(svn r5070) Merged the bridge branch -Feature: Bridges can now be placed above: Any railway track combination (excluding depots and waypoints) Any road combination (excluding depots) Clear tiles (duh), including fields Tunnel entrances Bridge heads
Thanks to Tron for idea and implementation, KUDr for the yapf synchronization and many others for hours of testing
There are still a number of visual problems remaining, especially when electric railways are on or under the bridge. DO NOT REPORT THOSE BUGS FOR THE TIME BEING please.
|
|
KUDr
|
r3900:1c2675abec23
|
18 years ago
|
|
|
|
peter1138
|
r3765:c9eaea3d3f78
|
18 years ago
|
|
|
|
Darkvater
|
r3625:107076d71f61
|
18 years ago
|
|
|
|
peter1138
|
r3585:4dae9cd69c90
|
18 years ago
|
|
|
|
KUDr
|
r3584:c30c36fc2a35
|
18 years ago
|
|
(svn r4470) -Fix: FS #97 — Possible bug in Win64 versions (by michi_cc) Doesn't fix any known bug, but the code is now bit cleaner. The proper result of subtraction of two pointers is ptrdiff_t.
|
|
celestar
|
r3580:25c52552a9cd
|
18 years ago
|
|
(svn r4466) -Fix: (FS #71) Game no longer crashes when the last vehicle serving a station has been deleted. -Negative side effect: upon loading old games, stations whose last vehicle was a station have (temporarily) lower ratings. -Positive side effect: station.h no longer includes vehicle.h (breaks the station.h->vehicle.h->rail.h chain)
|
|
Darkvater
|
r3510:965027e51f61
|
18 years ago
|
|
|
|
Darkvater
|
r3509:942dd8b095a8
|
18 years ago
|
|
|
|
celestar
|
r3431:d4db460d5bfc
|
18 years ago
|
|
(svn r4259) -[multistop] Fix/Feature/Codechange: 1) Improved the road vehicle allocation (aka slotting) for multistop. Stops can now accept unlimited, er... 256, vehicles. 2) Removed the "wait for stop" feature, because it did not work in practise. 3) Slotting now ignores unreachable stations. Uses NPF at the moment because the old pathfinder cannot do it (yet) 4) Now matter how many vehicles approach a station, they will always be distributed evenly over existing stops. 5) Hopefully the last fundamental change to multistop
|
|
celestar
|
r3355:881cb92af87e
|
18 years ago
|
|
|
|
Darkvater
|
r3329:ddd8de7d4298
|
18 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.
|
|
bjarni
|
r3294:48afb2c79c16
|
18 years ago
|
|
(svn r4019) -Fix: [OSX] stopped using iconv for 10.2.8, since it was added in 10.3 this have the sideeffect that 10.2.8 will still have the "failure to save with certain chars in the filename bug", but at least it can compile again
|
|
bjarni
|
r3262:ab2b7d23213c
|
18 years ago
|
|
|
|
bjarni
|
r3260:20b5999aee24
|
18 years ago
|
|
(svn r3966) -Fix: [OSX and some linux] [ 1157244 ] Can't save game if name contains german umlauts now it saves correctly, but the load window still display some chars wrong (fix by ln-)
|
|
Darkvater
|
r3241:ca03df4462c7
|
18 years ago
|
|
|
|
Darkvater
|
r3121:d92bf3e0a6d9
|
18 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
|
|
Darkvater
|
r3117:680d682e2556
|
18 years ago
|
|
(svn r3721) - [3/4] Present the game with a unified structure for the configuration-ini, saveload, console and gui representations of the settings. From part 3 on, OpenTTD is once again compilable. - Code has been added to the saveload code to honour the SLF_SAVE_NO and SLF_NETWORK_NO flags. SLF_NETWORK_NO just reads in the the bytestream and then discards it because that setting is not synchronised. For this the function SlSkipBytes() has been reinstated - SAVEGAME_VERSION has been changed from a constant ENUM to a constant integer. This was done for the configuration-code to be able to tell which version of a CONDVAR type to handle. As said before, because settings can be saved to the savegame, they will become conditional at some point. The configuration code always has to read the 'most recent' version. - GameOptions are saved through the new structure. It is fully compatible with any old savegame...however it is better. Because of the move to this new format we can instruct the loader to skip certain variables. Autosave for example isn't synchronised anymore (in the network). The same goes for currency and kilometers :D. That is the only functionality change this patch is supposed to have if I have written it correctly. - NOTE! Patches are still not saved so for Multiplayer to work network_client.c and network_server.c needed slight modifications.
|
|
Darkvater
|
r3112:954462cc5193
|
18 years ago
|
|
|
|
Darkvater
|
r3109:e4cb7975ceda
|
18 years ago
|
|
|
|
Darkvater
|
r3108:efd51011953f
|
18 years ago
|
|
|
|
Darkvater
|
r3073:576e1ffd8bc1
|
18 years ago
|
|
|
|
Darkvater
|
r3048:989575a76150
|
18 years ago
|
|
|
|
Darkvater
|
r3046:6457665c9b5a
|
18 years ago
|
|
|
|
Darkvater
|
r3044:7d3148f2048f
|
18 years ago
|
|
(svn r3624) - CodeChange: Some cosmetic changes in the saveload code; - hide and validate variable-size calculation (SlCalcConvMemLen/SlCalcConvFileLen) - some signed/unsigned fixes - handle conditional variables the same way for global -and struct types, through checking version_from and version_to
|
|
Darkvater
|
r3043:2ae6db06a5a5
|
18 years ago
|
|
|
|
tron
|
r2958:7c0285bafd42
|
18 years ago
|
|
|
|
tron
|
r2952:e97f823d2dbe
|
18 years ago
|
|
|
|
truelight
|
r2927:98a3eff8884e
|
18 years ago
|
|
(svn r3483) -Fix: fixed warning about setjmp (tnx Bjarni for testing, and tnx for taking the effort to commit it)
|
|
Darkvater
|
r2916:04b29c805eb5
|
18 years ago
|
|
(svn r3472) - [PBS] Remove from trunk. Anyone interested can still find it in branch/pbs. This reverts revisions r3158, r3140, r3075, r2977, r2674, r2625, r2621, r2529, r2528, r2525, r2524, r2519, r2517, r2516, r2507, r2499. (in conjunction with Tron)
(svn r3472) - [PBS] Remove from trunk. Anyone interested can still find it in branch/pbs. This reverts revisions r3158, r3140, r3075, r2977, r2674, r2625, r2621, r2529, r2528, r2525, r2524, r2519, r2517, r2516, r2507, r2499. (in conjunction with Tron) - The only change is that the nsignalsw.grf file is kept and that existing nightlies with PBS signals get those signals converted to combo-signals.
|
|
bjarni
|
r2855:93020c5c02b9
|
19 years ago
|
|
(svn r3403) -Codechange: [multiheaded engines] the references between the front and rear engines are no longer saved instead the pointers are generated on load
|
|
peter1138
|
r2848:ae67043fa1f1
|
19 years ago
|
|
(svn r3396) - Autoreplace changes: - Change fixed array per player to a single pool. This avoids future problems with vehicle numbers and decreases savegame size. Engine replacements from previous savegames will be lost. - Move engine replacement code from players.c to engine.c. (thanks to blathijs for rewriting this)
|
|
truelight
|
r2828:818927cd6da2
|
19 years ago
|
|
(svn r3376) -Codechange: made enums for GenerateWorld and InitializeGame 'mode' -Fix: [ FS #30 ] don't reset date in SE when pressing RandomLand (rewrote patch of MeusH, but Peter warned me I should put his name in, so... oh well)
|
|
peter1138
|
r2808:342b2a65d0ce
|
19 years ago
|
|
(svn r3356) - Remove unused parameter of AfterLoadGame(). - Initialize _sl_version after loading an old savegame.
|
|
Darkvater
|
r2749:e781205c9f97
|
19 years ago
|
|
(svn r3294) - Fix: use INVALID_STRING_ID instead of -1. - Fix: savegames only give back one message, show this by ignoring the first argument. Perhaps make the message more verbose in the future by adding STR_ equivalents next to the already existing debug messages.
|
|
Darkvater
|
r2694:5d1e4c76ed3e
|
19 years ago
|
|
|
|
truelight
|
r2685:a6ff7cfc7f7f
|
19 years ago
|
|
|
|
bjarni
|
r2676:cfc81c07cc6a
|
19 years ago
|
|
(svn r3218) -Feature: Multiheaded train engines will now stay in the same train This means that any user attempt to remove a rear engine will tell the user to move the front engine instead This fixes the assert when moving multiheaded engines (introduced in r3144) Note: to make old savegames use this feature, some engines might be turned around in order to link engines in pairs
-Codechange: train subtype is now a bitmask This allows fast access to info like if it is a wagon or engine and if it is in front and so on Note: savegame version bump
|
|
peter1138
|
r2670:992f15ff9b56
|
19 years ago
|
|
(svn r3212) - Waypoints/Depots: Store waypoint index in m2 for waypoints. This moves the ground type bits from m2 to m4 for waypoints and depots (leaving room for depot index in m2 in future), and moves the custom graphics ID to the waypoint struct. - Waypoints: Until now stat_id was saved but never assigned to. Instead we now save the GRFID/local index of the custom graphics so that GRF file changes can leave graphics intact.
|
|
bjarni
|
r2617:c039ce1e1eeb
|
19 years ago
|
|
(svn r3155) -Feature: [autoreplace] autoreplace can now remove cars from too long trains -Trains will now remember the length of stations it visits and sell cars when being autoreplaced if they became too long -If it needs to remove cars, then it starts from the front and sells all it can find until the train is short enough -This only works for trains, that knows the station length of the route so a full uninterrupted run is needed -a train needs 1-2 runs to detect if the shortest station is expanded -This feature can be turned on and off in the train replace window and each company can have it's own setting -NOTE: minor savegame version bump
|
|
tron
|
r2548:9570bbbdacab
|
19 years ago
|
|
(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes nothing spectacular, just some stuff, which piled up
|
|
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
|
|
Darkvater
|
r2418:5f72246ca70c
|
19 years ago
|
|
|
|
Darkvater
|
r2414:cbed0c86bdb3
|
19 years ago
|
|
|
|
Darkvater
|
r2413:15819370161d
|
19 years ago
|
|
(svn r2939) Fix racing condition when using threaded saving (last one I hope). When game is saved and you save again you get an error message (not when autosaving) and it's aborted. When a game is loaded in the meanwhile execution pauses until saving thread finishes.
|
|
Darkvater
|
r2382:4a6ac7289ed3
|
19 years ago
|
|
|
|
Darkvater
|
r2380:9736146c8fbf
|
19 years ago
|
|
|
|
tron
|
r2337:ed8afa0e33bb
|
19 years ago
|
|
|
|
tron
|
r2335:22a4692ec9de
|
19 years ago
|
|
|
|
tron
|
r2295:c68f860335d6
|
19 years ago
|
|
|
|
bjarni
|
r2293:b55e49a164c0
|
19 years ago
|
|
(svn r2817) -Codechange: [autoreplace]: moved autoreplace and autorenew to serverside -This means that one company can only have one setting for renew and replacing more clients will not fight due to different settings anymore -This is a needed step in the line to fix autoreplacing dualheaded locomotives NOTE: savegame revision bump (peter1138 + me in coop)
|
|
tron
|
r2289:dc7483870cf3
|
19 years ago
|
|
|
|
tron
|
r2286:58effb75ae88
|
19 years ago
|
|
(svn r2810) Threads may now return information when they terminate using a void*. Also add the new files to the MSVC project files.
|
|
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
|
|
tron
|
r2186:5ee653b1b5e1
|
19 years ago
|
|
|
|
tron
|
r2163:ae001e2aa5b0
|
19 years ago
|
|
|
|
tron
|
r2162:7c64e21f12f9
|
19 years ago
|
|
|
|
tron
|
r2159:2c706fe6b0a7
|
19 years ago
|
|
|