Age | Commit message (Collapse) | Author |
|
numbers to sort out wagons
|
|
|
|
this is a complete rewrite, that makes use of existing commands like build and sell
this means that multiheaded train engines are replaced correctly
|
|
|
|
vehicles using the cargo type and not a magic engine number
|
|
- const, whitespace, indentation, bracing, GB/SB, pointless casts
- use the trinary operator where appropriate
- data types (uint[] -> AcceptedCargo, ...)
- if cascade -> switch
- if (ptr) -> if (ptr != NULL)
- DeMorgan's Law
- Fix some comments
- 0 -> '\0', change magic numbers to symbolic constants
|
|
comments, excess empty lines, minor other changes
nothing spectacular, just some stuff, which piled up
|
|
and Unix is spelled "Unix", not "Linux"
|
|
waypoint.
|
|
|
|
0/-1 -> INVALID_ENGINE
0x10 -> OWNER_NONE
|
|
don't pass them
|
|
|
|
found, it is not a normal index when unbanning clients ('\0' should of course be NULL); thx Tron
|
|
seperator instead of '\' as was originally intention
|
|
console that is both big and has no console, or any combination of.
|
|
as IP).
- Feature: 'status' and 'clients' now show the IP of the players
|
|
|
|
basic offset is read from the RailTypeInfo struct. This is (hopefully) the last DrawTile change on the way to electrified railways. While being at it, de-mystified the function a bit and added some asserts.
|
|
|
|
removed two arrays that are not referred to
|
|
dubious and confusing textfile
|
|
satisfy the needs of the absolute strict (eg. root directory is C:\ not C:)
|
|
langs changed)
|
|
of manual shifting/anding
|
|
circumstances.
Simplify this check by testing the rail vehicle info flags instead of passing a global variable around.
Note: This is not exactly the original behaviour, because the Lev4 was always allowed to be built, but i guess that was a glitch.
|
|
going to root directory through 'parent directory', and of course don't show parent dir in root.
|
|
directory of a drive (eg. C:\) you were stuck there indefinitely and couldn't change any directories or see any files
|
|
|
|
|
|
|
|
|
|
|
|
engines and wagons
|
|
|
|
|
|
build window (this caused no visible problem so far, therefore no Fix tag)
|
|
sprite list
|
|
to a vehicle.
|
|
|
|
numbers, but fetch them from the central rail info array.
|
|
|
|
where in the sprite array the sprites end up and assert, that the indices are equal to the corresponding sprite base enums, to guard against typos.
|
|
magic numbers, but fetch them from the central rail info array. This is a preparation step for electrified rails
|
|
(not a fix, because the old == method works so far)
|
|
climates
|
|
|
|
|
|
|
|
|