Age | Commit message (Collapse) | Author |
|
coding style (and rest of the code).
|
|
|
|
|
|
tiles, unification of ground type between normal rail tiles and depots/waypoints and removing the need for RailTileSubType.
|
|
a map accessors header.
|
|
Replace tests with magic numbers by a simple extraction template for command parameters
|
|
Remove unnecessary EnsureNoVehicle() checks because they are
- pointless per se (f.e. there are no vehicles on house tiles)
- done again (f.e. using CMD_LANDSCAPE_CLEAR just a few lines later)
|
|
CLRBIT() and so on (modify value of the first parameter instead or returning the result)
|
|
Remove {,u}intswap() and replace them by Swap()
|
|
|
|
|
|
bitshuffling occurred. Also update with other station drawing changes (code duplication,
eh?)
|
|
circumstances (not the proper bits of p1/p2 were set to trackbits). Moved trackbits back to bits 0..2, ctrl to 3, semaphore to 4. Also lower the decision of the ctrl-override of signal/semaphore from the GUI into the cmd function since we are passing the ctrl-bit anyways. Bug(s) found by Frostregen; thanks
|
|
inside the CMD_ functions where they are supposed to be. Achieve this by adding a seperate bit to p1/p2 to hold the CTRL-modifier. While here, use proper types, and 'unify' the parameter bit-meanings. 0 - ctrl-pressed, 1 - signal/semaphore, 2-4 - trackbits, 5 - remove (internal), 24-31 - drag density.
|
|
values.
This lets us increase the sprite width from 14 to up to 29 bits,
effectively nulling the old sprite limit. Table changes in next commit.
|
|
accept pointer to TrackBits/TrackdirBits instead of reference.
|
|
stillunknown and pv2b.
|
|
renamed to .cpp)
|