tron
647cbd6bdd
(svn r2701) Insert Id tags into all source files
20 years ago
tron
54cbd01825
(svn r2673) Include functions.h directly, not globally via openttd.h
20 years ago
tron
8b05455903
(svn r2664) Remove depedency on player.h from variables.h
20 years ago
tron
b0779b4b65
(svn r2663) Include variables.h only in these files which need it, not globally via openttd.h
20 years ago
tron
6ad3895306
(svn r2660) Get rid of some more shifting/anding/casting
20 years ago
tron
f09638ad3d
(svn r2650) Convert many explicit shifts+ands to extract bits to invocations of GB - should be a bit nicer to read
20 years ago
ludde
2123deff13
(svn r2560) Fix: various minor code changes.
...
Added RandomTile/RandomTileSeed functions to generate a random tile.
Changed landscape routines so they don't assume that the Y map side is a power of two. (support for this is not complete, though)
Changed some frequently used map macros to not compute the values each time.
Silence some warnings on MSVC.
20 years ago
tron
a4bf608d40
(svn r2558) Change the internal map format from 7 arrays to one array of structs, this doesn't change the saved format for now. It's a stepping stone for further changes.
20 years ago
tron
5cbd8b598c
(svn r2492) Remove some pointless casts and fix some nearby indentation
20 years ago
tron
9617614b04
(svn r2487) Replace TILE_XY by TileXY/TileDiffXY
20 years ago
tron
2b73dec567
(svn r2486) Turn TILE_FROM_XY into an inline function and rename it to TileVirtXY
20 years ago
tron
80760b4f69
(svn r2485) Missed two uint -> TileIndex, thanks _Luca_
20 years ago
tron
a733fede9b
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
20 years ago
tron
a9b95b3cbb
(svn r2407) Use {Get,Is}TileOwner to get/check the owner of a tile and fix some bogus reads of _map_owner
20 years ago
Darkvater
ba8c649fac
(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.
20 years ago
Darkvater
2d355e0826
(svn r2384) - Fix: Check selling land and setting player colour. Also an extra map-bounds check for terraforming; inspired by the monkey (and Tron :) )
20 years ago
Darkvater
ddd4958164
(svn r2300) - CodeChange: check the last number of commands, now only the refit ones remain, and some server-only commands.
...
- CodeChange: remove cmd-misuses CmdStartScenario() and CmdDestroyCompanyHQ()
- Fix (invisible): when parameter checking CmdRestoreOrderIndex() the vehicle did not have its orders yet, so it would fail. So move doing this until AFTER the orders have been added back in RestoreVehicleOrders()
20 years ago
Darkvater
84b0d2d19d
(svn r2286) - CodeChange: paramcheck the next batch of commands.
...
- Fix (regression): fix up terraform land where every player can terraform land (towns, map generation), and player can terraform different corners; used for building tunnels
20 years ago
Darkvater
419af5cece
(svn r2279) - Fix: Check the parameters of the first 10 Commands. While there also add proper comments for the functions and fix up CmdFailed()
20 years ago
truelight
92f6fe9f6b
(svn r2075) -Fix: added missing breaks in switches
...
-Fix: added const for a const variable
20 years ago
tron
8c62a41495
(svn r1802) Fix typos made in r1797
20 years ago
tron
981b6c1ecd
(svn r1797) Clean up TileLoopClearHelper() a bit:
...
- if cascades -> switch
- uint -> TileIndex
- (uint)-1 -> INVALID_TILE
- don't treat non-flags as flags
20 years ago
tron
39858e696b
(svn r1713) Split off several functions which query/set information about a single tile from map.h and put them into a seperate file tile.h
20 years ago
tron
400f07fdb8
(svn r1706) Implement ScaleByMapSize() and ScaleByMapSize1D()
...
These scale a number relative to the map size/circumference.
Use them to scale the amount of map objects.
Of course at the moment they return just the input, because there are no bigger/smaller maps yet.
20 years ago
dominik
a94a7b0775
(svn r1631) A couple of fixes for the signed/unsigned warnings. Only train_cmd.c remains to need fixing...
20 years ago
tron
97f893ae2f
(svn r1596) Add some more statics
20 years ago
tron
94d5aeabb2
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
20 years ago
tron
90cafa9b15
(svn r1560) Introduce SetTileType() and SetTileHeight()
...
Replace direct references to _map_type_and_height with these
20 years ago
tron
27057ae4b0
(svn r1545) Add TileHeight() which returns the height (not multiplied by 8)
...
Replace some direct references to _map_type_and_height with TileHeight()/IsTileType()
20 years ago
tron
61a6bc544d
(svn r1536) Move GET_TILEHEIGHT, GET_TILETYPE and IS_TILETYPE to map.h, turn them into inline functions and add some asserts
20 years ago
tron
414ac3286b
(svn r1414) Move TileIndex, TILE_MASK and GET_TILE_[XY] to map.h and turn the latter into inline functions names Tile[XY]
20 years ago
tron
d3c6855320
(svn r1396) Introduce TileIndexDiffC - the compile time version of TileIndexDiff
20 years ago
tron
e4cf2ba1b3
(svn r1386) Move TileIndexDiff to map.h
...
Move _tileoffs_by_dir to map.[ch] and encapsulate it in TileOffsByDir()
20 years ago
darkvater
fc52b512aa
(svn r1375) -Fix: [1050990] Buying trains sometimes accounted for incorrectly. Was the result of the cost getting reset in a recursive call of docommand. That is fixed. In addition all cost-commands are typed explicitely. Please do not forget to do so or your costs will be credited to construction if you are unlucky.
20 years ago
tron
bcff0ab932
(svn r1344) Use MapSize[XY]() (or MapSize()/MapMax[XY]() where appropriate) instead of TILES_[XY]
20 years ago
tron
181e9b6cf9
(svn r1337) Use MapMax[XY]() (or MapSize[XY]() if appropriate) instead of TILE_MAX_[XY]
...
While here replace one erroneous TILE_MAX_X with MapMaxY()
20 years ago
tron
a148ff4e0d
(svn r1117) Move map arrays and some related macros into their own files map.c and map.h
20 years ago
tron
acbd1801c7
(svn r815) Include strings.h only in the files which need it.
...
This should reduce the compile time after altering english.txt by about 1/3, because "only" 62 instead of 90 .c files must be recompiled.
20 years ago
tron
57adc97733
(svn r724) Remove restriction that a tile can only accept 3 cargo types.
...
This especially enables houses to accept passengers, mail, goods AND food.
Add string templates for up to 5 cargo types for the tile info window. If more are needed just add them.
Simplify (de-uglify) the logic for cargo acceptence for houses and split the goods/food table into two. The acceptance is unmodified, but accepting goods AND food is now trivially possible. The exact amounts have to be decided.
This is based on Celestar's changes in the map branch plus some further bits that will be merged there soon.
20 years ago
tron
249a170ace
(svn r607) -Patch: [ 985102 ] static cleanup
...
Thanks to lvoge
20 years ago
tron
37e199cd2b
(svn r526) -Fix: [1035303] bug about lowering tracks built on slopes
...
While here make sure that the failing tile gets a red error marker
20 years ago
truelight
eb49a19460
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
20 years ago
truelight
10d54ac604
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
...
-Fix: some minor fixes around GetTileTrackStatus (blathijs)
20 years ago
darkvater
7b02cd3248
(svn r150) -Fix: [1010833] Turning on the magic bulldozer removes oil rigs
...
-Fix: [993493] Buildings on water
-Feature: Water floods everything, including vehicles.
20 years ago
dominik
ca120eedad
(svn r40) Final slope graphics fix
20 years ago
truelight
efaeb275f7
(svn r1) Import of revision 975 of old (crashed) SVN
20 years ago