Commit Graph

34657 Commits (c9c3e6f5748f3a886457b34e7ce386ac5ef0969b)

Author SHA1 Message Date
J0an Josep 8975318286 Fix 2a868b9f3b8e3b5f8b9e5f728f628ec88fd5e3ad: Expose widgets and windows to scripts and fix documentation. 6 years ago
translators 0bca1c53c9 Update: Translations from eints
spanish (mexican): 19 changes by Absay
6 years ago
Jonathan G Rennison 6a3d411fa1 Fix: Use after free in CmdBuildTunnel (#6856)
Use after free could occur when when excavating far end
removed multiple NewGRF objects
6 years ago
translators 38443bab0b Update: Translations from eints
catalan: 2 changes by juanjo
russian: 9 changes by Lone_Wolf
6 years ago
translators 2f5cb9e4fc Update: Translations from eints
catalan: 63 changes by juanjo
6 years ago
translators 6a6ffddc5f Update: Translations from eints
greek: 46 changes by kyrm
italian: 44 changes by lorenzodv
6 years ago
Niels Martin Hansen 2a868b9f3b Feature: Framerate display window (#6822)
Frame rate and various game loop/graphics timing measurements and graphs. Accessible via the Help menu, and can print some stats in the console via the fps command.
6 years ago
Charles Pigott 63898f61b0 Codechange: Rearrange struct packing defines and make MinGW use _Pragma pack style 6 years ago
Jonathan G Rennison 3ed5d8f09f Add mechanism to lock wait times in timetable against autofill/automate changes 6 years ago
translators 93469a92f2 Update: Translations from eints
korean: 3 changes by kevinhigh
6 years ago
translators 3014213186 Update: Translations from eints
malay: 11 changes by eidan_shafie
6 years ago
Jonathan G Rennison 42505f3532 Merge branch 'custom_bridgeheads' into jgrpp 6 years ago
Jonathan G Rennison 176fd2180b Fix regression preventing road vehicles from leaving tunnels 6 years ago
Jonathan G Rennison e67cd04596 Merge branch 'custom_bridgeheads' into jgrpp
# Conflicts:
#	src/train_cmd.cpp
6 years ago
Jonathan G Rennison 6ca0fcbae2 Use head tile track pieces in Train::GetVehicleTrackdir for trains in wormhole 6 years ago
Jonathan G Rennison a7e767d766 Fix 90° turns being wrongly detected across bridges of non-zero length
This prevented reservations
6 years ago
translators f70544074c Update: Translations from eints
latin: 19 changes by Supercheese
english (us): 19 changes by Supercheese
6 years ago
translators 85ef5acf29 Update: Translations from eints
malay: 10 changes by eidan_shafie
spanish (mexican): 9 changes by Absay
6 years ago
translators ae13f88c12 Update: Translations from eints
malay: 9 changes by eidan_shafie
6 years ago
Jonathan G Rennison 6740a9a470 Merge branch 'custom_bridgeheads' into jgrpp
# Conflicts:
#	docs/landscape.html
#	src/bridge_map.h
#	src/pbs.cpp
#	src/saveload/company_sl.cpp
#	src/saveload/extended_ver_sl.cpp
#	src/settings_type.h
#	src/signal.cpp
#	src/train_cmd.cpp
#	src/tunnel_map.h
#	src/tunnelbridge_cmd.cpp
#	src/tunnelbridge_map.h
#	src/vehicle.cpp
#	src/viewport.cpp
6 years ago
Jonathan G Rennison 77362b829a Initial support for rail custom bridge heads 6 years ago
Jonathan G Rennison dfd3e3dcaa Add track func: TrackdirToDirection 6 years ago
Jonathan G Rennison 8f574881e8 Add direction func: DirToDiagDirAlongAxis 6 years ago
translators 8bbf06e0d4 Update: Translations from eints
belarusian: 7 changes by KorneySan
russian: 7 changes by Lone_Wolf
6 years ago
translators 5a11c6a036 Update: Translations from eints
russian: 6 changes by Lone_Wolf
6 years ago
Ingo von Borstel 88b77a7883
Fix #6844: Compile warning when compiling dedicated server (#6849) 6 years ago
translators 2ed0e30a8f Update: Translations from eints
malay: 37 changes by eidan_shafie
6 years ago
Jonathan G Rennison 2419974f19 Merge branch 'signal_tunnels_bridges' into jgrpp
# Conflicts:
#	src/saveload/afterload.cpp
#	src/saveload/extended_ver_sl.cpp
6 years ago
translators f86dc6867e Update: Translations from eints
serbian: 37 changes by Srbija
6 years ago
Jonathan G Rennison bce0ce85b3 Fix comment on setting update for 0.1 increment town cargo scale factor 6 years ago
translators 210afa3701 Update: Translations from eints
serbian: 23 changes by Srbija
greek: 6 changes by Jubilee
russian: 1 change by Lone_Wolf
danish: 7 changes by filli1303
finnish: 21 changes by ln
6 years ago
Jonathan G Rennison f86dd1010c Fix assertion failure on cancel depot/service in vehicle list window
Fixes #61
6 years ago
Jonathan G Rennison 491a884944 Fix: ALL_CARGOTYPES mask constant was 32 instead of 64 bits (#6845)
NUM_CARGO and CargoTypes were increased from 32 to 64 cargoes/bits
respectively in commit 11ab3c4ea2
6 years ago
Jonathan G Rennison 3330e4cef8 Merge branch 'cargo_type_order' into jgrpp
# Conflicts:
#	src/pathfinder/yapf/yapf_common.hpp
#	src/saveload/extended_ver_sl.cpp
#	src/saveload/order_sl.cpp
#	src/saveload/station_sl.cpp
#	src/track_func.h
6 years ago
Jonathan G Rennison 00b1fe6246 Cargo type orders: Add support for 64 cargo types 6 years ago
Jonathan G Rennison 0ae32838ea Merge branch 'save_ext' into cargo_type_order
# Conflicts:
#	src/core/smallstack_type.hpp
6 years ago
translators 4a35409e0f Update: Translations from eints
italian: 1 change by lorenzodv
6 years ago
Jonathan G Rennison 373ff3dd4e Merge branch 'master' into save_ext
# Conflicts:
#	src/saveload/saveload.cpp
#	src/table/settings.h.preamble
6 years ago
Jonathan G Rennison 5770f1407a Signals on bridges: Shrink M2 simulated signal states field 6 years ago
translators 8f278b3405 Update: Translations from eints
croatian: 4 changes by VoyagerOne
6 years ago
Niels Martin Hansen 6cf4d7d3ef Fix: Put last SVN revision back in NewGRF version number (#6843)
This is necessary to be compatible with some Game Scripts that might trigger compatibility modes if the SVN revision part is wrong. Potentially some NewGRFs might also be affected.

See for example [SuperLib's Helper class](https://dev.openttdcoop.org/projects/superlib/repository/entry/helper.nut#L280), containing this function:

    function _SuperLib_Helper::HasWorldGenBug()
    {
    	local version = _SuperLib_Helper.GetOpenTTDVersion();
    
    	if (version.Major == 0 || (version.Major == 1 && version.Minor <= 3)) {
    		return version.Revision < 25339;
    	} else {
    		return version.Revision < 25305;
    	}
    }

If this function sees a Revision value of zero, it might trigger a workaround not required, causing a regression in scripts dependent on this. The MinimalGS example, for one, will trigger this.
6 years ago
J0anJosep 4189cb85ba Codechange: Use HasTracks with TrackStatus. 6 years ago
J0anJosep d01c09fb73 Codechange: Use HasTrack(dir) to improve code readability. 6 years ago
J0anJosep 31ac11bddb Codechange: Increase readability of track functions and pathfinders. 6 years ago
Juanjo 85ebe20a76 Cleanup: Unnecessary assignation on FollowTileExit(): done previously on the function. 6 years ago
Juanjo 6a9df285d0 Codechange: Separate an assertion. More information if assert is triggered. 6 years ago
Charles Pigott 2aacddd412 Codechange: lengthof is not defined for runtime-length strings, use sizeof instead 6 years ago
Charles Pigott 5f86e1a390 Codechange: Silence -Wclass-memaccess warnings with GCC8 6 years ago
Charles Pigott e1b9187e9b Codechange: Add initialisation values for all CompanyProperty attributes 6 years ago
Michael Lutz dbfc417e65 Fix: [Win32] Garbage in OS window title if branch name was too long.
This was caused by a missing \0-character on reaching the buffer limit.
6 years ago
translators 6c02c19931 Update: Translations from eints
italian: 3 changes by lorenzodv
6 years ago
Jonathan G Rennison 79ca5c8b7d Merge branch 'custom_bridgeheads' into jgrpp 6 years ago
Jonathan G Rennison 25af12814b Fix double-adding of road tunnel/bridge infra counts when changing owner 6 years ago
PeterN 11ab3c4ea2
Change: Increase cargo type limit to 64. 6 years ago
Jonathan G Rennison 4d1bd8e4b4 Merge branch 'master' into jgrpp
# Conflicts:
#	src/genworld_gui.cpp
#	src/gfx.cpp
#	src/lang/korean.txt
#	src/linkgraph/linkgraph_gui.cpp
#	src/linkgraph/linkgraph_gui.h
#	src/music.cpp
#	src/table/settings.ini
#	src/town_cmd.cpp
#	src/train_cmd.cpp
6 years ago
translators 7eca4a9b47 Update: Translations from eints
french: 5 changes by glx
6 years ago
Jonathan G Rennison b48a6ef368 Revert "Revert "Add: [Win32] Uniscribe configure options for MinGW targets.""
This reverts commit ca4a4869a2.
6 years ago
Niels Martin Hansen 336d6cab68 Fix 6298b96: Playlist window not drawing playlist
Copy-paste error in change to remove C++11 usage...
6 years ago
Pavel Stupnikov 9fc3212679 Feature #6397: Keep town growth rate in sync with house count
Takes some code and ideas from #6378 patch, but doesn't change anything GS-related.
6 years ago
Jonathan G Rennison dc8fff2c4d Add: Hover tool-tips to cargo dest flow legend window.
This is to improve the usability of the window.
The two-letter abbreviations are not always clear, in particular
when using a large number of cargoes.
The company colours can be ambiguous when there are a large
number of companies.
6 years ago
Niels Martin Hansen 6298b96571 Change: Modernise music control logic implementation (#6839)
Rewrite of almost the entire music control logic to a more modern style, hopefully also easier to understand. The old playlist handling made it look like arcane magic, which it doesn't have to be.

- Playlists are now stored in std::vector of objects instead of arrays of bytes with magic sentinel values, that need to be rotated around all the time. Position in playlist is stored as a simple index.
- The theme song is now reserved for the title screen, it doesn't play on any of the standard playlists, but is still available for use on custom playlists.
- When the player enters/leaves the game from the main menu, the music always restarts.
- Playback state (playing or not) is kept even if music becomes unavailable due to an empty playlist (or an empty music set), so it can restart immediately if music becomes available again.
- The shuffle algorithm was changed to a standard Fisher-Yates.
- Possibly better behavior when editing a custom playlist while it's playing.
- Custom playlists should be compatible.
- Framework for supporting custom playlists with songs from multiple music sets.
6 years ago
translators 889175f7ad Update: Translations from eints
croatian: 1 change by VoyagerOne
italian: 1 change by lorenzodv
french: 1 change by glx
6 years ago
Jonathan G Rennison 458bc90678 Fix: Poor contrast in cargo dest flow legend window cargo labels.
Select foreground colour depending on the brightness of the background.

Previously all cargo labels were rendered using black text, even
the background cargo colour was dark/black.
As an example: FIRS coal was black text on a black background.
6 years ago
Alberth 7fed8fe004 Fix #6553: Make viewport button text unambiguous. 6 years ago
Niels Martin Hansen 4fb76db42f Feature #986: Automatic save when losing connection to a network game 6 years ago
Alberth289346 11ba094582 Feature #4186: Append '(City)' behind cities in the town directory (sbr) 6 years ago
Alberth 1a5a95aa49 Fix: Make switch on MD5File::ChecksumResult complete to avoid compiler warning 6 years ago
translators 21ac11548a Update: Translations from eints
korean: 1 change by telk5093
6 years ago
Jonathan G Rennison ef0a458ab6 Add go to depot and sell vehicle orders
Controlled by a setting (default off)
6 years ago
kiwitreekor f00930fa52 Merge pull request #59 from kiwitreekor
Squashed commit of the following:

commit 0497399a03
Author: kiwitreekor <kiwitreekor@gmail.com>
Date:   Thu Jun 21 22:10:27 2018 +0900

    Update korean.txt

commit c4d60bc9e9
Merge: 27729f1 0ac92b8
Author: kiwitreekor <kiwitreekor@gmail.com>
Date:   Thu Jun 21 00:10:11 2018 +0900

    Merge branch 'jgrpp' into jgrpp

commit 27729f10fc
Author: kiwitreekor <kiwitreekor@gmail.com>
Date:   Thu Jun 21 00:02:20 2018 +0900

    Update Korean Translation

commit 1e67b51ed8
Author: kiwitreekor <kiwitreekor@gmail.com>
Date:   Sat Jan 13 21:33:04 2018 +0900

    Add files via upload

commit 9ee0445edd
Author: kiwitreekor <kiwitreekor@gmail.com>
Date:   Sat Jan 13 21:30:43 2018 +0900

    upload mistake

commit 21bc4d9db1
Author: kiwitreekor <kiwitreekor@gmail.com>
Date:   Sat Jan 13 21:27:51 2018 +0900

    Fix Mistypo

commit 716b451d8b
Author: kiwitreekor <kiwitreekor@gmail.com>
Date:   Sat Jan 13 21:25:15 2018 +0900

    Update Korean Translation
6 years ago
Jonathan G Rennison 670ed0de5b Fix double-accounting of bidi signals on bridge/tunnel during owner change 6 years ago
Jonathan G Rennison fd08259698 Fix fast path being unconditionally disabled in save/load whole map 6 years ago
Jonathan G Rennison 0ac92b8236 Update current order unload type and cargo type load/unload on modify order 6 years ago
Jonathan G Rennison e5a8dbee35 Through load: Fix handling of load if available cargo type orders 6 years ago
Jonathan G Rennison 2586096ef6 Merge branch 'tracerestrict-sx' into jgrpp
# Conflicts:
#	src/pbs.cpp
#	src/saveload/extended_ver_sl.cpp
6 years ago
Jonathan G Rennison e9f5d80440 Trace restrict slots: Add support for slot operations at PBS end signal 6 years ago
Jonathan G Rennison 1b4db7d86c Trace restrict: Add wait at entrance PBS for reservation ending here 6 years ago
Jonathan G Rennison 751f379cdd Trace restrict: Fix wrong position of safeguards header include 6 years ago
Michael Lutz ae467ffc8a Fix: Scale default FreeType font size selection by UI zoom level. 6 years ago
Jonathan G Rennison e82ccad052 Merge branch 'signal_tunnels_bridges' into jgrpp
# Conflicts:
#	src/pbs.cpp
#	src/saveload/extended_ver_sl.cpp
#	src/settings_gui.cpp
#	src/settings_type.h
#	src/signal.cpp
#	src/table/settings.ini
#	src/train_cmd.cpp
#	src/tunnelbridge.h
6 years ago
Jonathan G Rennison 814f9f7e0f Implement bidirectional mode for signals on bridges/tunnels 6 years ago
Jonathan G Rennison d03139b241 Use separate bits for signals on bridge/tunnel entrance/exit red/green states 6 years ago
translators 4099506093 Update: Translations from eints
chinese (simplified): 5 changes by xiangyigao
6 years ago
Michael Lutz 574f547aca Fix 768a31b: When cascading to another text layouter, clear the old font run state left over from the previous (failed) layout attempt. 6 years ago
Niels Martin Hansen 5ab06ef8a3 Fix: Don't complain if CAT music files are missing entirely
Just complain if an index into a CAT file that exists is invalid.
6 years ago
Niels Martin Hansen a1b7812c7e Change: Improved looping of title song 6 years ago
Niels Martin Hansen 11a846e3d5 Change: Compensate for MIDI transmission time when skipping start of song 6 years ago
Niels Martin Hansen 276192f714 Change #6684: Cutting point overrides for music base sets
This improves bad looping of title screen song from Windows TTD, and fixes
a long silence at the end of "Can't get there from here" from Windows TTD.
6 years ago
Niels Martin Hansen 836d25e738 Codechange: Address some MSVC compiler warnings 6 years ago
translators f5f2125238 Update: Translations from eints
russian: 11 changes by Lone_Wolf
6 years ago
PeterN c2a7728084
Fix: Prevent ships moving into docks after finishing (un)loading. (#6791) 6 years ago
Jonathan G Rennison ca4a4869a2 Revert "Add: [Win32] Uniscribe configure options for MinGW targets."
Revert "Change: [Win32] Use Uniscribe instead of ICU for text caret handling."
Revert "Change: [Win32/MSVC] Make the Uniscribe text layouter the windows default and remove usage of the deprecated ICU layout libs."
Revert "Add: [Win32] Text layout using the native Windows Uniscribe library."
Revert "Codechange: Move ParagraphLayouter-specific functions into factory classes instead of relying on overloads."
Revert "Add: [Win32] Native natural sort implementation."

This reverts commit cd966f3810.
This reverts commit eec3f40931.
This reverts commit 33829dc6ab.
This reverts commit 768a31bfe3.
This reverts commit a4278c302b.
This reverts commit f4394debdc.

This is to fix various problems and crashes with text rendering
and font handling on Windows.

See #58.
6 years ago
translators 7ae1e3e1e2 Update: Translations from eints
korean: 15 changes by telk5093
greek: 4 changes by Jubilee
6 years ago
Jonathan G Rennison 21040dc00b Implementing sending server GRF info list response in multiple packets
Add/adjust GRF info message logging
6 years ago
Jonathan G Rennison 847a46d107 Fix assertion failure in RequestContentList with many GRFs 6 years ago
Jonathan G Rennison 2c7b96cf1e Merge branch 'save_ext' into jgrpp 6 years ago
Jonathan G Rennison a3156804c5 Fix narrowing/type conversion warning on big endian platforms 6 years ago
Jonathan G Rennison c5954fd1bd Fix syntax errors in saveload_buffer.h on strict pointer alignment platforms
Fixes #57
6 years ago
translators 470ed2643e Update: Translations from eints
croatian: 4 changes by VoyagerOne
french: 3 changes by glx
polish: 2 changes by McZapkie
6 years ago
Jonathan G Rennison f2987854c7 Merge branch 'master' into jgrpp 6 years ago
translators 20b0f0f90b Update: Translations from eints
italian: 3 changes by lorenzodv
6 years ago
Jonathan G Rennison 71450881fc Codechange: Avoid call to memcpy using null pointer in TooltipsWindow constructor
Strictly speaking, calling memcpy with src as a nullptr is undefined behaviour
and the optimiser is entitled to delete any null ptr checks which occur afterwards.
This removes the warning emitted by UndefinedBehaviorSantizer.
6 years ago
Jonathan G Rennison 2bd6c9ae95 Change "Base music set song missing..." debug message to level 1 6 years ago
Jonathan G Rennison a732dc440a Fix use of %zu in debug format strings, which isn't supported on Windows 6 years ago
Jonathan G Rennison 8e9d68048a Merge branch 'master' into jgrpp
# Conflicts:
#	src/string.cpp
6 years ago
Jonathan G Rennison 55083a0f65 Merge branch 'save_ext' into jgrpp 6 years ago
Jonathan G Rennison 3caf92c514 Fix default for orderproc not being set in table/win32_settings.ini 6 years ago
Michael Lutz eec3f40931 Change: [Win32] Use Uniscribe instead of ICU for text caret handling.
This removes the need for the ICU lib on Windows.
6 years ago
Michael Lutz 768a31bfe3 Add: [Win32] Text layout using the native Windows Uniscribe library.
Uniscribe is sometimes producing different results compared to ICU, especially
when RTL and LTR content is mixed. Comparing the results to other programs
(like editors or web browsers) leads me to believe that the result are at least
not worse than ICU and possibly better.
6 years ago
Michael Lutz a4278c302b Codechange: Move ParagraphLayouter-specific functions into factory classes instead of relying on overloads. 6 years ago
Michael Lutz f4394debdc Add: [Win32] Native natural sort implementation. 6 years ago
Jonathan G Rennison 8f25bbc93c Fix use of HasBit beyond field width in ShowDropDownMenu masks 6 years ago
translators 2b662b448c Update: Translations from eints
french: 1 change by glx
6 years ago
Jonathan G Rennison b5dea7f236 Fix undefined behaviour in Vehicle destructor 6 years ago
Jonathan G Rennison e1fb35b16f Fix undefined behaviour when left-shifting negative values by casting to unsigned
This silences warning spam from UndefinedBehaviorSanitizer.
6 years ago
Jonathan G Rennison 6573a67b69 Change window allocation/destruction to avoid undefined behaviour
Create a new window base class which holds the front/back pointers
and the window class.
This fixes the voluminous warning spam about deleted windows when using
UndefinedBehaviorSanitizer.
6 years ago
Alexis 25dbc6542c Fix #6659: Bus stations can be demolished when not in demolish mode (#6815)
For Bus and Road stations only, if you are in demolish mode and click on the station
without releasing the button. Then you cancel demolish mode with R key.
Finally you release the mouse button. The station was demolished, instead of being built.

The demolish mode was not checked when mouse up event occured.
6 years ago
Jonathan G Rennison 0bd1022238 Codechange: Change element type used for rail type usage stats array in SetDefaultRailGui
The array is rail type sized in terms of number of elements.
Each element should be a unsigned integer, not a rail type itself.
This fixes runtime warnings reported by UndefinedBehaviorSanitizer.
6 years ago
Jonathan G Rennison d8ab61cab3 Change type of track bits mask in MaskWireBits
This is to fix warnings from UndefinedBehaviorSanitizer.
6 years ago
Jonathan G Rennison 18d00ff47e Avoid using memcpy from null pointer in TooltipsWindow constructor 6 years ago
Jonathan G Rennison c36c5ac851 Tag NewGRF unaligned memory load in StationChangeInfo 6 years ago
Jonathan G Rennison 8f7e9d70ca Fix wrong type used for rail usage stats array in SetDefaultRailGui
This fixes runtime warnings reported by UndefinedBehaviorSanitizer.
6 years ago
Peter Nelson 408cee123d Fix: One-way roads could be over-built by road stops (regardless of road owner.) 6 years ago
Jonathan G Rennison fd4d9591c1 Merge branch 'save_ext' into jgrpp 6 years ago
Jonathan G Rennison 616cbf580a Use unaligned typedefs in unaligned save/load accessors 6 years ago
Jonathan G Rennison f05ca1ba91 Merge branch 'cpp-11' into save_ext 6 years ago
Jonathan G Rennison 183a5cb114 Add unaligned uint 16, 32, 64 typedefs 6 years ago
Jonathan G Rennison 6862343eb3 Fix wrong type cast in Apple BSWAP64 macro 6 years ago
Niels Martin Hansen a8080f14a9 Change: DOS music loading for non-Windows music drivers 6 years ago
Niels Martin Hansen 458e441a4c Codechange: Make FioCreateDirectory public 6 years ago
Niels Martin Hansen e2fa4b71c6 Feature: Console command to dump decoded music to .mid file 6 years ago
Niels Martin Hansen 921101ed06 Feature: Baseset music for TTD DOS and TTO data 6 years ago
Niels Martin Hansen 2ae9df7248 Feature: Decoder for DOS version music
This is based on reverse-engineering the TTD DOS driver for General MIDI music.
6 years ago
Niels Martin Hansen f946b3da56 Codechange: Pass a MusicSongInfo struct instead of bare filename to music drivers.
Preparation for later extending the info passed to music drivers.
6 years ago
Jonathan G Rennison 58ccafbf1d Debug: Add vehicle_flags and cargo_payment to veh flags dump 6 years ago
Jonathan G Rennison a8cfc9fe90 Debug: Add vehicle index and flag dump to NewGRF debug window 6 years ago
Jonathan G Rennison 943f4fdabb Debug: Add train and RV flags to scope info dump
Move flag dumping to separate function
6 years ago
translators 1c2d29e1a3 Update: Translations from eints
italian: 1 change by lorenzodv
6 years ago
Jonathan G Rennison d2d8a86814 Add setting: station rating waiting time tolerance depends on cargo class 6 years ago
PeterN eaa32f5ad5
Change: Use name of cargo instead of Passengers/Mail in town statistics. (#6801)
* Change: Use name of cargo instead of Passengers/Mail in town statistics.
* Cleanup: Remove strings from all language files.
6 years ago
Michael Lutz b91e85003e Fix: Theoretical string overflow when building the cargo acceptance list for the land info window. 6 years ago
Jonathan G Rennison 534f23d1b7 Fix through load with multi-head engines 6 years ago
Jonathan G Rennison 016f0bdfaf Through load: Fix getting and checking station veh/tile when leaving station 6 years ago
Jonathan G Rennison 40c7ccd6e6 Merge branch 'enhanced_viewport_overlay' into jgrpp
# Conflicts:
#	src/saveload/extended_ver_sl.cpp
6 years ago
Jonathan G Rennison 9376dc7089 Change viewport plan save format
The previous format stored sparse keys in a non-sparse array chunk,
which resulted in a significant savegame size penalty.
6 years ago
Jonathan G Rennison 03b0931c57 Merge branch 'save_ext' into jgrpp
# Conflicts:
#	src/debug.cpp
#	src/saveload/saveload.cpp
6 years ago
Jonathan G Rennison decd749d30 Merge branch 'master' into save_ext 6 years ago
Jonathan G Rennison 51e9cc6695 Log save/load chunk sizes at sl debug level 3 6 years ago
cirdan c06c929771 Remove unused ChunkType flag CH_AUTO_LENGTH
CH_AUTO_LENGTH is no longer used anywhere, so remove all code
that depends on it.

(cherry picked from commit 9c620d9de5d45b78f7d992d6b3897009fe988d86)
(cherry picked from commit 4a19babf9e)
6 years ago
cirdan 4134b81af0 Remove save-only autolength flag from economy chunk handlers
CH_AUTO_LENGTH is only used when saving chunks; it makes no sense
to set it for chunks without a save handler.

(cherry picked from commit 8b2fe11d8491fb5f3b9bd7dd5344a0956817e41c)
(cherry picked from commit ec157b4a66)
6 years ago
Jonathan G Rennison 4007338280 Clear VF_CARGO_UNLOADING flag from vehicles with no cargo_payment
Bump train_through_load savegame version
6 years ago
Jonathan G Rennison 5609394b4e Through load: Fix handling of full-load orders 6 years ago
Jonathan G Rennison ec8ad55bb5 Clear all VF_CARGO_UNLOADING flags when leaving station 6 years ago
Jonathan G Rennison 777151c34d Station rating: Track last visited vehicle type separately per-cargo 6 years ago
Jonathan G Rennison 41c1a396ed Changes to fix issues with cargo payment handling in through load 6 years ago
Jonathan G Rennison a33153979e Add scope info logging to LoadUnloadVehicle 6 years ago
Jonathan G Rennison 4aa211e454 Merge branch 'crashlog_improvements' into jgrpp 6 years ago
Jonathan G Rennison bb8c18b017 Add scope info logging to LoadUnloadStation 6 years ago
Jonathan G Rennison faf4cdc0f4 Scope info: Add station/waypoint info dumper 6 years ago
Jonathan G Rennison f2072319cb Add autosave_on_network_disconnect setting to GUI 6 years ago
Jonathan G Rennison 7559db2bbb Merge remote-tracking branch 'nielsmh/bug986' into jgrpp 6 years ago
Jonathan G Rennison d0daffe312 Linkgraph overlay: Ensure line/dot draw order is same in incremental mode
Ensure that sort order is maintained
6 years ago
Alexander Weiss 2406500140 Fix: [OSX] Minor 2D scrolling fixes (#6793)
* Codechange: Check for scrollwheel_scrolling first when scrolling viewport instead of first setting normal values and then overwriting them.

* Fix #6558: [OSX] Reset 2D scrolling values when not scrolling to prevent unintended window focus changes

* Change: [OSX] Include initial scrolling movement when using 2D scrolling to make it more responsive

* Fix: [OSX] 2D scrolling not working when setting viewport scroll behaviour to use left mouse button
6 years ago
Jonathan G Rennison e6e93d40e8 Station flow stat save/load performance improvement
Avoid use of SlObject in inner loop
6 years ago
Jonathan G Rennison 6187517429 Add whole-map savegame chunk
This is to avoid haveing to do many passes to save/load map
6 years ago
Jonathan G Rennison 159909f4b1 Merge branch 'save_ext' into jgrpp
# Conflicts:
#	src/saveload/saveload.cpp
6 years ago
Jonathan G Rennison aae7806d5d Move save/load ReadBuffer and MemoryDumper to separate header
Add static accessors
6 years ago
Jonathan G Rennison bbec436a74 Change SlAutolength to only call proc once 6 years ago
innocenat 7c4bd7d3a3 Add variable std::vector save type
SL_VEC in the game currenty only support SlRefType, not VarType. This add another save type, SL_VARVEC, to support saving std::vector with POD type. It supports all integer type.
(cherry picked from commit 2895b1921d)

Fix bug in new SL_VARVEC save/load code

(cherry picked from commit 59554a5dd2)
6 years ago
Jonathan G Rennison c71ed22e7a Save/memory dumper performance improvements 6 years ago
Jonathan G Rennison 3b83a9e186 Performance improvements to savegame loading 6 years ago
Jonathan G Rennison 8404afd40f Merge branch 'cpp-11' into save_ext 6 years ago
Jonathan G Rennison 9ca4e915ba Add 64 bit byte swapping function 6 years ago
Jonathan G Rennison 641e877441 Change grfmsg to be a macro which checks the debug level first
This is to avoid doing a sprintf when the result will be thrown away
6 years ago
Alexander Weiss 3e910a5969 Change: [OSX] Disable macOS Sierra's automatic tab feature 6 years ago
Michael Lutz ce51e54d26 Change: [Win32] Parse and load DLS files for the DirectMusic driver without relying on high-level functions. 6 years ago
Michael Lutz 255549250f Change: [Win32] Replace the current high-level Direct Music driver with a low-level driver that directly works with MIDI data.
This allows using different music sources besides standard MIDI files on disk.
6 years ago
Michael Lutz 3fc9c9522d Codechange: [Win32] Use a local buffer to store the output text of DEBUG() to make the call thread-safe. 6 years ago
Niels Martin Hansen db5abdd78a Feature #986: Automatic save when losing connection to a network game 6 years ago
Jonathan G Rennison 0d0d55f81d Scrolling/perf improvements to link graph overlays on viewport and smallmap 6 years ago
Jonathan G Rennison fe1e0a9d59 Merge branch 'enhanced_viewport_overlay' into jgrpp 6 years ago
Jonathan G Rennison 64815c0d8a Improve performance of show scrolling viewport on map 6 years ago
Jonathan G Rennison 7f32bb34ac Clip dirty region to be within viewport in MarkViewportDirty 6 years ago
Jonathan G Rennison e6e5a96ed3 Fix performance penalty when scrolling viewport map with show scrolling viewport enabled 6 years ago
Jonathan G Rennison 8f2c595378 Merge branch 'template_train_replacement' into jgrpp
# Conflicts:
#	src/vehicle_gui.cpp
6 years ago
Jonathan G Rennison 45d2726379 TBTR: Add 'all rail types' option to rail type dropdown, use by default 6 years ago
Jonathan G Rennison cecbf257bc Merge branch 'save_ext' into template_train_replacement
# Conflicts:
#	src/saveload/saveload.cpp
#	src/vehicle_gui.cpp
6 years ago
Jonathan G Rennison fa304cdb75 Merge branch 'master' into save_ext
# Conflicts:
#	src/saveload/saveload.cpp
6 years ago
Jonathan G Rennison 56be293107 Merge branch 'master' into jgrpp
# Conflicts:
#	src/blitter/32bpp_anim.cpp
#	src/blitter/32bpp_anim.hpp
#	src/blitter/32bpp_anim_sse2.cpp
#	src/blitter/32bpp_base.cpp
#	src/blitter/32bpp_base.hpp
#	src/ground_vehicle.cpp
#	src/linkgraph/linkgraph_gui.h
#	src/main_gui.cpp
#	src/newgrf_house.cpp
#	src/newgrf_house.h
#	src/town_cmd.cpp
#	src/vehicle_base.h
#	src/viewport_gui.cppp
6 years ago
Alexander Weiss e1a164b531 Change: [OSX] Setting mouse-wheel to scroll the map does not disable pinch to zoom 6 years ago
Alexander Weiss 6df7ced343 Change: [OSX] Reversed pinch to zoom behaviour.
Made pinch out zoom in and pinch in zoom out, as virtually all macOS
applications do.
6 years ago
Jonathan G Rennison 17257b9620 Add: 32bpp SSE2 blitter palette animator (#6795)
Create a new blitter mode: 32bpp-sse2-anim, which is 32bpp-anim + this.
32bpp-sse2-anim is now used by default where 32bpp-anim would have been.
Also use this with the 32bpp-sse4-anim blitter.

See issue #6469.
6 years ago
translators 306b999cf4 Update: Translations from eints
polish: 5 changes by xaxa
6 years ago
PeterN a07394a63a
Change: Remove direction parameter from Vehicle::UpdateDeltaXY. (#6792)
The value is either unused or always the same as this->direction.
6 years ago
PeterN 4cebebcf68
Change: Add CargoTypes type for cargo masks. (#6790) 6 years ago
PeterN 42b43c9983
Change: Available railtypes is always calculated on load, so no need to load value for old savegames (#6782) 6 years ago
PeterN cad47bbefe
Fix: Tractive effort was slightly too high as per NewGRF spec. (#6785) 6 years ago
PeterN 8a7de36463
Change [#6689]: Tweak HashTable hash calculation to reduce collisions. (kernigh2) (#6786) 6 years ago
Owen Rudge 7bd2fa3516 Feature: Add XAudio2 driver 6 years ago
Jonathan G Rennison 38779254e5 Check cargo action count consistencies on load
Add scope info logging to AfterLoadVehicles
6 years ago
Jonathan G Rennison a60eff174d Merge branch 'template_train_replacement' into jgrpp
# Conflicts:
#	src/saveload/extended_ver_sl.cpp
6 years ago
Jonathan G Rennison 5877cd0f9b TBTR: Fix display of vehicle sprites for some NewGRFs, fix issues in large UI modes
Slight code, GUI layout, and savegame format tidying
6 years ago
translators fb54dd04a1 Update: Translations from eints
greek: 8 changes by Jubilee
6 years ago
Jonathan G Rennison 6342099c4d Allow 256 NewGRFs in multiplayer
Add extended network format for server info
Add general UDP packet fragmentation system
Fix map dimensions >= 64k
Increase length of server revision string
Maintain backwards compatibility with trunk for advertisement/server listing
6 years ago
translators d738e980d0 Update: Translations from eints
dutch: 1 change by mrLeopold
6 years ago
Jonathan G Rennison 793a446062 Zoning: Ensure that screen is refreshed when necessary in authority overlay 6 years ago
Jonathan G Rennison f373a67610 Fix display of zoning overlay sprites on half-tile foundations
Partly based on commit 598b781259a5c1ad25cf3de85807b9c79e9f08fe
6 years ago
translators 7935ac16d1 Update: Translations from eints
dutch: 1 change by mrLeopold
6 years ago
Jonathan G Rennison a08a79a9d8 Fix handling of refit with train through-load 6 years ago
Jonathan G Rennison 8353a4d095 Merge branch 'cpp-btree' into jgrpp 6 years ago
Jonathan G Rennison 133ccabf42 btree: Use static_assert instead of workaround macro 6 years ago
Jonathan G Rennison 53e943386e Rename Polyline struct due to name collision on Windows 6 years ago
Jonathan G Rennison 71852c3f37 Fix timetable auto-separation with go via station orders 6 years ago
Jonathan G Rennison ad1c402ad8 Merge branch 'master' into jgrpp
# Conflicts:
#	src/debug.cpp
#	src/saveload/afterload.cpp
#	src/saveload/saveload.cpp
#	src/settings_type.h
#	src/town_cmd.cpp
#	src/window.cpp
6 years ago
Jonathan G Rennison 98ade153d2 Fix colour definition for conditional order invalid slot string 6 years ago
Pavel Stupnikov fef8b831a9 Change: Switch town growth rate and counter to actual game ticks (#6763) 6 years ago
translators 61515c9abd Update: Translations from eints
belarusian: 10 changes by KorneySan
russian: 6 changes by KorneySan
spanish (mexican): 10 changes by Absay
6 years ago
Niels Martin Hansen 52655b5849 Change: [Win32 MIDI] Reset pitch bend range controllers on song change
Some songs (at least one in OpenMSX) use the MIDI pitch bend range controllers
but don't reset these at the end. This causes all subsequent songs to sound
wrong.
6 years ago
Niels Martin Hansen 99a39c842c Change: [Win32 MIDI] Send Roland reverb control message like TTD DOS does 6 years ago
Niels Martin Hansen b902e01e10 Change #6685: Replace Win32 music driver with one not depending on MCI
MCI MIDI is poorly supported on newer versions of Windows and can cause large
delays at the beginning of tracks.

The new driver is based on a from-scratch reader for Standard MIDI Files. This
should be re-usable in other music drivers too, and can allow for finer control
of playback in general.

It also provides a better framework for reading MIDI data from other formats
than just SMF.
6 years ago
Michael Lutz 9959cd9522 Fix 0165fe1: Native OSX doesn't have a __BYTE_ORDER macro but defines a differently named macro. 6 years ago
Michael Lutz bb5584c835 Fix 74b7f0a: [OSX] Mouse cursor getting occasionally stuck. 6 years ago
J0an Josep cfb8092397 Fix b4b98e5165: Use FALLTHROUGH attribute with correct indentation. 6 years ago
translators 3f40cd505d Update: Translations from eints
croatian: 10 changes by VoyagerOne
italian: 4 changes by lorenzodv
french: 7 changes by glx
6 years ago
J0anJosep 79a551a83c Codechange: Use TileAddBy(Diag)Dir when possible. 6 years ago
Joan Josep 944f785be8 Fix: Spelling errors (#6769) 6 years ago
Jonathan G Rennison 1cc545c816 Fix iterator invalidation issues in CargoPacketList actions
See: #48
6 years ago
Jonathan G Rennison e0126a1fbc Merge branch 'signal_tunnels_bridges' into jgrpp
# Conflicts:
#	src/train_cmd.cpp
6 years ago
Jonathan G Rennison 0dd3ff23de Fix signalled tunnel/bridge entrance not being marked dirty when reservation cleared 6 years ago
keldorkatarn c2678b896e Fix clearing of train reservations in tunnels and on bridges.
(cherry picked from commit e2c4fb517d1064b163d8f2b0627506d785ffb3ed)

See: #46
6 years ago
Matthijs Kooijman fa87212a76 Fix: Some spelling errors in printed messages 6 years ago
Joan Josep a6b18f0d92 Fix #6090: And (svn r27822). Run scripts for widgets. (#6765)
Fix 19f5a6cbb0, Fix 19d56a33e8: Run scripts to update GS for new widgets (#6765)
6 years ago
translators a806424ec1 Update: Translations from eints
italian: 6 changes by lorenzodv
french: 6 changes by glx
russian: 9 changes by Lone_Wolf
6 years ago
Niels Martin Hansen 683b46a5b5 Cleanup: Remove unused strings from language files 6 years ago
Niels Martin Hansen 19f5a6cbb0 Feature #6090: Change music set during gameplay 6 years ago
Niels Martin Hansen 430e20f7e4 Fix: Clipping issues with volume sliders in Music GUI
Tested with various languages and GUI font sizes, should look good everywhere.

Also clamps near-end values to minimum and maximum so 0 and 127 are possible to achieve even on small GUI sizes (like the default.)
6 years ago
Niels Martin Hansen bb809e35ce Change: Less intrusive "no music" message from Music window 6 years ago
Niels Martin Hansen e172794947 Change: Disable music control buttons when there is no music 6 years ago
Niels Martin Hansen 76cccc64c9 Codechange: Music GUI comments and function naming 6 years ago
Patric Stout 0165fe1283
Codechange: remove endian_check in favour of __BYTE_ORDER macro (Rubidium) (#6762) 6 years ago
Patric Stout aef69443e7 Remove: WinCE support 6 years ago
Patric Stout 85adde7485 Remove: PSP support 6 years ago
Pavel Stupnikov 8d8b9a026a Feature #6610: Allow towns to build houses on road turns (#6758) 6 years ago
PeterN cfe6a8ea4f
Add: Replace independment map scrolling GUI settings with single option, and add choice to not lock cursor position when scrolling. (#6756) 6 years ago
Pavel Stupnikov 913119487f Feature: Add GS method to question a single client (#6748) 6 years ago
Jonathan G Rennison 1fe0bb76b9 Merge branches 'crashlog_improvements', 'save_ext', 'version_utils' into jgrpp 6 years ago
Jonathan G Rennison 4bcd05a620 Merge branch 'cpp-11' into save_ext
# Conflicts:
#	findversion.sh
6 years ago
Jonathan G Rennison f42cc19aad Merge branch 'cpp-11' into crashlog_improvements
# Conflicts:
#	Makefile.src.in
#	src/crashlog.cpp
#	src/crashlog.h
6 years ago
Jonathan G Rennison b90c5b9618 Merge branch 'master' into cpp-11
# Conflicts:
#	src/stdafx.h
6 years ago
Jonathan G Rennison b7ce21038a Merge branch 'custom_bridgeheads' into jgrpp
# Conflicts:
#	src/tunnelbridge_cmd.cpp
6 years ago