Commit Graph

23287 Commits (c5e30b8f0481c968b7cd5340834f9f8b47c4d249)
 

Author SHA1 Message Date
cirdan c5e30b8f04 Fix file descriptor leak in LoadOldSaveGame
LoadOldSaveGame was leaking a file descriptor when it
successfully loaded a savegame.

(cherry picked from commit f47cfbbba0b182f116109e02445bb419fab1a157)
8 years ago
cirdan 293ce8b4ab Remove impossible conditional in RealSave_Town
Saving always uses the current savegame version SAVEGAME_VERSION,
which is non-decreasing and already greater than 166.

(cherry picked from commit 6b79497d380b3ae865ddf4d3efb71c319a2bb579)
8 years ago
cirdan 4a19babf9e Remove unused ChunkType flag CH_AUTO_LENGTH
CH_AUTO_LENGTH is no longer used anywhere, so remove all code
that depends on it.

(cherry picked from commit 9c620d9de5d45b78f7d992d6b3897009fe988d86)
8 years ago
cirdan ec157b4a66 Remove save-only autolength flag from economy chunk handlers
CH_AUTO_LENGTH is only used when saving chunks; it makes no sense
to set it for chunks without a save handler.

(cherry picked from commit 8b2fe11d8491fb5f3b9bd7dd5344a0956817e41c)
8 years ago
cirdan e6122f5ce4 Remove ZeroedMemoryAllocator from ScriptText
Have ScriptText initialise all of its members on construction and
not derive from ZeroedMemoryAllocator.

(cherry picked from commit 3240126202d3437396004f2d5b0371783effb1ea)

Reorder ScriptText constructor initialisers.
8 years ago
cirdan 80fd6a2783 Drop memory allocator from ClientNetworkGameSocketHandler
Have ClientNetworkGameSocketHandler initialise all of its members
on construction and not derive from ZeroedMemoryAllocator.

(cherry picked from commit dddda4f0b7ba0bd6f310f924d3b85cadbc81dc99)
8 years ago
cirdan 33e3956b13 Remove ZeroedMemoryAllocator from WindowDesc
All fields are initialised in the constructor, plus no WindowDesc
is ever constructed via operator new.

