Commit Graph

17715 Commits (04c050f93ed1ea60409f53bea96a1790245851e0)

Author SHA1 Message Date
Yexo a82572d0f5 Codechange: remove has_newhouses global 4 years ago
Michael Lutz 1c0ba07c3c Add: [Script] Native priority queue; useful e.g. for pathfinders. 4 years ago
Niels Martin Hansen 764497206a Fix #8066: Try another fallback colourspace if first one fails 4 years ago
glx b3ddf2c907 Fix: [Win32] Crash message not fitting in crash dialog 4 years ago
glx b5ca2161d9 Fix #7970: [Win32] Disable event loop on crash to prevent recursive faults 4 years ago
Yexo f827bc8c1a Fix #8166: don't crash on loading an invalid roadtype newgrf
Initialization code for GRFFile::roadtype_map was copied from
railtype_map. But while RailType is a byte-sized enum and could thus
be initialized via memset, RoadType doesn't have a defined size.
4 years ago
Yexo a9b3312d1a Fix #8024: make online content gui more responsive while loading
Previously the internal content list was invalidated and sorted for
every new item added. Now the sorting is delayed until the GUI is
drawn, which means we only sort once per GUI tick.

Since the amount of incoming items per GUI tick is not controlled by
the GUI but rather by network speed, we were previously doing a lot
of duplicate work per tick, causing the mouse cursor to lag while
the list was initialized.
4 years ago
translators 281d93f600 Update: Translations from eints
croatian: 1 change by VoyagerOne
4 years ago
TechGeekNZ 16e5f610f7 Cleanup: Correct typographic errors in code comments. 4 years ago
Jonathan G Rennison f11cd8f2d0 Fix: Compilation warnings in story_gui and script_story_page
See: #7896
4 years ago
translators 71e9c2a71b Update: Translations from eints
chinese (traditional): 2 changes by ww9980
chinese (simplified): 1 change by ww9980
4 years ago
Niels Martin Hansen 800ade7702
Feature: Push-buttons on storybook pages (#7896)
Allow more direct player-initiated interaction for Game Scripts, by letting the GS put push-buttons on storybook pages. These buttons can either trigger an immediate event, or require the player to first select a tile on the map, or a vehicle.

Additionally this reworks how the storybook pages are layouted and rendered, to allow for slightly more complex layouts, and maybe speeding drawing up a bit.
4 years ago
Michael Lutz c972a63c8c Codechange: Store info about the dedicated server log file in globals with automatic destruction to simplify control flow in openttd_main. 4 years ago
Michael Lutz 37bc2f8064 Codechange: Use std::string in the driver and blitter selection code. 4 years ago
Michael Lutz a49fdb7ebb Codechange: Store base set related texts in std::strings. 4 years ago
Michael Lutz 715aa67a9c Codechange: Use std::string in INI file parsing. 4 years ago
Michael Lutz 8aef14386f Add: Optional implementation of std::optional for pre-C++17 compilers.
Sourced from https://github.com/akrzemi1/Optional, Boost Software License, Version 1.0.
4 years ago
Michael Lutz 63ccb36ef3 Codechange: Use std::string for most of the user-settable custom names. 4 years ago
Michael Lutz 9b6f5e3bb8 Codechange: Store GS lang texts in std::strings. 4 years ago
Michael Lutz 9c2e47d03c Codechange: Use std::string for storing GRF error messages. 4 years ago
Michael Lutz c082f570ce Codechange: Use std::string when translating TTDP NewGRF string codes. 4 years ago
Michael Lutz 808c8198d5 Codechange: Consistently use WChar when passing characters around, and also define it as char32_t. 4 years ago
Michael Lutz 43cd892e0c Codechange: Replace custom linked list for GRF texts with STL vectors and strings. 4 years ago
Michael Lutz f2b40f40aa Codechange: Replace SmallPair with std::pair.
std::pair is already the smallest possible pair, and it already handles non-POD types correctly.
4 years ago
translators 7309bdec48 Update: Translations from eints
latvian: 9 changes by Tranzistors
4 years ago
dP 82572754dd Fix: Trees disappear completely after a few years when they're not allowed to spread 4 years ago
Yexo 587d8e716b
Fix #8155: Roadtype speed limit in toolbar dropdown in scenario editor was doubled 4 years ago
translators b8a896d52c Update: Translations from eints
latvian: 35 changes by Tranzistors
4 years ago
dP 93d1d8773f Fix: Desync after house replacement 4 years ago
translators d11bae58a0 Update: Translations from eints
spanish (mexican): 7 changes by Absay
4 years ago
translators 70ccd34fa0 Update: Translations from eints
latvian: 13 changes by Tranzistors
4 years ago
translators edc7ee2cda Update: Translations from eints
indonesian: 1 change by fanioz
dutch: 1 change by JanWillem
latvian: 39 changes by Tranzistors
spanish (mexican): 1 change by Absay
4 years ago
translators 9b8d5ea074 Update: Translations from eints
spanish (mexican): 16 changes by Absay
russian: 3 changes by Lone_Wolf
4 years ago
translators 83cd040c61 Update: Translations from eints
latvian: 21 changes by Tranzistors
korean: 5 changes by telk5093
4 years ago
dP f2a9a1e2a5 Fix #8137: New clients can't join (desync) after funding an industry 4 years ago
dP 7bd52970a1 Codechange: Refactor FindStationsAroundTiles to avoid code duplication 4 years ago
translators 6dcc99edab Update: Translations from eints
latvian: 45 changes by Tranzistors
spanish (mexican): 9 changes by Absay
4 years ago
glx22 cca613e3b8
Fix #8142, 5aa6351: Buoy owner and tile owner can be different (#8143) 4 years ago
glx22 d15c7dbdeb
Add: stations_near and industries_near cache check (#8139) 4 years ago
translators 48c61c1da1 Update: Translations from eints
latvian: 54 changes by Tranzistors
spanish (mexican): 4 changes by Absay
4 years ago
Ilayaraja 48d2eb703c
Add: INR currency (#8136)
Co-authored-by: ilayarja97 <ilayarja97@gmail.com>
4 years ago
glx 39092ee13b Fix #8119: Update docking area when clearing a shore rail tile 4 years ago
glx 5aa6351042 Fix #8132: Corrupted savegame crashing OpenTTD on load 4 years ago
glx 0ed00ae111 Fix: Stop any gamelog action when recovering from SlError() 4 years ago
translators 3ba34a72aa Update: Translations from eints
latvian: 80 changes by Tranzistors
spanish (mexican): 10 changes by Absay
4 years ago
SamuXarick a95fbd59a3
Fix #8119, f538179: Update docking tile area when placing a diagonal rail next to a dock end (#8124) 4 years ago
translators 61e1a45100 Update: Translations from eints
latvian: 8 changes by Tranzistors
spanish (mexican): 1 change by Absay
4 years ago
Niels Martin Hansen 2c84549db0 Fix: Two issues in MIDI file writer
Variable-length values would write threshold values with a byte too many.
System Exclusive messages would cause write to fail since the end byte was treated as part of next message.
4 years ago
translators 170f3f9b2b Update: Translations from eints
latvian: 38 changes by Tranzistors
4 years ago
glx22 82573a5e73
Fix #8117: Memory leak in admin port (#8122) 4 years ago
glx22 86e9326b7f
Add: docking tiles cache check (#8120) 4 years ago
glx bc8333723c Fix #8021: limit savegame range for docking tiles fixing 4 years ago
Yexo 64278fd598 Fix: reset roadtype/streetcartype info for non-road bridges 4 years ago
translators 364f6806c8 Update: Translations from eints 4 years ago
glx f0747c8c51 Update: Lang files 4 years ago
glx e0d20a44d2 Codechange: Use a dynamic copyright year 4 years ago
Yexo 19dc31e0b3 Fix #8108: always update tile_hash after updating v->tile 4 years ago
SamuXarick 8edbb42fe8 Fix c01a2e2: crash on loading old savegames with invalid animated tile information 4 years ago
SamuXarick c01803cd42 Fix #8108: possible crash on loading TTD savegames with phantom oil rigs 4 years ago
translators aa91c0666e Update: Translations from eints
korean: 1 change by telk5093
4 years ago
frosch 9f2e23d8ba Fix #8093: Build+Refit changed game-state in command test run, and thus caused desyncs.
Use DC_AUTOREPLACE for actions that shall be reversibe, in this case:
- Do not rearrange free wagons in test-run.
- Do not discard OrderBackups.
The latter was not triggered by actual auto-replace, since it does not set a 'user'.
4 years ago
frosch 0f9dc88834 Fix: When build+refit an engine, do not refit any free wagons that may get attached. 4 years ago
frosch 68244393f1 Codechange: Unify the tests whether build+refit is in simulation-test or real-run. 4 years ago
Michael Lutz 1f1345de09 Codechange: [Script] Improve copying a list into another empty list. 4 years ago
translators e45bccb833 Update: Translations from eints
welsh: 4 changes by kazzie
4 years ago
SamuXarick 93a7ff6709
Fix: [Script] ScriptMarine::AreWaterTilesConnected failed for aqueducts (#8074) 4 years ago
translators 0b8100b46f Update: Translations from eints
tamil: 16 changes by aswn
4 years ago
Michael Lutz 4bfa3ff619 Remove: [OSX] Old QuickTime music driver. 4 years ago
Michael Lutz e9294ce4e3 Cleanup: [OSX] Mop up some remaining stuff catering to compiling with very old SDK versions. 4 years ago
Michael Lutz c21a298a8a Remove: [OSX] Support for the pre 10.6 ATS font selection. 4 years ago
Michael Lutz b17ea3de36 Remove: [OSX] Support for the pre-10.5 audio/music APIs. 4 years ago
Michael Lutz 9dd8b3d430 Remove: [OSX] Stuff that is pre-10.7 from the Cocoa/Quartz video driver. 4 years ago
Michael Lutz 0e5be3887c Remove: [OSX] Old fullscreen subdriver for pre 10.7 systems.
Since the move to C++11, building for pre 10.7 is not possible with the native
Apple tools. Also, due to bitrot, the file doesn't even compile anymore. While
this could be fixed, it shows that this subdriver is basically never used anymore.
4 years ago
Michael Lutz a31cbbf67f Remove: [OSX] QuickDraw video subdriver used for OSX versions up to 10.4.
Since the C++11 move, getting OpenTTD to compile and run for anything
below 10.7 basically requires building a custom compiler and libc++.
Also, the QuickDraw subdriver crashes on more modern OSX version. While this
is fixable, keeping the driver around is probably pointless.
4 years ago
Michael Lutz 9d7ad67c1d Codechange: [OSX] Allow compiling with SDK version pre 10.9. 4 years ago
glx 9339e4dcad Fix #8081: Check for waypoints when removing docking tiles 4 years ago
Pavel Stupnikov f14a69e52f
Fix a5681d3e: Make goal question ID use 16 bits again (#8072) 4 years ago
arikover 1e3e960fce Add: Hotkey for Land Info in normal mode
- added a hotkey for land_info in normal mode
- no default key is set
4 years ago
translators 7aab7642bf Update: Translations from eints
catalan: 30 changes by juanjo
4 years ago
translators d50e4641ae Update: Translations from eints
luxembourgish: 9 changes by Phreeze
4 years ago
glx b50d77b831 Fix #8064: Incorrect display of refit capacity 4 years ago
frosch 7fe291667f Fix #8060, 5880f14: Restore admin network API compatibility. 4 years ago
stormcone 2514f43909
Fix #8055, c02ef3e: Crash when roadtype availability changed with the road toolbar open (#8058) 4 years ago
translators 71e79edfc1 Update: Translations from eints
estonian: 32 changes by taavi
4 years ago
SamuXarick e7b901462e Doc: [Script] Make it clear random_deviation and CONFIG_RANDOM range upper bounds are inclusive 4 years ago
SamuXarick 8f9654c5c6 Fix: [Script] Random deviation upper bound range should be inclusive 4 years ago
Sebastian Pauka bd3a5876b0 Fix #7644: [Cocoa] Manually set colorspace to sRGB 4 years ago
SamuXarick 57553cd809 Fix #8020: Add missing docking tiles around industry neutral stations 4 years ago
SamuXarick 4d4005d8b7 Fix #8039: [AI/GS] SetOrderFlags and GetOrderDestination didn't work for oil rigs 4 years ago
glx 0b5e0522b6 Fix #8043, c02ef3e4: Incorrect handling of global road/tram hotkeys 4 years ago
translators 2cc9afe057 Update: Translations from eints
danish: 2 changes by Knogle
4 years ago
translators 55e81d3973 Update: Translations from eints
polish: 22 changes by MaksOPENTTD1
4 years ago
SamuXarick 3e680c50ca
Change: Open company window when clicking on a company goal (#8033) 4 years ago
SamuXarick 3a08a7e99d
Fix: Ignore clicks on non-applicable global goals (#8035) 4 years ago
translators e7da6616ba Update: Translations from eints
polish: 20 changes by MaksOPENTTD1
4 years ago
translators 4a079407e7 Update: Translations from eints
hungarian: 26 changes by Brumi
korean: 3 changes by telk5093
4 years ago
translators 6fde854759 Update: Translations from eints
french: 3 changes by glx
4 years ago
translators ce7374ec25 Update: Translations from eints
korean: 1 change by telk5093
4 years ago
SamuXarick 424770d662 Fix: [AI/GS] Consider neutral station setting when creating tile lists 4 years ago
SamuXarick 971201b3b7 Fix: [AI/GS] CanBuildConnectedRoadPartsHere neighbours tiles were at times incorrect 4 years ago