Commit Graph

22532 Commits (61500b596eb7a20acc45b330ed23cdcf2a7fc124)
 

Author SHA1 Message Date
Jonathan G Rennison 61500b596e Fix tunnel/bridge entrance signal not being refreshed.
When a train left a tunnel or a bridge with no intermediary signals,
when setting the entrance signal to green, the display was not refreshed
with show track reservations was enabled.
8 years ago
Jonathan G Rennison 0d2e9f91bf Adjust signal on bridge/tunnel map bits, rename accessors, add docs.
Use same bit to store red/green state for entrances and exits.
No longer re-use exit bit to store red/green state of entrance.
Avoid modifying the M2 of tunnel entrances/exits.
Rename and rationalise map accessor functions.
Document bits used in landscape HTML docs.
8 years ago
Jonathan G Rennison 161f70eb4a Merge branch 'save_ext' into signal_tunnels_bridges 8 years ago
Jonathan G Rennison 8a59b960d4 Fix missing include in parent commit. 8 years ago
Jonathan G Rennison d124089d29 Add extended version tag and feature versions to output of -q. 8 years ago
Jonathan G Rennison 94d3700f79 SaveLoad: Add support for saving/loading from a std::vector<T *> 8 years ago
Jonathan G Rennison c752da3a9e SaveLoad: Add support for saving/loading from a std::deque<T *> 8 years ago
Jonathan G Rennison 27ee2da1f7 Merge branch 'cpp-11' into save_ext 8 years ago
Jonathan G Rennison 13fb737bed Add a template parameter for the inner container of MultiMap. 8 years ago
Jonathan G Rennison 8281041784 Fix action cost estimation for signal dragging over bridge/tunnels.
If a bridge/tunnel entrance is signalled, blacklist the far end.
8 years ago
Jonathan G Rennison 888cd1be07 Merge branch 'cpp-11' into signal_tunnels_bridges
# Conflicts:
#	src/saveload/saveload.cpp
8 years ago
Jonathan G Rennison ea2b04a6be Add C++11 container utility functions. 8 years ago
Jonathan G Rennison 8a2f9311a9 Include -01 in CFLAGS_BUILD when using clang. 8 years ago
Jonathan G Rennison 390a22f864 Enable FINAL, (un)linkely, __attribute__ for clang. 8 years ago
Jonathan G Rennison a3d0fc5817 Remove an unused extern declaration, update comment. 8 years ago
Jonathan G Rennison 8e8d7e93d5 Tidy up legacy-compatibility code in PATX/PLYX handlers.
Use lambdas instead of manual emulation.
Move an inner struct back into its owner function.
8 years ago
Jonathan G Rennison a6e0b1ac7d Merge branch 'cpp-11' into save_ext 8 years ago
Jonathan G Rennison f7af8b8bdc Silence -Wunused-variable warnings in src/table/townname.h 8 years ago
Jonathan G Rennison 6e9ea59ab5 Add a simple scope guard include file. 8 years ago
Jonathan G Rennison bb6ea150a3 Use likely/__builtin_expect for assertion macros.
(cherry picked from commit f82002cda2)
8 years ago
Jonathan G Rennison 0b7d68a6d1 Add support for verbose asserts.
(cherry picked from commit 48e4c35fdc)
8 years ago
Jonathan G Rennison 51099c3572 Unconditionally use static_assert. 8 years ago
Jonathan G Rennison 2fe7571034 Require C++11 support.
Set minimum compiler versions to:
GCC 4.7
clang 3.3
ICC 14.0
8 years ago
frosch 533cb7c156 (svn r27654) -Change: Enable C++11 for clang 3.3 (LordAro) 8 years ago
alberth f286ba8db2 (svn r27653) -Fix(r27647): Rename FileOperation enum and values to SaveLoadOperation to avoid nameclash with windows compiler toolkit. 8 years ago
alberth 0b8869930f (svn r27652) -Fix(r27650): Use the file operation being performed to set the _sl.action variable. 8 years ago
alberth e735bbebce (svn r27651) -Codechange: Introduce methods for setting the name and title of _file_to_saveload. 8 years ago
alberth a959c0c965 (svn r27650) -Codechange: Replace SaveOrLoadMode by FileOperation and DetailedFileType. 8 years ago
alberth c3bed437ee (svn r27649) -Codechange: Introduce detailed file type enum, rebuild FiosType with it. 8 years ago
alberth 3b84827773 (svn r27648) -Codechange: Remove remaining _saveload_mode usage. 8 years ago
alberth ec2b2fad58 (svn r27647) -Codechange: Introduce file operations, and use it to replace most of SaveLoadDialogMode 8 years ago
alberth ac72a6b1ed (svn r27646) -Codechange: Move _fios_items variable into the SaveLoadWindow class. 8 years ago
alberth 76cd96e709 (svn r27645) -Add: Give console commands their own file list storage. 8 years ago
alberth 8a9e9f838b (svn r27644) -Codechange: Split GetFiosItem into BuildFileList and FindItem, and move both to FileList. 8 years ago
alberth f618c0d0a5 (svn r27643) -Codechange: FiosGetDrives function also takes a destination file list. 8 years ago
alberth 93baf192a0 (svn r27642) -Codechange: FiosGet* file query functions take a destination file list. 8 years ago
alberth a38cdeccc0 (svn r27641) -Codechange: Fold the _fios_items file list vector into its own class. 8 years ago
alberth c530f89761 (svn r27640) -Codechange: Remove another use of _saveload_mode in the loading code. 8 years ago
alberth b6c29ae4eb (svn r27639) -Codechange: Also always set the abstract FileToSaveLoad::filetype when setting a mode. 8 years ago
alberth e78627f2f1 (svn r27638) -Codechange: Move FiosType enum, move and rename SetFiosType function. 8 years ago
alberth b5eb50da7b (svn r27637) -Codechange: Don't use _saveload_mode for scenario loading detection. 8 years ago
alberth 757bc0a97b (svn r27636) -Codechange: Rename FileType to AbstractFileType. 8 years ago
alberth a35e970ab0 (svn r27635) -Codechange: Move FileType and FileToSaveLoad structure definitions. 8 years ago
alberth df2221ba7e (svn r27634) -Codechange: Improve name of the SmallFiosItem struct. 8 years ago
alberth 55c7c21c5d (svn r27633) -Codechange: Extract _saveload_mode use from BuildFileList 8 years ago
Jonathan G Rennison e6c7134935 Merge branch 'master' into save_ext
# Conflicts:
#	src/saveload/saveload.cpp
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