Commit Graph

16415 Commits (efa27abde54ae30755b4f4d558f3949081169a8e)

Author SHA1 Message Date
Jonathan G Rennison 58b6bf16c3 Linkgraph: Enable MCF custom allocator only for GCC 4.9+
Earlier compilers don't use std::allocator_traits to query allocators.
9 years ago
Jonathan G Rennison af93385f41 Merge pull request #3 from auge8472/translate-de
Translate de; improved breakdowns, adjacent level crossings
9 years ago
Heiko August d485f548f0 translate-de: add translation for improved breakdowns 9 years ago
Heiko August e59a789fff translate-de: fix wrong template string 9 years ago
Jonathan G Rennison e22e1df939 Store annotation and node ID in set key, to reduce ptr derefs on sort.
Store the set iterator in the node, for faster erasing during forks.

Use a custom pool allocator to store set nodes contiguously.
9 years ago
Jonathan G Rennison 4534812b4f Use a fixed array instead of a map for link refresher cargo capacities. 9 years ago
translators bf61d7a797 (svn r27458) -Update from WebTranslator v3.0:
basque - 20 changes by Thadah
9 years ago
Jonathan G Rennison 0fb79a8f15 Use a flat vector instead of a map in FlowEdgeIterator.
This reduced the cost of Dijkstra<CapacityAnnotation> by approx. 25%,
in a test profiling.
9 years ago
Jonathan G Rennison a3768d3a29 Label threads with a descriptive name where supported (pthreads). 9 years ago
Jonathan G Rennison 3a28be7841 Linkgraph: Replace three uses of std::list with std::deque/vector. 9 years ago
Jonathan G Rennison 564744d427 Cache the calculated value of CapacityAnnotation.
This is because CapacityAnnotation::Comparator::operator()
was appearing at the top of profiler output due to regenerating
the annotation value on every comparison when performing a set operation.
9 years ago
Jonathan G Rennison 352a3229cd Do not update/redraw windows and viewports in dedicated mode.
This has a quite significant performance cost when the result will
only be thrown away by the null blitter anyway.
No longer call UpdateWindows in main loop, which renders
dirty windows and viewports.
No longer update vehicle sprites IDs or mark dirty vehicles in viewports.
This saved >50% of server CPU time in a test game.
9 years ago
translators 786838d277 (svn r27457) -Update from WebTranslator v3.0:
croatian - 1 changes by VoyagerOne
spanish - 2 changes by SilverSurferZzZ
9 years ago
Jonathan G Rennison 5b1fe71552 Merge branch 'tracerestrict-sx' into jgrpp
Conflicts:
	src/rail_cmd.cpp
9 years ago
Jonathan G Rennison 8eac403224 Merge branch 'tracerestrict' into tracerestrict-sx 9 years ago
Jonathan G Rennison 4d484a858f Fix attempts to recolour signal sprites from GRFs. 9 years ago
translators e94c79227b (svn r27456) -Update from WebTranslator v3.0:
korean - 7 changes by telk5093
spanish - 4 changes by SilverSurferZzZ
9 years ago
Jonathan G Rennison 9ee5aecbaf Merge branch 'enhanced_viewport_overlay-sx' into jgrpp 9 years ago
Jonathan G Rennison 9ed7fe22fb Merge branch 'enhanced_viewport_overlay' into enhanced_viewport_overlay-sx 9 years ago
Jonathan G Rennison 1c3c413cfb Merge branch 'save_ext' into enhanced_viewport_overlay-sx 9 years ago
Jonathan G Rennison dd5e6eaa28 Merge branch 'master' into save_ext 9 years ago
Jonathan G Rennison 9bd32e76bd Merge branch 'progsig-sx' into jgrpp
Conflicts:
	src/command.cpp
9 years ago
Jonathan G Rennison 769b8ae096 progsig: Fix remove and clone program functions being completely broken.
Remove function only removed instructions from the local machine, and
was therefore not MP safe.
Clone function failed to work correctly for non-trivial cases,
and sometimes caused an array out of bounds assertion.

