Jonathan G Rennison
8f964ee637
Add day length compatibility fixup for BeeRewards GS
4 years ago
Jonathan G Rennison
501f7458db
Script: Add method to get day length factor
4 years ago
Jonathan G Rennison
610f8b9eca
Crashlog: Unix: Fix getting symbols using BFD
4 years ago
Jonathan G Rennison
22c3a01069
Comment out additional includes of <cassert>
...
This overrode our own assert handler in stdafx.h
4 years ago
Jonathan G Rennison
3adeff1883
Merge branch 'master' into jgrpp
...
# Conflicts:
# CMakeLists.txt
# cmake/CompileFlags.cmake
# src/bridge_gui.cpp
# src/saveload/afterload.cpp
# src/saveload/saveload.cpp
# src/saveload/saveload.h
# src/saveload/town_sl.cpp
# src/screenshot.cpp
# src/screenshot.h
# src/toolbar_gui.cpp
# src/town.h
# src/town_cmd.cpp
4 years ago
Jonathan G Rennison
d6f785d125
Merge branch 'pr-163' into jgrpp
4 years ago
glx22
909c9656ce
Fix: [CMake] cross-compiling requires native tools
...
(cherry picked from commit fdaf0d0b2f82701c8ea1e9a1125415351cf49e57)
4 years ago
Jonathan G Rennison
1958795a94
Fix comment for DivTowards*Inf functions
4 years ago
Jonathan G Rennison
1aefc9d010
Use malloc instead of calloc for MemoryDumper::AllocateBuffer
4 years ago
Jonathan G Rennison
10aab3e3a3
CMake: Add BFD, support new BFD API
4 years ago
Jonathan G Rennison
9470ad050b
CMake: Fix configure defines
4 years ago
TechGeekNZ
cf8ea74733
Update: Merge branch 'jgrpp_master_cmake' into jgrpp_cmake
4 years ago
dP
7045186594
Change #8159 : Remove now unused town cargo caches without bumping the savegame version
4 years ago
dP
380fd8cab4
Fix: Make subsidies scan tiles for town acceptance and production instead of using desync-prone town caches
4 years ago
dP
ca2604c4e2
Revert #8157 : Redundant change
4 years ago
Michael Lutz
6d3c2edc59
Add: [NewGRF] Industry behaviour flag to override second cargo production clamping for water industries when using smooth economy.
...
Smooth economy is only used when the corresponding setting is enabled and the industries does not use the production callback.
4 years ago
Jonathan G Rennison
7a09413a1a
Fix: Incorrect save/load array size of Town::cargo_accepted
...
In 11ab3c4e
the number of cargo types was changed from 32 to 64.
The save/load of Town::cargo_accepted was not updated, such that
only half of the data structure is saved/loaded in savegame versions
199 to 218.
Discard and regenerate data from all savegame versions prior to 219.
4 years ago
Jonathan G Rennison
54237b0e98
Codechange: Move SlSkipBytes to saveload.h
4 years ago
ilayaraja97
cf8ccf4b08
Fix #8131 : small bridges also have pillars drawn
4 years ago
TrevorShelton
a4a9908a51
Fix #8221 : Missing specific error message for bridge too long ( #8240 )
4 years ago
Jonathan G Rennison
a16d0b71b3
Fix handling of vehicles with no orders in departure board
...
See: #162
4 years ago
Charles Pigott
218db00c4c
Fix #8216 : Don't show floating text on autoreplace if cost is 0
4 years ago
duck
1bc7047af7
Doc: Acknowledge integer type mismatch in certain admin packets using AdminUpdateType ( #8238 )
4 years ago
Charles Pigott
75a2ae2f48
Change: Also make roadside trees match the tree transparency option
4 years ago
Charles Pigott
4c45448fa9
Fix #8129 : Crash if a news message expires while viewing the endgame screen
4 years ago
Charles Pigott
dc8d0089e9
Codechange: Make sure script enums are the same size as their normal counterparts
4 years ago
Charles Pigott
e5f931ef42
Fix: Warning about using the wrong enum type
4 years ago
Charles Pigott
64b1c70fdd
Codechange: Add WARN_FORMAT to vseprintf and fix the cascade of warnings that followed
4 years ago
Charles Pigott
224acb78b0
Fix: Compiler warnings about memsetting non-trivial classes
4 years ago
Abdurrahmaan Iqbal
8a655c7fb6
Fix #8232 : 'Huge screenshot' warning being shown incorrectly
4 years ago
TechGeekNZ
3c8d0aa354
Cleanup: Give `TakeScreenshot` a more sensible name
4 years ago
TechGeekNZ
ed6f31f601
Cleanup: Remove redundant implementation of TakeScreenshot
4 years ago
dP
a2e1102b15
Feature: Increase max possible distance from border for oil refineries and rigs
4 years ago
TechGeekNZ
fd2a120c9d
Cleanup: Improve documentation of dirty block system.
...
Partially re-applies 8652a4db76
, which
was reverted to allow commits to be cherry-picked from JGRPP.
4 years ago
TechGeekNZ
c9abf6ade6
Revert: "Cleanup: Give `SetDirtyBlocks` a more descriptive name."
...
This reverts commit 8652a4db76
.
This is necessary to aid in the cherry-picking of commits from JGRPP.
4 years ago
translators
b84d61ef6e
Update: Translations from eints
...
indonesian: 16 changes by adjayanto
4 years ago
Jonathan G Rennison
15c600d64f
Fix station and town kdtrees with maps larger than 64k
4 years ago
translators
78b6587c40
Update: Translations from eints
...
swedish: 3 changes by Joel_A
4 years ago
Jonathan G Rennison
27b92c3526
Fix #159 : Incorrect display date on load for savegame versions < 31
4 years ago
Jonathan G Rennison
f5e9805b10
Store time display settings both in savegame and client, add setting
4 years ago
translators
6d135d4b01
Update: Translations from eints
...
ukrainian: 1 change by nsergiy
korean: 1 change by telk5093
4 years ago
glx22
87a069c887
Fix #8230 : Resolve ".." when opening files in .tar ( #8231 )
4 years ago
Jonathan G Rennison
e6f3e15c32
Fix 63ccb36e: Incorrect string type for OrderBackup::name save/load
...
In 63ccb36e
BaseConsist::name was changed from a malloced char*
to a std::string.
OrderBackup inherits from BaseConsist.
The saveload of OrderBackup::name was not updated.
4 years ago
Jonathan G Rennison
1ac0d4a5b2
Fix: Thread unsafe use of NetworkAddress::GetAddressAsString
...
Remove static buffer form of NetworkAddress::GetAddressAsString.
This is used in multiple threads concurrently, and is not thread-safe.
Replace it with a form returning std::string.
4 years ago
Jonathan G Rennison
22b13ffc26
Mark order/timetable windows dirty when changing game date
4 years ago
Jonathan G Rennison
ca79a32890
Scheduled dispatch: Fixup start dates when changing game date
4 years ago
translators
9aca6ff971
Update: Translations from eints
...
swedish: 33 changes by Joel_A
4 years ago
Jonathan G Rennison
b0f192abc4
Fix: Racy use of flags in TCPConnecter::CheckCallbacks
...
conected and aborted flags are used concurrently from multiple threads.
4 years ago
Jonathan G Rennison
d160536315
Fix has_packets in ServerNetworkGameSocketHandler::SendMap
4 years ago
Jonathan G Rennison
c167648d75
Fix: Violation of strict weak ordering in group name sorters
...
This could be caused by a group being renamed, and the old
name being cached from a previous sort.
See: #7838
4 years ago
Jonathan G Rennison
d830a34394
Fix: Violation of strict weak ordering in engine name sorter
...
This could be caused by an engine being renamed, and the old
name being cached from a previous sort.
See: #7838
4 years ago
Jonathan G Rennison
084b073e57
Codechange: Use template type for GUIList::Sort comparator
4 years ago
frosch
d8182b7e15
Change: Allow command cost-estimation while paused.
4 years ago
Niels Martin Hansen
9895ced6af
Fix: Silence some warnings when building with clang-cl on VS 2019
...
Clang-cl presents as both _MSC_VER and __clang__ in the preprocessor which makes some things confusing.
4 years ago
nikolas
c9aff698d0
Fix #8104 : Always add WINDOW_RESIZABLE flag to SDL2 ( #8211 )
...
This fixes a bug that can reproduced with these steps:
* Start openttd in fullscreen mode
* Turn off fullscreen mode
* Try to resize the window. The window can't be resized.
4 years ago
Jonathan G Rennison
147d9aef87
Crashlog: Remove unused variables
4 years ago
translators
208614343f
Update: Translations from eints
...
polish: 1 change by MaksOPENTTD1
danish: 1 change by beruic
4 years ago
Jonathan G Rennison
663886843c
Win32: Wine: Oversize buffer for WSAIoctl/SIO_GET_INTERFACE_LIST
...
This is a workaround for https://bugs.winehq.org/show_bug.cgi?id=49371
See also: 1e7a73b2
4 years ago
Jonathan G Rennison
3eb8d62148
Fix #157 : Integer overflow in town GetNormalGrowthRate
4 years ago
TechGeekNZ
ee570e1b6d
Cleanup: Fix typos in code comments.
4 years ago
TechGeekNZ
8652a4db76
Cleanup: Give `SetDirtyBlocks` a more descriptive name.
4 years ago
arikover
caab095e4e
Fix: [CMake] SDL2 Sound was not included
4 years ago
Miguel Horta
40436019fd
Fix: Display banlist's indexes correctly
...
Bug introduced via commit ab711e6942
4 years ago
Jonathan G Rennison
12c25be778
Debug: Add station delete counter to NewGRF debug
4 years ago
Jonathan G Rennison
271fac01a7
Add setting to scale station cargo capacity and rating tolerance by size
4 years ago
Jonathan G Rennison
1917a3e0f8
Station: Add field for number of station tiles
4 years ago
TechGeekNZ
fe1925931d
Cleanup: Correct typographic errors in code comments.
4 years ago
TechGeekNZ
3d8597d42e
Cleanup: Add undocumented parameter to GetSpriteSize.
4 years ago
Patric Stout
4d04009d12
Codechange: remove #ifdef from .cpp files to exclude features
...
With CMake, these files are simply not compiled to start with.
4 years ago
Patric Stout
56d54cf60e
Add: introduce CMake for project management
...
CMake works on all our supported platforms, like MSVC, Mingw, GCC,
Clang, and many more. It allows for a single way of doing things,
so no longer we need shell scripts and vbs scripts to work on all
our supported platforms.
Additionally, CMake allows to generate project files for like MSVC,
KDevelop, etc.
This heavily reduces the lines of code we need to support multiple
platforms from a project perspective.
Addtiionally, this heavily improves our detection of libraries, etc.
4 years ago
Jonathan G Rennison
43c538fa7d
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/town_cmd.cpp
4 years ago
Marcus Calhoun-Lopez
eeed3a7613
Fix: unbreak building with ICU on macOS
...
A symbol clash breaks building ICU on macOS, and although it isn't
necessary, it might as well be possible.
4 years ago
TechGeekNZ
937b366546
Cleanup: StationCargoList::AreMergable doxygen comment references Vehicle instead of Station.
4 years ago
TechGeekNZ
012fea301d
Cleanup: Add note explaining how settings.h is generated from source.
4 years ago
TechGeekNZ
f246f8faef
Cleanup: Fix typo in settings.h.preamble.
4 years ago
TechGeekNZ
cdd2892c49
Codechange: Realign SDL driver with SDL2 driver to ease maintenance and emphasise differences.
4 years ago
Yexo
1507902d00
Codechange: remove has_newindustries global
4 years ago
Yexo
ce618bf7e9
Codechange: replace custom timer and OnGameTick() with OnHundrethTick()
4 years ago
Yexo
a82572d0f5
Codechange: remove has_newhouses global
4 years ago
Jonathan G Rennison
677940cfc6
Merge branch 'master' into jgrpp
4 years ago
Michael Lutz
1c0ba07c3c
Add: [Script] Native priority queue; useful e.g. for pathfinders.
4 years ago
Jonathan G Rennison
52e0d44c8a
Revert "Fix recursive faults in Window crash logger due to message box event loop."
...
This reverts commit 2b1b7f8b135968cb88d8e65fcb89cdff8d203838.
Replaced by b5ca2161d9
.
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
b018ebf268
Pathfinder: Fix incorrect handling of rail type 90° turns
...
Due to parenthesis/editing error
4 years ago
Jonathan G Rennison
f11cd8f2d0
Fix: Compilation warnings in story_gui and script_story_page
...
See: #7896
4 years ago
Jonathan G Rennison
14e7d43c62
Merge branch 'master' into jgrpp
4 years ago
TechGeekNZ
df0f9193da
Fix some typographical errors in comments
...
Fixes : #153
Applied from: #153
4 years ago
Jonathan G Rennison
8d454cd006
Merge branch 'cargo_type_order' into jgrpp
4 years ago
Jonathan G Rennison
2e93ca9409
Increase verbosity of chosen track assert in TrainController
4 years ago
Jonathan G Rennison
42acbbb936
Debug: Show rail type flags in debug window
4 years ago
translators
71e9c2a71b
Update: Translations from eints
...
chinese (traditional): 2 changes by ww9980
chinese (simplified): 1 change by ww9980
4 years ago
TechGeekNZ
082404e443
Fix: Vehicle leaves station without loading if there is a per-cargo "no load" order for the currently fitted cargo.
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
Jonathan G Rennison
5243cfd6d0
Use TinyString for custom name fields which are almost always empty
4 years ago