Age | Commit message (Collapse) | Author |
|
|
|
build_on_slopes patch setting.
|
|
finally done. Now, time to start clearing as much as possible
|
|
including a new toolbar, accessible from the map menu or Ctrl X. Patch by Wolf01.
|
|
The end of the preliminary work is near
|
|
and you are working on the ground tile, do not take aircrafts into account, as they do not pose any danger for the construction/destruction/conversion itself. Z stuff, in other words
|
|
|
|
functions: Changed the order of error checks to generate more meaningful error messages, added some doxygen comments and replaced bitshifting by proper mathematical operations
|
|
landscape types.
|
|
climate, supplied
by newgrf files. When this is enabled forests cannot be built below the highest
snow line, and farms can't be built above it. Houses still use the
_opt.snow_line so they are all consistent, so to make them respect the snowline
you may want to use some newhouses features as well.
|
|
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)
|