These are replaced by a new commandproc which does each operation
as a single action, which is therefore MP safe.

Remove an unused struct field.
9 years ago
Jonathan G Rennison f6a8f27501 Make server and all clients run desync checks if a client desyncs. 9 years ago
Jonathan G Rennison 69c89c4881 Check caches at desync level 1, every 500 ticks.
Also check aircraft cache.
9 years ago
translators 06fc9283f7 (svn r27455) -Update from WebTranslator v3.0:
spanish - 4 changes by SilverSurferZzZ
9 years ago
Jonathan G Rennison aa00038c9c Do not write desync messages to the console on Windows.
Windows seems unable to handle direction change characters in consoles.
9 years ago
Jonathan G Rennison 52d3f075ea Fix over shift left undefined behaviour.
The maximum zoom level is now >= 8, so shifting a uint8 by a zoom
level results in undefined behaviour.
9 years ago
Jonathan G Rennison d2cd74223e Fix another out of bound buffer read in viewport map mode.
Drawing of non-company tunnels/bridges.
Caught by AddressSanitizer.
9 years ago
Jonathan G Rennison ecf5943954 Fix some undefined behaviour: signed overflow and over shift left.
Caught by UndefinedBehaviourSanitizer.
9 years ago
translators ca93b0ef79 (svn r27454) -Update from WebTranslator v3.0:
korean - 4 changes by telk5093
9 years ago
translators d8b8f033d5 (svn r27453) -Update from WebTranslator v3.0:
italian - 1 changes by lorenzodv
9 years ago
Jonathan G Rennison 8e3d9a520c Merge branch 'enhanced_viewport_overlay-sx' into jgrpp 9 years ago
Jonathan G Rennison f8483614e9 Merge branch 'enhanced_viewport_overlay' into enhanced_viewport_overlay-sx 9 years ago
Jonathan G Rennison 6075dd22e2 Show small square if vehicle owner does not match list owner.
No longer check the infrastructure sharing setting.
Add a separate setting to control company colour squares (default on).
9 years ago
Jonathan G Rennison e91b84753b Fix performance regression rendering vehicle route overlays.
Performance issue was triggered when orders were modified whilst
the route was displayed and the game was in multiplayer mode.
9 years ago
translators 17e6f42f03 (svn r27452) -Update from WebTranslator v3.0:
russian - 1 changes by Lone_Wolf
9 years ago
alberth e1a00bc244 (svn r27451) -Feature[FS#6241]: Move sprite 8 positions in sprite aligner with ctrl+click. (based on work by juzza1) 9 years ago
alberth e32afcc4ea (svn r27450) -Feature[FS#6391](r27446): Lower the sell-chain button in the train depot GUI while dragging a vehicle over it. (Eearslya) 9 years ago
patch-import 0823f58ddc Original patch from McZapkie 9 years ago
Jonathan G Rennison 7ff6ad1e36 Merge branch 'enhanced_viewport_overlay-sx' into jgrpp 9 years ago
Jonathan G Rennison ea3198cc25 Merge branch 'save_ext' into enhanced_viewport_overlay-sx 9 years ago
Jonathan G Rennison 9914ba7e63 Merge branch 'master' into save_ext 9 years ago
Jonathan G Rennison 0ee812b5a9 Merge branch 'enhanced_viewport_overlay' into enhanced_viewport_overlay-sx 9 years ago
Jonathan G Rennison 6939bc7d87 Fix string type mismatch in German translation text. 9 years ago
Jonathan G Rennison 4b77beb3f9 Merge remote-tracking branch 'auge8472/translate-de' into jgrpp 9 years ago
translators 05812cd61b (svn r27449) -Update from WebTranslator v3.0:
spanish - 2 changes by SilverSurferZzZ
9 years ago
Jonathan G Rennison f770dd1ed9 Fix out of bound buffer read for non-company tunnels in viewport map mode.
Caught by AddressSanitizer.
9 years ago
Jonathan G Rennison f8e1cf0dec Fix out of bound buffer read for non-company tunnels in viewport map mode.
Caught by AddressSanitizer.
9 years ago
translators 420eb83065 (svn r27448) -Update from WebTranslator v3.0:
spanish - 1 changes by SilverSurferZzZ
9 years ago
translators 7db053813b (svn r27447) -Update from WebTranslator v3.0:
spanish - 2 changes by SilverSurferZzZ
9 years ago
frosch 1a0723579b (svn r27446) -Feature: Lower the sell-vehicle button in the depot GUI while dragging a vehicle over it. (Eearslya) 9 years ago
translators 15b7e8faf1 (svn r27445) -Update from WebTranslator v3.0:
spanish - 1 changes by SilverSurferZzZ
9 years ago
zuu 0cff11130d (svn r27444) -Add: When viewing online content of a particular type, hide content of other types unless they have been (auto)selected for download. 9 years ago
zuu 90b340e689 (svn r27443) -Fix: Negoation in comment was wrong. 9 years ago
translators 4dcda474fc (svn r27442) -Update from WebTranslator v3.0:
spanish - 3 changes by SilverSurferZzZ
9 years ago
Jonathan G Rennison 4608ed79bb Merge branch 'enhanced_viewport_overlay-sx' into jgrpp 9 years ago
Jonathan G Rennison 16c5a0a812 Merge branch 'enhanced_viewport_overlay' into enhanced_viewport_overlay-sx 9 years ago
Jonathan G Rennison 5a0510e488 Fix dark/lighten colour mappings going to/from yellow flash cycle.
This is problematic for the green company in viewport map owner mode,
where it becomes flashing yellow for slopes and tunnels (if enabled).
9 years ago
Jonathan G Rennison 8cc6bddc24 Merge branch 'enhanced_viewport_overlay-sx' into jgrpp
Conflicts:
	src/misc.cpp
9 years ago
Jonathan G Rennison 2a8b66b7bf Merge branch 'enhanced_viewport_overlay' into enhanced_viewport_overlay-sx 9 years ago
Jonathan G Rennison 919057a5e6 Cache tunnel info in viewport map mode, to prevent render flicker.
If we see a tunnel during the usual tile scan, keep it in the cache
until it is explicitly evicted by a clear tunnel tile action, or
the cache is cleared at game init/load/shutdown.
Select colours at the drawing rather than the cache-building stage.
Bridges and tunnels are now stored/handled separately.
The process for bridges is mostly unchanged.
9 years ago
Jonathan G Rennison 3788228d8f Slightly lower displayed height of bridges in viewport map mode. 9 years ago
translators a55e6b6d5a (svn r27441) -Update from WebTranslator v3.0:
spanish - 3 changes by SilverSurferZzZ
9 years ago
translators 12229d80fe (svn r27440) -Update from WebTranslator v3.0:
spanish - 2 changes by SilverSurferZzZ
9 years ago
translators 7ce96b4d47 (svn r27439) -Update from WebTranslator v3.0:
spanish - 7 changes by SilverSurferZzZ
9 years ago
Heiko August 063c125f20 translate-de: add translation of setting textes for adjacent level crossings patch 9 years ago
frosch 515fb701c2 (svn r27438) -Fix (r27346) [FS#6387]: The build object hotkey no longer checked whether there were any objects defined. 9 years ago
translators 19e0cb8c50 (svn r27437) -Update from WebTranslator v3.0:
spanish - 3 changes by SilverSurferZzZ
9 years ago
translators 591c3e2c81 (svn r27436) -Update from WebTranslator v3.0:
spanish - 1 changes by SilverSurferZzZ
9 years ago
translators 246e85088d (svn r27435) -Update from WebTranslator v3.0:
spanish - 5 changes by SilverSurferZzZ
9 years ago
Jonathan G Rennison 9990b1b837 Merge branch 'enhanced_viewport_overlay-sx' into jgrpp 9 years ago
Jonathan G Rennison 33cc6916db Merge branch 'enhanced_viewport_overlay' into enhanced_viewport_overlay-sx 9 years ago
Jonathan G Rennison 2503704d38 Fix displayed height for bridge/tunnels in viewport map mode. 9 years ago
Jonathan G Rennison 072d428ed8 Merge remote-tracking branch 'auge8472/translate-de' into jgrpp 9 years ago
Jonathan G Rennison b5695551a5 Merge branch 'enhanced_viewport_overlay-sx' into jgrpp 9 years ago
Jonathan G Rennison 2c2f846e20 Merge branch 'enhanced_viewport_overlay' into enhanced_viewport_overlay-sx 9 years ago
Jonathan G Rennison aa9f44eaec Fix flicker/render errors of bridge/tunnels in viewport map mode.
Fix bridges not being rendered when the region to be repainted
did not intersect with either of the bridge ends.
Fix flicker due to non-deterministic ordering of the two bridge/tunnel
ends (if the tile heights of the two ends are different).
9 years ago
Jonathan G Rennison 196b78af30 Merge branch 'zoning' into jgrpp 9 years ago
Jonathan G Rennison c120b810d1 Mark dirty the catchment of a station on change as necessary for zoning.
If the zoning mode is station catchment, or unserved industry/building,
mark dirty the station catchment rectangle before removing, or after
adding, (a) station tile(s).
In the case of unserved industry mode, increase the refreshed catchment
radius by 10 tiles, to wholly include industries partially inside
the catchment area.
9 years ago
Jonathan G Rennison 169a979737 Merge branch 'signal_tunnels_bridges-sx' into jgrpp
Conflicts:
	src/tunnelbridge.h

(Fixup zoom level changes).
9 years ago
Jonathan G Rennison b96a2f7bd7 Merge branch 'signal_tunnels_bridges' into signal_tunnels_bridges-sx 9 years ago
Jonathan G Rennison 95a329a4b9 Fix signals on far side of bridge not being updated when adding/removing signals. 9 years ago
Jonathan G Rennison b3e03e8cf9 Fix middle of bridge not being redrawn when adding removing signals. 9 years ago
Jonathan G Rennison e07e4fdb8e Merge branch 'master' into signal_tunnels_bridges 9 years ago
Jonathan G Rennison 4e3e4378b3 Merge branch 'vehicle_repair_costs-sx' into jgrpp 9 years ago
Jonathan G Rennison 98047b5d87 Merge branch 'departure-boards-sx' into jgrpp 9 years ago
Jonathan G Rennison 8fa7b8d8cb Merge branch 'vehicle_repair_costs' into vehicle_repair_costs-sx 9 years ago
Jonathan G Rennison def0347ea8 Fix compilation on MSVC due to ambiguous overload:
OverflowSafeInt<T,T_MAX,T_MIN>::operator /
9 years ago
Jonathan G Rennison 7dc91d0858 Merge branch 'departure-boards' into departure-boards-sx 9 years ago
Jonathan G Rennison 44d545d220 Merge branch 'master' into departure-boards 9 years ago
Jonathan G Rennison 3576488527 Fix departures_widget.h being missing from source.list
Fix whitespace issues.
9 years ago
Jonathan G Rennison b47c8825e7 Merge branch 'auto_timetables-sx' into jgrpp 9 years ago
Jonathan G Rennison fe598efde5 Merge branch 'auto_timetables' into auto_timetables-sx 9 years ago
Jonathan G Rennison 37140f0038 Fix distribution of shared order timetable start dates.
(Ctrl-click on start date in timetable GUI)
This is due to a scaling issue.
9 years ago
Jonathan G Rennison 8d19727c93 Merge branch 'save_ext' into jgrpp
Conflicts:
	src/pathfinder/follow_track.hpp
9 years ago
Jonathan G Rennison 1234bdb07c Fix compilation issue with MSVC due to ordering of noreturn and cdecl. 9 years ago
Jonathan G Rennison a0b0641a8b Merge branch 'master' into save_ext 9 years ago
Jonathan G Rennison 3b60379a42 Merge branch 'signal_tunnels_bridges-sx' into jgrpp 9 years ago
Jonathan G Rennison 5d774e5844 Merge branch 'signal_tunnels_bridges' into signal_tunnels_bridges-sx 9 years ago