Michael Lutz
b0990fcff7
Codechange: Make TileIndex a "strong" typedef to give it a distinct type.
...
This is accomplished by changing it to a single member struct with the
appropriate operator overloads to make it all work with not too much
source modifications.
3 years ago
rubidium42
55a11710a6
Codechange: convert printf DEBUG statements to fmt Debug statements
3 years ago
Charles Pigott
9b800a96ed
Codechange: Remove min/max functions in favour of STL variants ( #8502 )
4 years ago
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
5 years ago
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
6 years ago
J0anJosep
79a551a83c
Codechange: Use TileAddBy(Diag)Dir when possible.
7 years ago
Patric Stout
aef69443e7
Remove: WinCE support
7 years ago
rubidium
2e493fa806
(svn r26503) -Fix: compilation error with full debug build
11 years ago
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
11 years ago
rubidium
6d6be50ae0
(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files
13 years ago
truebrain
6f6035ce0b
(svn r23701) -Codechange: give TileAddWrap() a 27% speed-up, by swapping entries in an if() statement, and reusing already calculated values (tnx to SmatZ for the ideas)
13 years ago
rubidium
fb5ecb9499
(svn r22411) -Document: another bunch of bits
14 years ago
frosch
8b2f2c09e5
(svn r21995) -Cleanup (r21994): Remove obsolete comment.
14 years ago
frosch
a8859bbff9
(svn r21994) -Fix: Make computations of closest-land/water-distances handle waterish tiles more correctly.
14 years ago
rubidium
7efd7e19ed
(svn r21845) -Codechange: move documentation towards the code to make it more likely to be updates [d-m].
14 years ago
rubidium
7cf40e5d25
(svn r21470) -Codechange: add method to get the distance from the edge in a given direction
14 years ago
alberth
606519c112
(svn r21055) -Codechange [FS#4190]: Code style fix (chillcore)
14 years ago
rubidium
30f2afac9b
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
14 years ago
yexo
6be4560528
(svn r18937) -Fix (r15190): TileAddWrap didn't return INVALID_TILE for void tiles at the north border
15 years ago
yexo
be3ca424f6
(svn r18755) -Fix [FS#3495] (r14847): CircularTileSearch skipped a few tiles close to the starting tile
15 years ago
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
smatz
114d48e492
(svn r17596) -Codechange: constify some tables
15 years ago
rubidium
e8ddf001c8
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
smatz
4419366f94
(svn r16603) -Codechange: enumify map size limits (based on a patch by Bilbo)
15 years ago
smatz
ec78a39f9e
(svn r16550) -Codechange: move definition of ScaleByMapSize to header file, use shifts instead of mults
16 years ago
smatz
0c0943fe83
(svn r16547) -Codechange: make CircularTileSearch a tiny bit faster
16 years ago
rubidium
00ed8c6f27
(svn r16138) -Codechange: move GetClosestWaterDistance to map*
16 years ago
smatz
d73c1fa7bf
(svn r15568) -Cleanup: *allocT/AllocaM doesn't return NULL when allocating fails
16 years ago
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
smatz
df79660531
(svn r15296) -Cleanup: remove redundant _MSC_VER >= 1400 checks, older versions aren't supported anymore. One check in stdafx.h is enough
16 years ago
rubidium
d642a55b91
(svn r14847) -Codechange: generalise the circular search to search around a rectangle (PhilSophus)
16 years ago
frosch
4e6d827ea6
(svn r13632) -Codechange: Use 'void *' for user-data of CircularTileSearch().
16 years ago
belugas
b0ada3fbbf
(svn r13367) -Codechange: Allow CircularTileSearch function to return the tile where search has been successful, or INVALID_TILE if it has not
17 years ago
rubidium
d03994098b
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
17 years ago
belugas
4a3e135086
(svn r11961) -Feature[newGRF]: Add support for Action 0D, var 13: informations about current map size.
17 years ago
frosch
978a7ca56a
(svn r11897) -Fix: Replace an uint with TileIndex and a small coding style fix.
17 years ago
rubidium
2786d789a1
(svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h).
17 years ago
rubidium
429521a7d1
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
17 years ago
rubidium
bf98e25e43
(svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed.
17 years ago
rubidium
01e20c9140
(svn r11674) -Codechange: refactor some functions out of macros.h into more logical locations.
17 years ago
rubidium
f56a354d31
(svn r11661) -Codechange: some header reworks in order to try to reduce the compile time of OpenTTD by reduce the amount of circular-ish dependencies.
17 years ago
glx
b47bce651e
(svn r11600) -Cleanup: remove extra out-of-memory checks, since it's now done in *allocT functions.
17 years ago
skidd13
734b22e070
(svn r11526) -Codechange: Rename the function delta fitting to the naming style
17 years ago
skidd13
b8885630aa
(svn r11483) -Codechange: Replace codeparts with functions that do the same to increase readability
17 years ago
rubidium
ed3b1d398a
(svn r11066) -Documentation [FS#1091]: of map.*. Patch by Progman.
17 years ago
truelight
b3bed1eda1
(svn r10778) -Fix: one-liners to allow MSVC and WINCE to work together (or anyway, a step towards that goal)
...
-Fix: put DEBUG lines under WINCE via a function designed for just that under WINCE
17 years ago
peter1138
06986b7744
(svn r10736) -Fix: Correct all mispellings of 'successful'.
17 years ago
rubidium
e1057864d8
(svn r9729) -Documentation: add some documentation in various places
18 years ago
rubidium
2dc5589290
(svn r9673) -Cleanup: remove spaces before tabs and replace non-indenting tabs with spaces.
18 years ago