Commit Graph

47297 Commits

Author SHA1 Message Date
Jonathan G Rennison
dde88887ae Add method to get name of current thread 2018-08-26 22:23:11 +01:00
Jonathan G Rennison
312595b737 Merge branch 'cpp-11' into crashlog_improvements 2018-08-26 22:21:56 +01:00
Jonathan G Rennison
6c546a2145 Add include for scope header file 2018-08-26 22:19:16 +01:00
Jonathan G Rennison
16a245ccab Merge branch 'signal_tunnels_bridges' into jgrpp 2018-08-22 22:31:29 +01:00
Jonathan G Rennison
9638d22ff7 Fix clearing wrong M2 bit in GetAndClearLastBridgeEntranceSetSignalIndex 2018-08-22 22:31:11 +01:00
Jonathan G Rennison
3e50336079 Add trace restrict train status conditional 2018-08-21 19:22:35 +01:00
Jonathan G Rennison
23cfd4709c Merge branch 'signal_tunnels_bridges' into jgrpp 2018-08-21 04:23:05 +01:00
Jonathan G Rennison
a0ef4ea760 Fix incorrect signal offsets in GetAndClearLastBridgeEntranceSetSignalIndex
Fixes #65
2018-08-21 04:22:33 +01:00
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.
2018-08-19 20:52:01 +01:00
Jonathan G Rennison
6242c50725 Use a std::vector for SpriteCache struct array 2018-08-19 02:48:46 +01:00
translators
703e7f8fc7 Update: Translations from eints
spanish (mexican): 1 change by Absay
2018-08-17 19:45:42 +02:00
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
2018-08-16 06:58:08 +01:00
Jonathan G Rennison
d8b9e2953e Merge branch 'enhanced_viewport_overlay' into jgrpp
# Conflicts:
#	src/command.cpp
#	src/saveload/extended_ver_sl.cpp
2018-08-16 05:49:07 +01:00
Jonathan G Rennison
f59535c0b7 Merge branch 'tracerestrict-sx' into jgrpp
# Conflicts:
#	src/train_cmd.cpp
2018-08-16 05:45:30 +01:00
keldorkatarn
98da7019d6 Plans: Make it possible to give plans a name.
(cherry picked from commit d9b553f130a6eda36e2eea217785f829d3d8624e)
2018-08-16 05:30:56 +01:00
Jonathan G Rennison
2f2937356b Add command parameter validation to plan commands
(cherry picked from commit 957cff34dc)
2018-08-16 05:29:10 +01:00
Jonathan G Rennison
90f89770c2 Set CMD_NO_TEST flag for plan commands
(cherry picked from commit 8709fdade3)
2018-08-16 05:24:47 +01:00
Jonathan G Rennison
60cc1a48ac Refresh trace restrict slots window as with the train list window 2018-08-15 19:38:56 +01:00
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)
2018-08-15 19:22:18 +01:00
Jonathan G Rennison
1c41cff322 Add GV flags and reversing distance to DumpVehicleFlags 2018-08-15 03:43:57 +01:00
Jonathan G Rennison
fb3cb9c3d2 Enable NewGRF debug window for non-GRF vehicles 2018-08-15 03:14:53 +01:00
Jonathan G Rennison
df92a056df Fix #6875: Depot building cost does not include foundation build cost (#6883) 2018-08-14 22:05:47 +02:00
frosch
97d6e3c90f Fix: Variable 0x85 had no bounds checks. 2018-08-14 19:42:31 +01:00
Jonathan G Rennison
a36304481e Fix visual glitches rendering multi-part order lines 2018-08-14 12:35:37 +01:00
Jonathan G Rennison
6578d94e63 Add support for timetabled wait times at waypoints 2018-08-14 12:35:05 +01:00
Jonathan G Rennison
5732e4f7ff Show reversing and timetable waiting in vehicle status bar 2018-08-14 11:24:40 +01:00
Jonathan G Rennison
940314a3c7 Use std::string for CommandContainer text instead of giant static buffer
Use move semantics for CommandContainer instance where feasible
2018-08-13 12:16:41 +01:00
Jonathan G Rennison
957cff34dc Add command parameter validation to plan commands 2018-08-13 08:36:29 +01:00
Jonathan G Rennison
8709fdade3 Set CMD_NO_TEST flag for plan commands 2018-08-13 08:35:23 +01:00
Jonathan G Rennison
e55a327c09 Enable locking timetable travel times 2018-08-13 01:42:14 +01:00
Jonathan G Rennison
5344ec1931 Add a "leave early" order timetable flag
Re-arrange timetable GUI slightly.
Add an "extra" drop-down item.
2018-08-13 01:40:17 +01:00
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.
2018-08-13 01:16:16 +01:00
Jonathan G Rennison
d839526365 Fix bf8d7df: Script/AI construction of rail track and waypoints (#6881) 2018-08-12 09:45:38 +02:00
Jonathan G Rennison
292025394c Version: Committing version data for tag: jgrpp-0.26.2 2018-08-12 03:15:10 +01:00
Jonathan G Rennison
28c5453926 Merge branch 'master' into jgrpp 2018-08-12 03:08:27 +01:00
translators
50d930298d Update: Translations from eints
croatian: 1 change by VoyagerOne
2018-08-11 19:45:42 +02:00
Jonathan G Rennison
bdf155e60c Fix: Depot building cost does not include foundation build cost (#6875) 2018-08-11 01:32:32 +01:00
translators
a53e4d8fe5 Update: Translations from eints
dutch: 137 changes by mrLeopold
2018-08-09 19:45:42 +02:00
Jonathan G Rennison
b653c55d34 Documentation: Spelling/minor adjustments to NewGRF additions 2018-08-09 08:40:34 +01:00
Jonathan G Rennison
15d818facc Documentation: Add docs on NewGRF spec additions 2018-08-08 23:19:06 +01:00
Jonathan G Rennison
f06c2e0475 Add NewGRF feature for varact2 station var 42 2018-08-08 23:03:08 +01:00
translators
27c4f5517f Update: Translations from eints
dutch: 115 changes by mrLeopold
2018-08-08 19:45:45 +02:00
Jonathan G Rennison
4566699939 Fix script/AI construction of rail track and waypoints
Broken by increase to 64 rail types (bf8d7df736)
2018-08-07 23:20:51 +01:00
Jonathan G Rennison
cb7eea8896 Add NewGRF features for more bridge types and Action 0 bridges prop 0x14 2018-08-07 22:58:05 +01:00
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)
2018-08-07 22:44:36 +01:00
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)
2018-08-07 22:42:36 +01:00
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)
2018-08-07 22:42:07 +01:00
translators
004f54f4c8 Update: Translations from eints
hebrew: 23 changes by dnd_man
french: 45 changes by glx
2018-08-07 19:45:41 +02:00
Jonathan G Rennison
848a92e0d9 Fix signal state propagation from the back side of tunnel/bridge tiles 2018-08-07 08:24:06 +01:00
Jonathan G Rennison
59c396cc3b Fix wrong line height in click to select order in timetable GUI 2018-08-07 07:47:31 +01:00