Charles Pigott
b5028efc1f
Fix: Protect against a few out of bounds or uninitialised usage errors
6 years ago
Charles Pigott
52ed3bcbaa
Remove: A few bits of dead code
6 years ago
Charles Pigott
e0c0394e37
Fix: Remove various dead or unnecessary assignments
6 years ago
Charles Pigott
f5b1115039
Doc: Lots and lots of doxymentation fixes
6 years ago
Niels Martin Hansen
f3dbb3f676
Fix #6951 : Ensure RailTypes bitfield is always treated as 64 bit
...
Some compilers (like VC++ 2015) will otherwise narrow it in some contexts where it should not be.
6 years ago
Niels Martin Hansen
350395a6c2
Fix: Missing m8 data in console when using Query tool
...
When map array 8 was added, the Query tool wasn't updated to also
print the value there to the console, in debug builds.
6 years ago
Jonathan G Rennison
a96428ed13
Fix timetabling of through-load orders
6 years ago
Jonathan G Rennison
3a640af71d
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/ground_vehicle.cpp
# src/viewport.cpp
6 years ago
Niels Martin Hansen
50efaa2372
Fix e00908f: Visual C++ 2015 compile error
...
Microsoft Visual C++ 2015 Update 3 (and possibly other versions) consider a struct member undefined in a
static_assert in the struct body. Moving the static_assert to a member function solves the issue.
6 years ago
Jindrich Makovicka
25ab9c1997
Codechange: Improve (un)zoom performance
...
When zooming out with a high res display, there can be about 150k sprites
to be sorted before displaying. With the O(n^2) complexity of the sprite
sorter, this can take several seconds.
This patch works around this by sorting the sprites by the xmin coordinate
first using QSort, which later allows an early bailout out of the inner
loop. This is enough to cut down the full unzoom time on a 4k display to a
fraction of second.
6 years ago
translators
47ff673664
Update: Translations from eints
...
finnish: 25 changes by ln
6 years ago
Samu
eff09c43cd
Fix #4109 : Add more water checks to the Oil Rig layout
...
Prevents Oil Rig docking tile from becoming unreachable by ships when spawning next to each other.
6 years ago
Jonathan G Rennison
c00d049057
Scheduled dispatch: Don't show invalid required vehicle estimate
6 years ago
translators
bddf25c36a
Update: Translations from eints
...
portuguese (brazilian): 66 changes by Tucalipe
6 years ago
Jonathan G Rennison
0e3986c39c
Extend timetable wait/travel times from 16 to 32 bits wide
6 years ago
Jonathan G Rennison
ee00a28717
Merge branch 'template_train_replacement' into jgrpp
...
# Conflicts:
# src/saveload/extended_ver_sl.cpp
6 years ago
Jonathan G Rennison
c4f5c8e789
TBTR: Add option to replace only old vehicles
6 years ago
Miguel Horta
42b00c3b39
Fix #6938 : Don't change company value to perform cost estimations ( #6939 )
...
These meddling kids dared to play with magic, but the ancients texts
weren't ready for that.
Refactors logic to estimate costs that dated to even before OpenTTD 0.1;
6 years ago
Miguel Horta
e00908f5e9
Fix #6898 : Replace atoi() with strtoul()
...
Normalize type and parsing of generation_seed across all files
Add assert_compile() to ensure correct type
6 years ago
translators
fbfa4eb592
Update: Translations from eints
...
polish: 3 changes by xaxa
6 years ago
Jonathan G Rennison
2c4d3192c6
Fix trains unnecessarily slowing down when passing waypoints
6 years ago
Jonathan G Rennison
92a5e59165
Zoning: Add modes to show 2x2 and 3x3 town road grids
6 years ago
translators
9cf999bca7
Update: Translations from eints
...
korean: 2 changes by telk5093
6 years ago
translators
8a70101e7f
Update: Translations from eints
...
vietnamese: 63 changes by myquartz
6 years ago
translators
25a060b4ae
Update: Translations from eints
...
vietnamese: 2 changes by myquartz
6 years ago
Johannes E. Krause
662dcc3c31
Fix #6920 : Make 9.8m/s^2 a common constant for TE-calculation
6 years ago
Jonathan G Rennison
79f1c2b97b
Zoning: Fix off-by-one in zoning cache rect invalidation (SW edge)
6 years ago
Jonathan G Rennison
cff61bac96
Merge branch 'progsig-sx' into jgrpp
...
# Conflicts:
# src/command.cpp
6 years ago
Jonathan G Rennison
e01ea3e629
Change progsig command type from landscape to other management
6 years ago
translators
060248a422
Update: Translations from eints
...
spanish (mexican): 2 changes by Absay
6 years ago
Stefan Strogin
fec44b0d09
Fix #6854 : Compilation with ICU 62 ( #6912 )
6 years ago
SamuXarick
41fb7cb15e
Fix #6892 : [Script] CONFIG_RANDOM did not use the full parameter range ( #6902 )
6 years ago
Jonathan G Rennison
6bcc705c7c
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/saveload/saveload.cpp
6 years ago
translators
59a1614ba0
Update: Translations from eints
...
czech: 27 changes by djst
croatian: 1 change by VoyagerOne
italian: 1 change by lorenzodv
6 years ago
Max Maton
eed0da60a2
Fix #6622 : Fixes empty company name in news when gamescript constructs a town
6 years ago
Samuel Cochran
1a73c39838
Add: BACKSPACE can be mapped as a hotkey
6 years ago
Jonathan G Rennison
6f9f467dbe
Fix struct SpriteInfo comparator not being marked const
6 years ago
Charles Pigott
ca5b68145a
Fix #6839 : OLD_GM_DIR midi search path got lost ( #6900 )
6 years ago
Jonathan G Rennison
ce4e2ca3c3
Add setting to enable flipping direction of all train types in depot
6 years ago
Jonathan G Rennison
ce6d6db4d5
Fix setting timetable leave early flag of current order
6 years ago
translators
94961732a3
Update: Translations from eints
...
basque: 4 changes by Thadah
6 years ago
translators
8137d14d33
Update: Translations from eints
...
russian: 1 change by Lone_Wolf
6 years ago
Niels Martin Hansen
bb086f9240
Fix: Better "temp" path for decoded MPSMIDI files when source filename has no path separators
6 years ago
Niels Martin Hansen
560b01f307
Fix: Check the search paths for standard MIDI files
6 years ago
Michael Lutz
4b0b4e0643
Feature: [NewGRF] Increase size of persistent storage to 256.
6 years ago
frosch
6391d49277
Fix: Variable 0x85 had no bounds checks.
6 years ago
Jonathan G Rennison
a37e30dfd0
Merge branch 'master' into jgrpp
6 years ago
Jonathan G Rennison
a6596a6e34
Merge branch 'tracerestrict-sx' into jgrpp
6 years ago
Jonathan G Rennison
7877b40699
Fix missing switch-case break in tracerestrict GUI
...
Fixes #66
6 years ago
Jonathan G Rennison
3d60f2a4cf
Merge branch 'crashlog_improvements' into jgrpp
6 years ago
Jonathan G Rennison
743432e7f0
Try to do non-main thread crash save/screenshot in main thread
6 years ago
Jonathan G Rennison
5d61b27faa
Add note to crashlog if crash is in non-main thread
6 years ago
Jonathan G Rennison
79644493c9
Add method to get whether current thread is non-main
6 years ago
Jonathan G Rennison
dde88887ae
Add method to get name of current thread
6 years ago
Jonathan G Rennison
312595b737
Merge branch 'cpp-11' into crashlog_improvements
6 years ago
Jonathan G Rennison
6c546a2145
Add include for scope header file
6 years ago
Jonathan G Rennison
16a245ccab
Merge branch 'signal_tunnels_bridges' into jgrpp
6 years ago
Jonathan G Rennison
9638d22ff7
Fix clearing wrong M2 bit in GetAndClearLastBridgeEntranceSetSignalIndex
6 years ago
Jonathan G Rennison
3e50336079
Add trace restrict train status conditional
6 years ago
Jonathan G Rennison
23cfd4709c
Merge branch 'signal_tunnels_bridges' into jgrpp
6 years ago
Jonathan G Rennison
a0ef4ea760
Fix incorrect signal offsets in GetAndClearLastBridgeEntranceSetSignalIndex
...
Fixes #65
6 years ago
Jonathan G Rennison
e789a6ff86
Replace sprite cache implementation
...
Use malloc instead of custom allocator, to improve performance.
Change eviction mechanism to reduce performance problems.
Remove periodic compaction mechanism.
Simplify LRU mechanism.
6 years ago
Jonathan G Rennison
6242c50725
Use a std::vector for SpriteCache struct array
6 years ago
translators
703e7f8fc7
Update: Translations from eints
...
spanish (mexican): 1 change by Absay
6 years ago
keldorkatarn
6228a336d4
Show the most relevant information in the vehicle list window, based on what the list is sorted on.
...
(cherry picked from commit da2d0e14fecec35dbf805395200b12998c8cc52a)
Minor changes
6 years ago
Jonathan G Rennison
d8b9e2953e
Merge branch 'enhanced_viewport_overlay' into jgrpp
...
# Conflicts:
# src/command.cpp
# src/saveload/extended_ver_sl.cpp
6 years ago
Jonathan G Rennison
f59535c0b7
Merge branch 'tracerestrict-sx' into jgrpp
...
# Conflicts:
# src/train_cmd.cpp
6 years ago
keldorkatarn
98da7019d6
Plans: Make it possible to give plans a name.
...
(cherry picked from commit d9b553f130a6eda36e2eea217785f829d3d8624e)
6 years ago
Jonathan G Rennison
2f2937356b
Add command parameter validation to plan commands
...
(cherry picked from commit 957cff34dc
)
6 years ago
Jonathan G Rennison
90f89770c2
Set CMD_NO_TEST flag for plan commands
...
(cherry picked from commit 8709fdade3
)
6 years ago
Jonathan G Rennison
60cc1a48ac
Refresh trace restrict slots window as with the train list window
6 years ago
keldorkatarn
acdeaa715e
Tracerestrict slots: Fix a crash bug when selling a train that's in a tracerestrict slot. Again a use of an invalid iterator. We need to check FIRST if range.first and reange.second are equal. After erasing the range those iterators are invalid.
...
(cherry picked from commit 7aea2ced3ced5ec4201fbad9c206451aad057718)
6 years ago
Jonathan G Rennison
1c41cff322
Add GV flags and reversing distance to DumpVehicleFlags
6 years ago
Jonathan G Rennison
fb3cb9c3d2
Enable NewGRF debug window for non-GRF vehicles
6 years ago
Jonathan G Rennison
df92a056df
Fix #6875 : Depot building cost does not include foundation build cost ( #6883 )
6 years ago
frosch
97d6e3c90f
Fix: Variable 0x85 had no bounds checks.
6 years ago
Jonathan G Rennison
a36304481e
Fix visual glitches rendering multi-part order lines
6 years ago
Jonathan G Rennison
6578d94e63
Add support for timetabled wait times at waypoints
6 years ago
Jonathan G Rennison
5732e4f7ff
Show reversing and timetable waiting in vehicle status bar
6 years ago
Jonathan G Rennison
940314a3c7
Use std::string for CommandContainer text instead of giant static buffer
...
Use move semantics for CommandContainer instance where feasible
6 years ago
Jonathan G Rennison
957cff34dc
Add command parameter validation to plan commands
6 years ago
Jonathan G Rennison
8709fdade3
Set CMD_NO_TEST flag for plan commands
6 years ago
Jonathan G Rennison
e55a327c09
Enable locking timetable travel times
6 years ago
Jonathan G Rennison
5344ec1931
Add a "leave early" order timetable flag
...
Re-arrange timetable GUI slightly.
Add an "extra" drop-down item.
6 years ago
Jonathan G Rennison
a5603b539f
Fix order extra data/flags copying conditions in Order::AssignOrder
...
Data/flags were not copied to vehicle current_orders if cargo-type
load/unload was not being used.
6 years ago
Jonathan G Rennison
d839526365
Fix bf8d7df: Script/AI construction of rail track and waypoints ( #6881 )
6 years ago
Jonathan G Rennison
28c5453926
Merge branch 'master' into jgrpp
6 years ago
translators
50d930298d
Update: Translations from eints
...
croatian: 1 change by VoyagerOne
6 years ago
Jonathan G Rennison
bdf155e60c
Fix: Depot building cost does not include foundation build cost ( #6875 )
6 years ago
translators
a53e4d8fe5
Update: Translations from eints
...
dutch: 137 changes by mrLeopold
6 years ago
Jonathan G Rennison
f06c2e0475
Add NewGRF feature for varact2 station var 42
6 years ago
translators
27c4f5517f
Update: Translations from eints
...
dutch: 115 changes by mrLeopold
6 years ago
Jonathan G Rennison
4566699939
Fix script/AI construction of rail track and waypoints
...
Broken by increase to 64 rail types (bf8d7df736
)
6 years ago
Jonathan G Rennison
cb7eea8896
Add NewGRF features for more bridge types and Action 0 bridges prop 0x14
6 years ago
cirdan
c6d4a6b5e4
Rework end loop in GrowTownWithBridge
...
Rework the end loop in GrowTownWithBridge to keep track of bridge
types already tried. This also fixes a bug that prevented the last
bridge type from being tried at all.
(cherry picked from commit 2b1d2c5887f8c3e27a8229ef87d670395aab2011)
6 years ago
cirdan
f41a125d8e
Raise the maximum number of bridge types to 16
...
Raise the maximum number of possible bridge types to 16. The new
bridge types have default properties that make them unavailable at
any year and bridge length, so they cannot be used unless a NewGRF
overrides them.
(cherry picked from commit da399d7bf278ba32fb9f14af65cfcefe5d276e71)
6 years ago
cirdan
1aa13c9ea3
Allow NewGRFs to set the selection sprite for a bridge
...
Allow NewGRFs to define the sprite to use for a bridge in the bridge
selection window through Action0 property 14.
(cherry picked from commit 8434809a5b57477908e8d5f663e950546c7c8408)
6 years ago
translators
004f54f4c8
Update: Translations from eints
...
hebrew: 23 changes by dnd_man
french: 45 changes by glx
6 years ago
Jonathan G Rennison
848a92e0d9
Fix signal state propagation from the back side of tunnel/bridge tiles
6 years ago
Jonathan G Rennison
59c396cc3b
Fix wrong line height in click to select order in timetable GUI
6 years ago