Commit Graph

53 Commits

Author SHA1 Message Date
Jonathan G Rennison
5b490b243d Merge branch 'master' into jgrpp
# Conflicts:
#	src/industry_cmd.cpp
#	src/landscape.cpp
#	src/object_cmd.cpp
#	src/rail_cmd.cpp
#	src/script/api/script_tile.cpp
#	src/table/settings/difficulty_settings.ini
#	src/table/settings/world_settings.ini
#	src/terraform_cmd.cpp
#	src/tilearea_type.h
#	src/tree_cmd.cpp
#	src/tree_cmd.h
#	src/tree_gui.cpp
#	src/water_cmd.cpp
2023-01-14 16:49:17 +00:00
Rubidium
b35c791d05 Codechange: use smart pointers when cloning iterators 2023-01-13 21:09:40 +01:00
Rubidium
f667a831a5 Codechange: unify creation of diagonal/orthogonal iterator using smart pointers 2023-01-13 21:09:40 +01:00
Jonathan G Rennison
160dcc345a Add wrapper class for diagonal or orthogonal tile iteration 2022-12-30 18:09:55 +00:00
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.
2021-12-16 22:28:32 +01:00
Jonathan G Rennison
1174b0c53f Remove OrthogonalTileIteratorStep
Step sizes other than 1 are no longer used
2021-11-03 02:26:46 +00:00
Jonathan G Rennison
168dc4678d Avoid type alias of forward-declared template class 2021-11-03 01:29:27 +00:00
Jonathan G Rennison
0b0d154788 Merge branch 'master' into jgrpp-beta
# Conflicts:
#	.github/workflows/ci-build.yml
#	src/lang/german.txt
#	src/lang/romanian.txt
#	src/lang/slovak.txt
#	src/lang/turkish.txt
#	src/network/core/address.cpp
#	src/network/core/tcp.h
#	src/network/core/udp.cpp
#	src/network/network.cpp
#	src/network/network_client.cpp
#	src/network/network_server.cpp
#	src/network/network_server.h
#	src/network/network_udp.cpp
#	src/openttd.cpp
#	src/saveload/newgrf_sl.cpp
#	src/tree_cmd.cpp
#	src/video/video_driver.hpp
#	src/window.cpp
#	src/window_gui.h
2021-09-22 21:50:02 +01:00
glx22
38c97e1492 Codechange: Replace TILE_AREA_LOOP with range-based for loops 2021-05-13 00:13:54 +02:00
Jonathan G Rennison
cbdd9f84d8 Merge branch 'master' into jgrpp
# Conflicts:
#	src/console_gui.cpp
#	src/lang/korean.txt
#	src/video/sdl2_v.cpp
#	src/video/sdl2_v.h
#	src/window.cpp
#	src/window_gui.h
2019-11-12 18:43:10 +00:00
S. D. Cloudt
13cc8a0cee Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
Jonathan G Rennison
94f705e45e Add missing include to tilearea_type.h 2019-07-04 17:06:42 +01:00
Jonathan G Rennison
33344482ae Add a stepped OrthogonalTileIterator for grid iteration 2019-05-26 13:23:53 +01:00
Jonathan G Rennison
bfff4571a2 Check nearby station/industry lists and catchments in CheckCaches 2019-05-23 22:53:17 +01:00
Jonathan G Rennison
0d93ecb6bf Merge branch 'master' into jgrpp
# Conflicts:
#	src/core/alloc_type.hpp
#	src/group_gui.cpp
#	src/newgrf.cpp
#	src/saveload/economy_sl.cpp
#	src/saveload/map_sl.cpp
#	src/station_cmd.cpp
2019-04-16 18:03:08 +01:00
PeterN
abe8cf4985 Codechange: Replace duplicated code with TileArea::Expand() (#7467) 2019-04-13 14:12:34 +01:00
patch-import
536a95dfd0 Import combined Enhanced viewport: zoom out, overlays & tooltips (r53_27127) patch
https://www.tt-forums.net/viewtopic.php?f=33&t=53394
2015-08-05 21:24:30 +01:00
fonsinchen
c915338be9 (svn r26289) -Codechange: Make tile areas and iterators more consistent to each other. 2014-02-02 14:53:26 +00:00
fonsinchen
547e521381 (svn r26289) -Codechange: Make tile areas and iterators more consistent to each other. 2014-02-02 14:53:26 +00:00
rubidium
59ca31b442 (svn r26125) -Fix: make sure the tile area's variables are always properly initialised 2013-11-26 14:47:45 +00:00
rubidium
982fcb7aab (svn r26125) -Fix: make sure the tile area's variables are always properly initialised 2013-11-26 14:47:45 +00:00
planetmaker
f00d9976f9 (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 2013-01-08 22:46:42 +00:00
planetmaker
c24374f99c (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 2013-01-08 22:46:42 +00:00
truebrain
aa1a0053b0 (svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC) 2011-12-20 17:57:56 +00:00
truebrain
1c9bec1999 (svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC) 2011-12-20 17:57:56 +00:00
yexo
a8f0dfd5be (svn r23461) -Fix: handle a missing airport newgrf as graceful as possible by not crashing when loading such savegame or when an airport is removed 2011-12-09 19:30:30 +00:00
yexo
c9be5d50da (svn r23461) -Fix: handle a missing airport newgrf as graceful as possible by not crashing when loading such savegame or when an airport is removed 2011-12-09 19:30:30 +00:00
terkhen
fa210ceace (svn r23402) -Add: Function to check if a TileArea contains a tile. (michi_cc) 2011-12-03 20:19:33 +00:00
terkhen
bf1b6d570b (svn r23402) -Add: Function to check if a TileArea contains a tile. (michi_cc) 2011-12-03 20:19:33 +00:00
rubidium
87272273b5 (svn r22405) -Document: some more "random-ish" tidbits 2011-05-01 19:14:12 +00:00
rubidium
1a515e6344 (svn r22405) -Document: some more "random-ish" tidbits 2011-05-01 19:14:12 +00:00
rubidium
3dd1cf6049 (svn r21843) -Codechange: move documentation towards the code to make it more likely to be updates [t-z]. 2011-01-18 21:58:22 +00:00
rubidium
d89095b3ec (svn r21843) -Codechange: move documentation towards the code to make it more likely to be updates [t-z]. 2011-01-18 21:58:22 +00:00
rubidium
1e6f9cd31b (svn r21499) -Add: diagonal tile iterator. Based on patch by fonsinchen 2010-12-13 15:13:05 +00:00
rubidium
b20e77be92 (svn r21499) -Add: diagonal tile iterator. Based on patch by fonsinchen 2010-12-13 15:13:05 +00:00
rubidium
1f9ba6ee93 (svn r21496) -Fix (r21494): ofcourse older GCCs (< 4.3) have something to complain about 2010-12-13 12:52:43 +00:00
rubidium
2e9108afe9 (svn r21496) -Fix (r21494): ofcourse older GCCs (< 4.3) have something to complain about 2010-12-13 12:52:43 +00:00
rubidium
1e2eb1c6fe (svn r21494) -Codechange: split the tile iterator in two classes 2010-12-13 11:25:26 +00:00
rubidium
a336aacb4f (svn r21494) -Codechange: split the tile iterator in two classes 2010-12-13 11:25:26 +00:00
rubidium
6327f2b745 (svn r21490) -Codechange: abstract/encapsulate the map area iterating a bit 2010-12-12 20:58:33 +00:00
rubidium
cdd35c6a51 (svn r21490) -Codechange: abstract/encapsulate the map area iterating a bit 2010-12-12 20:58:33 +00:00
alberth
f502c82fa5 (svn r21019) -Add: Use center of industry to focus on in the industry gui. 2010-10-23 20:34:12 +00:00
alberth
cccbc8f418 (svn r21019) -Add: Use center of industry to focus on in the industry gui. 2010-10-23 20:34:12 +00:00
terkhen
e18436477b (svn r19392) -Codechange: Increase the maximum size of a TileArea. 2010-03-12 19:38:00 +00:00
terkhen
4eb6e3f060 (svn r19392) -Codechange: Increase the maximum size of a TileArea. 2010-03-12 19:38:00 +00:00
alberth
e50091a1e5 (svn r19041) -Codechange: Improve selection of tile to draw in zoomed-out smallmaps. 2010-02-06 13:19:46 +00:00
alberth
a6e8c747c9 (svn r19041) -Codechange: Improve selection of tile to draw in zoomed-out smallmaps. 2010-02-06 13:19:46 +00:00
alberth
830c42c3b5 (svn r19038) -Codechange: Move TileArea methods to their own file. 2010-02-06 12:56:13 +00:00
alberth
05388c953a (svn r19038) -Codechange: Move TileArea methods to their own file. 2010-02-06 12:56:13 +00:00
rubidium
21b4eb70c3 (svn r18726) -Fix [FS#3463]: with non-uniform industries the 'supplies' text when building a station could be incorrect (missing a cargo)
-Change [NoAI]: AITile::GetCargoProduction now returns the number of producers and not the number of tiles of producers.
-Fix [NoAI]: AITileList_IndustryProducing would omit some tiles for at which a station would get cargo.
2010-01-04 21:10:20 +00:00