(cherry picked from commit 94750756bfbf8ab5ca36e6a38f6f7b556ca31b32)
8 years ago
Jonathan G Rennison 349cd8a6f0 Where possible use compiler builtins for CountBits and FindFirstBit. 8 years ago
Jonathan G Rennison 376a45d9fc Fix wrong bit-allocation in doc comment of CmdModifyOrder. 8 years ago
Jonathan G Rennison 761463d134 Merge branch 'template_train_replacement-sx' into jgrpp
# Conflicts:
#	src/window.cpp
8 years ago
Jonathan G Rennison 1af23b7caa Merge branch 'template_train_replacement' into template_train_replacement-sx
# Conflicts:
#	src/saveload/saveload.cpp
8 years ago
Jonathan G Rennison 5064dcdd2c TBTR: Create template window: Fix vehicle unselection on drag abort. 8 years ago
Jonathan G Rennison 0c5a98d125 TBTR: Create template window: Sell button now lowers on hover. 8 years ago
Jonathan G Rennison 23a1c07378 Merge branch 'master' into template_train_replacement
Fix Template creation window vehicle drag cursor.
8 years ago
frosch f46996243b (svn r27632) -Feature: When dragging vehicles in group or depot GUI, draw the complete articulated vehicle. 8 years ago
frosch 0829753fd0 (svn r27631) -Codechange: Split GetSingleVehicleWidth from GetVehicleWidth. 8 years ago
frosch caa9bffb56 (svn r27630) -Codechange: Deduplicate code to attach vehicle to cursor. 8 years ago
frosch 0214caaac2 (svn r27629) -Fix: When dragging multiple vehicles in the depot, make the destination gap as long as the chain instead of just considering the first vehicle. 8 years ago
frosch 0e3e4eeb53 (svn r27628) -Codechange: Prepare for drawing cursors consisting of multiple sprites. 8 years ago
frosch 2337d169e8 (svn r27627) -Codechange: Deduplicate some cursor magic into SetMouseCursorBusy. 8 years ago
frosch 93d5995bed (svn r27626) -Codechange: Do not use the cursor sprite as PlaceObject status in the main toolbar. 8 years ago
frosch 2257d782b0 (svn r27625) -Doc: CursorVars 8 years ago
translators 9d5ed2c469 (svn r27624) -Update from Eints:
spanish (mexican): 24 changes by Absay
8 years ago
Jonathan G Rennison 1d66e66c91 Version: Committing version data for tag: jgrpp-0.14.0 8 years ago
Jonathan G Rennison 7b56097f50 Merge branch 'master' into jgrpp
# Conflicts:
#	config.lib
#	src/linkgraph/demands.cpp
#	src/linkgraph/mcf.cpp
#	src/linkgraph/refresh.cpp
#	src/linkgraph/refresh.h
#	src/smallmap_gui.cpp
8 years ago
frosch a2a69c1480 (svn r27623) -Fix (r27616) [FS#6492]: Missed two version checks, and messed one up. 8 years ago
frosch cc18df4cb7 (svn r27622) -Change: In industry map view, give visible industry types the highest tile priority, and hidden industry types a lower one. This way filtered and highlighted industries are not hidden by overlapping tiles in zoomed-out smallmap. (adf88) 8 years ago
frosch 46aeed3817 (svn r27621) -Fix (r27620): Committed too early. 8 years ago
frosch bd6799a9f8 (svn r27620) -Codechange: Inline GetEffectiveTileType (adf88) 8 years ago
frosch 2c403c8a80 (svn r27619) -Update: Baseset translations 8 years ago
Jonathan G Rennison e29da8323c Merge branch 'enhanced_viewport_overlay-sx' into jgrpp 8 years ago
Jonathan G Rennison c6d9a49a73 Merge branch 'enhanced_viewport_overlay' into enhanced_viewport_overlay-sx 8 years ago
Jonathan G Rennison 8c4904a9e4 Update route markers/lines when drag/dropping vehicle orders. 8 years ago
translators aa140bb928 (svn r27618) -Update from Eints:
latvian: 19 changes by Parastais
8 years ago
Jonathan G Rennison 3ea652c4b9 Merge branch 'tracerestrict-sx' into jgrpp 8 years ago
Jonathan G Rennison 8482fc6aef Merge branch 'tracerestrict' into tracerestrict-sx 8 years ago
Jonathan G Rennison 3d6cbb76b4 Allow value of "PBS entry signal" conditional to be a rail depot. 8 years ago
Jonathan G Rennison e7dfc40a59 Merge branch 'template_train_replacement-sx' into jgrpp 8 years ago
Jonathan G Rennison 0d45eba6ce Merge branch 'template_train_replacement' into template_train_replacement-sx 8 years ago
Jonathan G Rennison f245049f91 TBTR: Select most used rail-type by default, instead of first rail-type. 8 years ago
translators c6ac52e71a (svn r27617) -Update from Eints:
latvian: 6 changes by Parastais
8 years ago
frosch f7a7f141d3 (svn r27616) -Codechange [FS#6487]: [Build] Change the GCC version detection so that it works with two-digit and truncated versions. 8 years ago
translators 18bbe02337 (svn r27615) -Update from Eints:
spanish: 7 changes by SilverSurferZzZ
8 years ago
Jonathan G Rennison cd0211095b Merge branch 'tracerestrict-sx' into jgrpp 8 years ago
Jonathan G Rennison 7a18f9eeeb Merge branch 'tracerestrict' into tracerestrict-sx 8 years ago
Jonathan G Rennison 58817c26e0 Fix reservation through multiple reserve-through signals after a junction. 8 years ago
fonsinchen ff96590312 (svn r27614) -Codechange: Use a fixed array instead of a map for link refresher cargo capacities. (JGR) 8 years ago
fonsinchen a81b7a24a6 (svn r27613) -Codechange: Use a flat vector instead of a map in FlowEdgeIterator. (JGR) 8 years ago
fonsinchen 6b2eed0a70 (svn r27612) -Codechange: Replace three uses of std::list with std::queue/vector. (JGR) 8 years ago
fonsinchen 8d5566651b (svn r27611) -Codechange: Cache the calculated value of CapacityAnnotation 8 years ago