|
rubidium
|
r5469:9c38e5ce3f50
|
18 years ago
|
|
|
|
Darkvater
|
r5431:2abf239227ce
|
18 years ago
|
|
(svn r7637) -Codechange: Change ShowQueryString to use a window pointer as a parent. If the query has no parent (eg give money, rename waypoint), the global function HandleOnEditText is used.
|
|
peter1138
|
r5237:cc044906a066
|
18 years ago
|
|
|
|
peter1138
|
r5211:4adf6d7ce809
|
18 years ago
|
|
|
|
peter1138
|
r5163:a7c06b0ec769
|
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
|
|
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, ..)
|
|
KUDr
|
r5113:25ba920e6fd4
|
18 years ago
|
|
(svn r7190) -Fix: If the non-player-based _patches setting was changed on the server during MP game, the callback function was: 1. Called only on the server but not on its clients. 2. Was called before the setting change occurred (usually with no effect) 3. Received old 'p1' argument value intead of new one It could cause some MP desyncs in the future.
|
|
Darkvater
|
r5107:de0416bd4fcf
|
18 years ago
|
|
(svn r7179) -Codechange (r7173): Actually "prefer" team chat through the patch setting instead of always sending to teammate if the patch is on even if you do not have any allies. So with setting off you always send to 'all players', with setting on you send to teammates if you have any, otherwise to all players.
|
|
Darkvater
|
r5102:e4e40b269b3f
|
18 years ago
|
|
|
|
peter1138
|
r5052:aba39602e532
|
18 years ago
|
|
|
|
tron
|
r5024:612bfb3d37ce
|
18 years ago
|
|
|
|
Darkvater
|
r4939:8315d865f2fb
|
18 years ago
|
|
(svn r6926) -Codechange: Rename WWT_4 to WWT_TEXTBTN_2 and WWT_6 to WWT_INSET (credits to peter1138 for the aptly found name) -Codechange: Remove the explicit numbering from WindowWidgetTypes
|
|
KUDr
|
r4870:bd55248b4b8e
|
18 years ago
|
|
|
|
Darkvater
|
r4834:d9187a2081d2
|
18 years ago
|
|
(svn r6758) -Feature: Add a measurement tool that will show dimensions and height differences of various draggable tools (inspiration, concept and double checking by MeusH).
|
|
belugas
|
r4727:8181e87539cd
|
18 years ago
|
|
|
|
belugas
|
r4719:e1d2222eb9fb
|
18 years ago
|
|
(svn r6631) -Codechange: Use accessors for click_state. Another step toward merging XTDwidget. The only two files not converted (window.h and widget.c) will be done at the very last commit)
|
|
belugas
|
r4709:fa407dc35407
|
18 years ago
|
|
(svn r6619) -Codechange: Use accessors for disabled_state. Another step toward merging XTDwidget. The only two files not converted (window.h and widget.c) will be done at the very last commit)
|
|
belugas
|
r4634:c040de534aac
|
18 years ago
|
|
|
|
peter1138
|
r4616:6c3e63bd2e31
|
18 years ago
|
|
(svn r6474) - Add a patch option to control display of liveries, allowing none, your own, or all companies.
|
|
glx
|
r4552:bba22cd2f890
|
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.
|
|
tron
|
r4488:c0e54d74cca2
|
18 years ago
|
|
|
|
tron
|
r4444:45a8e5f3ceff
|
18 years ago
|
|
(svn r6222) Remove struct ColorList, because the names of its attributes are plain confusing All the struct holds is a simple colour gradient, so using a simple array with 8 entries is more clear Also add the names of colour the gradients as enum
|
|
tron
|
r4437:dd0f972a6eac
|
18 years ago
|
|
|
|
rubidium
|
r4431:2ce198d6cba8
|
18 years ago
|
|
(svn r6186) -Fix [FS #309]: add an override system to the dynamically determined size of steps for numeric patch settings in the 'Configure patches' GUI. The size of these steps normally about (max - min) / 50, which results in steps of 100 000 years for the start year, end year, network restart year and the year of introduction of coloured newspapers.
|
|
belugas
|
r4377:af32a089870e
|
18 years ago
|
|
(svn r6108) -NewGRF Feature: Implement currencies replacment via grf file. All properties can now be modified i.e: Introduction date for euro conversion Currency name, decimal separator, currency symbol (before or after amount) and the rate compared to the base currency, the british pound
|
|
rubidium
|
r4344:bff007ae1fd1
|
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
|
|
truelight
|
r4299:ee21d1b71ef0
|
18 years ago
|
|
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only allow certain patterns (like numbers only)
|
|
rubidium
|
r4286:835278152b0f
|
18 years ago
|
|
(svn r5916) -Cleanup: use MIN_YEAR/MAX_YEAR for the year boundaries and BASE_YEAR when comparing _cur_year with a 'full' year. -Cleanup: replace some magic '1920' values with BASE_YEAR.
|
|
rubidium
|
r4285:8d597bba823e
|
18 years ago
|
|
|
|
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
|
|
miham
|
r4211:537da689eef6
|
18 years ago
|
|
(svn r5714) Backport from branches/TGP (r5701 and r5711) -Fix: < > boxes in patch-settings didn't grey out when they hit the limit of their range -Codechange: while at it, prettyfied DrawArrowButtons() a bit -Fix: < > boxes in industry production window (when cheat enabled) had a minor glitch
|
|
Darkvater
|
r4196:729446dc8e60
|
18 years ago
|
|
|
|
KUDr
|
r3900:1c2675abec23
|
18 years ago
|
|
|
|
rubidium
|
r3888:aa900cebaacd
|
18 years ago
|
|
|
|
Darkvater
|
r3711:9ef6e38944e3
|
18 years ago
|
|
|
|
peter1138
|
r3596:700022cb5115
|
18 years ago
|
|
|
|
celestar
|
r3577:49eff73319b3
|
19 years ago
|
|
|
|
tron
|
r3491:10ed78e15d31
|
19 years ago
|
|
(svn r4342) Change the first two parameters of commands - virtual pixel coordinates of the tile to operate on - to a TileIndex Remove DoCommandByTile(), because now it does the same as DoCommand()
|
|
peter1138
|
r3342:fff75d217dbe
|
19 years ago
|
|
(svn r4126) - Feature: A new multi-lingual multi-measuring-unit system: - Replace miles/kilometres game option with a general measuring units option. - Add {POWER}, {WEIGHT}, {WEIGHT_S} and {VOLUME_S} (_S for short) tags to the language/string system. - Add SI as option for measuring units. Language file updates to use the system will come soon.
|
|
Darkvater
|
r3247:bb019798ee23
|
19 years ago
|
|
|
|
Darkvater
|
r3206:f5b4d8c4bcd7
|
19 years ago
|
|
|
|
Darkvater
|
r3131:5df094767772
|
19 years ago
|
|
(svn r3746) - [7/7] Moving the callback functions for the setting-changes from settings_gui.c to settings.c. Also enable the callback functionality through the console. - Fix a nasty bug with improper counter addition. (*i)++ and NOT *i++ when setting a patch value through the console.
|
|
Darkvater
|
r3124:56633ce4a3cb
|
19 years ago
|
|
(svn r3732) - Fix two warnings. Stupid MSVC didn't even complain :s (Thank Tron and peter1138) - NOTE! There are a few warnings left in settings_gui because tha callback functions are disabled. I still need a good place for them.
|
|
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
|
|
Darkvater
|
r3119:c3eb58663989
|
19 years ago
|
|
(svn r3723) - [5/6] Move over the console commands from settings_gui to settings where they rather belong. - Remove the restriction that the 'patch' console command can only be run from network games.
|
|
Darkvater
|
r3118:5a3c18a19d9f
|
19 years ago
|
|
(svn r3722) - [4/4] Present the game with a unified structure for the configuration-ini, saveload, console and gui representations of the settings. The last part finishes the transition with the merging of the settings_gui table(s). - Because patches are (will be in a few commits) saved, you cannot specify the order of the GUI-items in the SettingDesc tables themselves. Doing so would mean messing around with the savegame-version, or doing expensive lookups. So the GUI-tables are now just simple indeces into the original table. No more is needed since that table contains all information - The only change in functionality is that the stepsize has been automated. It is calculated from the minimum and maximum values such that within 50 clicks you will have gone from one end to the other if scrolling. - The GUI has kept its flags intact. These are: SGF_0ISDISABLED: the variable might have a domain higher than zero, but a special value of nul is used as telling that feature is disabled. SGF_NOCOMMA: represent the number without any thousand-seperators SGF_MULTISTRING: internally the variable is a number, but its representation is a string based on a simple offset. SGF_NETWORK_ONLY: this setting can only be changed during network games SGF_CURRENCY: the variable represents money and will be shown in the local currency - - NOTE! The game is not compilable after this commit (because console hooks have not been updated)
|
|
Darkvater
|
r3107:9850c940ee17
|
19 years ago
|
|
|
|
tron
|
r2952:e97f823d2dbe
|
19 years ago
|
|
|
|
Darkvater
|
r2916:04b29c805eb5
|
19 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.
|
|
tron
|
r2817:7ad46034031f
|
19 years ago
|
|
|
|
Darkvater
|
r2776:b4aa022e858b
|
19 years ago
|
|
|
|
tron
|
r2767:8b2ae5bad046
|
19 years ago
|
|
(svn r3313) Remove GPMI related changes from trunk Revisions in detail: 2542, 3226 (partial), 3229, 3231, 3232, 3238, 3242-3245, 3251, 3253, 3260, 3263, 3265, 3266, 3269, 3277, 3278, 3279, 3283 (partial), 3304, 3305, 3306
|
|
tron
|
r2766:b664c382cd2a
|
19 years ago
|
|
|
|
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.
|
|
peter1138
|
r2725:4ee74e2f100e
|
19 years ago
|
|
|
|
truelight
|
r2696:2c5f2d1dbfe3
|
19 years ago
|
|
(svn r3238) -Fix: always save if you want GPMI-based AIs, this on request by Darkvater, so we can, in the future, save patch options in savegames without any problems.
|
|
truelight
|
r2687:bd59b891729e
|
19 years ago
|
|
|
|
truelight
|
r2682:86af293a8bfc
|
19 years ago
|
|
(svn r3224) -Add: Allow the NewAI to work in Multiplayer Games (switchable via patch settings, off by defaut). An other step to AIScripts. WARNING: this is still highly experimental and has known bugs!
|
|
tron
|
r2680:1d715d8816c6
|
19 years ago
|
|
|
|
tron
|
r2648:6935682387d2
|
19 years ago
|
|
|
|
tron
|
r2643:318b2a3bc42e
|
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
|
r2631:d39f0cdd1c56
|
19 years ago
|
|
(svn r3173) Use the trinary operator and switch to improve readability Also align short cases nicely
|
|
peter1138
|
r2619:14b1b02e2787
|
19 years ago
|
|
|
|
tron
|
r2549:1549d4b2ba28
|
19 years ago
|
|
(svn r3078) Some more stuff, which piled up: - const, whitespace, indentation, bracing, GB/SB, pointless casts - use the trinary operator where appropriate - data types (uint[] -> AcceptedCargo, ...) - if cascade -> switch - if (ptr) -> if (ptr != NULL) - DeMorgan's Law - Fix some comments - 0 -> '\0', change magic numbers to symbolic constants
|
|
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
|
|
tron
|
r2468:320ed1476ffd
|
19 years ago
|
|
|
|
peter1138
|
r2456:aad40f8d9c89
|
19 years ago
|
|
|
|
Darkvater
|
r2454:cd05debe1a55
|
19 years ago
|
|
(svn r2980) - Add some comments to some setting enums, and fix a 'const' warning. - Add settings.h to VS.NET project.
|
|
tron
|
r2307:c00be2ee9101
|
19 years ago
|
|
|
|
tron
|
r2306:83bf5acd9e01
|
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
|
r2291:d8cfcbdcaa29
|
19 years ago
|
|
|
|
celestar
|
r2231:dc3f5454934b
|
19 years ago
|
|
|
|
tron
|
r2201:660b847c7f07
|
19 years ago
|
|
|
|
celestar
|
r2187:60cea7c48bf4
|
19 years ago
|
|
(svn r2702) -Codechange: Cleaned up the sprite code and replaced many magic numbers by enums. There remains work in gfx.c to move the "transparency" and "recolor" bits around to make space for more sprites. However, 2800 additional sprites can now be loaded. There also remains cleanup and Doxygen work on many of the header files.
|
|
tron
|
r2186:5ee653b1b5e1
|
19 years ago
|
|
|
|
tron
|
r2163:ae001e2aa5b0
|
19 years ago
|
|
|
|
tron
|
r2159:2c706fe6b0a7
|
19 years ago
|
|
|
|
tron
|
r2140:efb49af98a17
|
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
|
r2064:5f15fe050577
|
19 years ago
|
|
(svn r2573) Codechange: Removed WDF_RESTORE_DPARAM, it's not needed with the new string system. Also fixed a bug introduced in r2564, forgot to remove 4 global variables in network_gui.c.
|
|
ludde
|
r2055:3f0149453249
|
19 years ago
|
|
(svn r2564) Fix: Fixed conceptual issue in network_gui.c. AllocateName is not meant to be used by GUI-code, because it modifies the "game-state". Added a way to bind a C-string to an openttd string which doesn't modify the game state.
|
|
ludde
|
r2044:17a81bf31939
|
19 years ago
|
|
(svn r2553) - Fix: [pathfinding] Remove old-old train pathfinder. Enhanced old pathfinder. - Penalties for red signals and for slopes. - Increased the search depth to work better with large train networks.
|
|
hackykid
|
r2008:5e435ad4c8e4
|
19 years ago
|
|
(svn r2516) - Feature: [pbs] Implement path-based-signalling. This allows multiple trains within the same signal block, provided their paths dont intersect. For this the block must have all exit and entry signals be pbs signals. Place these by ctrl-clicking 4 times on a normal signal. - Feature: [pbs] Implement autoplacement of pbs blocks, when a block has an entry and an exit pbs signal, covert the entire block to pbs. Can be turned off in the patch settings. - Feature: [pbs] Allow showing of reserved status by making the tracks darker, when the pbs debug level is at least 1.
|
|
hackykid
|
r1938:bf28411019cf
|
19 years ago
|
|
|
|
Darkvater
|
r1891:c5c5466afa35
|
19 years ago
|
|
|
|
Darkvater
|
r1806:b8cc32d167b3
|
19 years ago
|
|
(svn r2310) - Fix: Game would crash if you full-screened with the 'fullscreen' button than chose a resolution from the dropdown box that was no longer valid. Big thanks to DaleStan for track down the crashing bug. - Fix: There would be duplicate entries in the resolutions dropdown box. Copy SDL method or removing duplicates and sort the list. - Feature: in the settings menu, you don't have to click on the arrows anymore, clicking on the dropdown box itself has the same effect. Consistent with other dropdowns in the game
|
|
Darkvater
|
r1805:fc29191fa6bf
|
19 years ago
|
|
|
|
Darkvater
|
r1803:44dc9c8ab616
|
19 years ago
|
|
(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.
|
|
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
|
r1781:5dc5c12a19c3
|
19 years ago
|
|
(svn r2285) - Codechange: Fix up some of the missing things from server-checking; namely bridge-type, bridge-length, dragged end-tile (bridge/station), station_spread - Fix: [ 1197256 ] max station spread patch < 7 does not work. Station spread was not taking into account when not using drag&drop. Fix this up, and add a callback to the settings window to immediately reflect the changes.
|
|
Darkvater
|
r1759:bcc556901a52
|
19 years ago
|
|
|
|
Darkvater
|
r1756:c12b9bb1d24e
|
19 years ago
|
|
|
|
Darkvater
|
r1741:a92d7224660c
|
19 years ago
|
|
|
|
Darkvater
|
r1739:7cb77e0b4dd1
|
19 years ago
|
|
(svn r2243) -Fix: Rework of console. Use 'help command|variable' to get help about it. You can assign variables with =, ++, --, or just new value. Console parser is now lenient towards typed spaces, and more robust in general (at least readable). Removed the 'set' command, instead implemented all such variables as 'variables'. - Some variables are really special and cannot be assigned normally, use their callback procedure for assignment/querying. This commit also obsoletes "[1172804] Console set command cleanup"
|