summaryrefslogtreecommitdiff
path: root/src/signal.cpp
AgeCommit message (Collapse)Author
2020-07-27Fix: GCC warns about possibly uninitialized data in signal.cppTechGeekNZ
When compiling with '-Og', GCC warns about variables that are initialized by reference in the condition of a 'while' loop. This commit silences the warning by explicitly initializing the variables in question to their respective 'invalid value' markers, which will most likely be optimized out when the compiler realizes the values are never used.
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2017-08-13(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)frosch
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2013-11-25(svn r26110) -Codechange: add guard for enterdir being valid in signal coderubidium
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2011-02-07(svn r22017) -Codechange: move MarkTileDirtyByTile to viewport_func.hrubidium
2010-07-29(svn r20239) -Doc: Give a common name to all fall throughs (FALL THROUGH).terkhen
2010-05-13(svn r19814) -Codechange: give some more unnamed enums a name, in case they ↵rubidium
consisted of unrelated values use static const (u)int
2010-03-07(svn r19369) -Codechange: EnsureNoTrainOnTrackBits() returns a CommandCost now.alberth
2010-03-07(svn r19365) -Codechange: Move EnsureNoTrainOnTrackProc() to src/vehicle.cpp.alberth
2010-01-15(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, ↵rubidium
if a header require a header make it include that header
2009-09-07(svn r17464) -Codechange: use C++0x mode when compiling with gcc >= 4.3 or ↵smatz
icc >= 11.0
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-07-24(svn r16938) -Codechange: introduce helper function to tell whether a tile ↵rubidium
is either a rail station or rail waypoint tile
2009-07-22(svn r16915) -Fix (r16909): signal updates didn't propagate through waypointsrubidium
2009-07-22(svn r16909) -Fix [FS#2996]: NewGRF stations would be triggering assertions ↵rubidium
all over the place when using the more advanced station types. -Change: make (rail) waypoints sub classes of 'base stations', make buoys waypoints and unify code between them where possible.
2009-06-06(svn r16527) -Codechange: use static member functions instead of simple ↵smatz
casts when converting Vehicle to specialised vehicle types. Includes safety check
2009-06-01(svn r16492) -Remove: support for gcc2. It hasn't been able to compile OTTD ↵smatz
for months. All attempts to do another workaround failed.
2009-06-01(svn r16491) -Codechange: Added parentheses around bitwise operators for ↵alberth
code style.
2009-05-22(svn r16392) -Codechange: move some variables (the ones that aren't caches) ↵rubidium
from VehicleRail to Train
2009-05-22(svn r16391) -Codechange: use Train instead of Vehicle where appropriate.rubidium
2009-05-17(svn r16327) -Codechange: replace IsValidPoolItemID(index) by ↵smatz
PoolItem::IsValidID(index)
2009-01-31(svn r15299) -Cleanup: remove many redundant includessmatz
2008-09-30(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.rubidium
2008-09-30(svn r14421) -Codechange: rename all player variables/types to company *or* ↵rubidium
client so it is immediatelly clear which one you are working with.
2008-09-07(svn r14258) -Codechange: rework the way to query the vehicle hash to make ↵rubidium
sure it always results in the same irregardless of the order of the hash-linked-list. -Fix: desync in PBS reservation following, vehicle flooding and road vehicle overtake/follow code.
2008-08-02(svn r13960) -Codechange [YAPP]: Reserve a path when exiting a depot into a ↵rubidium
PBS block. (michi_cc)
2008-08-02(svn r13933) -Codechange [YAPP]: Handle through and PBS signals correctly in ↵rubidium
the signal code. (michi_cc)
2008-08-01(svn r13912) -Codechange: remove some casts by returning the proper type ↵rubidium
instead of void*.
2008-07-17(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line ↵rubidium
with all other structs/classes that are in a pool.
2008-06-19(svn r13589) -Fix (r11802): signals could be propagated through waypoints ↵smatz
built in orthogonal axis
2008-05-22(svn r13207) -Fix: misleading comments (michi_cc)smatz
2008-05-14(svn r13088) -Codechange: use SigSegState enum instead of bool variable ↵smatz
(michi_cc)
2008-04-18(svn r12762) -Fix: tabs after the first non-tab character are generally not ↵rubidium
okay (or lines starting with a space and then tabs).
2008-02-20(svn r12199) -Codechange: Remove magic around the results of ↵frosch
GetTileTrackStatus().
2008-01-17(svn r11903) -Fix: try to fix MorphOS compilationsmatz
2008-01-16(svn r11871) -Fix [FS#1074]: do not update signals after each tile when ↵smatz
building/removing a large block of track/signals/station
2008-01-15(svn r11864) -Codechange: pass owner whose signals we will update instead of ↵smatz
complex detection later
2008-01-12(svn r11818) -Codechange: split player.h into smaller pieces.rubidium
2008-01-11(svn r11815) -Codechange (r11802): some compilers were giving a false ↵smatz
warning about uninitialized variable
2008-01-10(svn r11810) -Fix (r11802): reset sets when leaving prematurelysmatz
2008-01-09(svn r11802) -Fix [FS#716]: do not crash trains when leaving depot to a very ↵smatz
long track -Codechange: use dedicated pathfinder for signal updating, resulting in better performance and possible future improvements