Jonathan G Rennison
97e6f3062e
Adding of _t to (u)int types, and WChar to char32_t
...
See: eaae0bb5e
2024-01-07 17:20:41 +00:00
Jonathan G Rennison
60378323ea
Fix AyStar::Init overriding max search nodes
...
See: c05ffb22bd
2023-12-25 10:16:42 +00:00
Jonathan G Rennison
d5a7a67b8c
Merge branch 'master' into jgrpp
...
# Conflicts:
# .github/workflows/ci-build.yml
# src/ai/ai_gui.cpp
# src/blitter/32bpp_optimized.cpp
# src/blitter/32bpp_simple.cpp
# src/blitter/32bpp_sse2.cpp
# src/blitter/8bpp_optimized.cpp
# src/blitter/8bpp_simple.cpp
# src/blitter/null.cpp
# src/blitter/null.hpp
# src/company_gui.cpp
# src/game/game_gui.cpp
# src/genworld_gui.cpp
# src/gfx.cpp
# src/gfx_func.h
# src/graph_gui.cpp
# src/industry_gui.cpp
# src/linkgraph/linkgraphjob.cpp
# src/network/network_gui.cpp
# src/newgrf_debug_gui.cpp
# src/openttd.cpp
# src/pathfinder/npf/aystar.h
# src/road_gui.cpp
# src/saveload/order_sl.cpp
# src/saveload/saveload.cpp
# src/saveload/saveload.h
# src/script/api/script_log.cpp
# src/script/api/script_town.cpp
# src/script/script_gui.cpp
# src/settings.cpp
# src/settings_gui.cpp
# src/settings_table.cpp
# src/settings_type.h
# src/smallmap_gui.cpp
# src/sortlist_type.h
# src/spritecache.cpp
# src/spriteloader/grf.cpp
# src/spriteloader/grf.hpp
# src/spriteloader/spriteloader.hpp
# src/station_cmd.cpp
# src/station_cmd.h
# src/station_gui.cpp
# src/strings.cpp
# src/toolbar_gui.cpp
# src/town_cmd.cpp
# src/town_gui.cpp
# src/vehicle_gui.cpp
# src/vehicle_gui_base.h
# src/video/opengl.cpp
# src/video/opengl.h
# src/widgets/dropdown.cpp
# src/widgets/dropdown_type.h
# src/window_gui.h
2023-12-23 13:26:55 +00:00
SamuXarick
c05ffb22bd
Fix #10452 : Don't let AyStar max_search_nodes unattended when initializing ( #11544 )
...
Add a constant with the default value of 10000 and have the pathfinding settings refer to it.
Add a preventative method to AyStar when it's initializing, to limit the number of max_search_nodes if left unattended.
2023-12-17 22:50:53 +01:00
Rubidium
c518293135
Codechange: replace printf with fmt::print
2023-05-21 15:12:02 +02:00
Jonathan G Rennison
d64b52cdaf
AyStar: Change types used for hashes and queue
...
Use robin_hood for the hashes
Store nodes in PodPools
Change BinaryHeap to store node IDs
2023-02-26 13:31:39 +00:00
Jonathan G Rennison
fd605e3cf3
Merge branch 'master' into jgrpp-beta
...
# Conflicts:
# .github/workflows/commit-checker.yml
# src/company_cmd.cpp
# src/console_cmds.cpp
# src/crashlog.cpp
# src/lang/english.txt
# src/lang/german.txt
# src/lang/indonesian.txt
# src/lang/japanese.txt
# src/lang/korean.txt
# src/lang/swedish.txt
# src/linkgraph/linkgraphjob.cpp
# src/linkgraph/mcf.cpp
# src/network/core/tcp.cpp
# src/network/core/tcp.h
# src/network/core/tcp_game.h
# src/network/core/udp.h
# src/network/network.cpp
# src/network/network_admin.cpp
# src/network/network_admin.h
# src/network/network_chat_gui.cpp
# src/network/network_client.cpp
# src/network/network_client.h
# src/network/network_func.h
# src/network/network_internal.h
# src/network/network_server.cpp
# src/network/network_server.h
# src/newgrf.cpp
# src/newgrf_station.cpp
# src/order_gui.cpp
# src/rail_cmd.cpp
# src/saveload/saveload.cpp
# src/settings.cpp
# src/settings_gui.cpp
# src/settings_internal.h
# src/settings_type.h
# src/station_cmd.cpp
# src/stdafx.h
# src/table/currency_settings.ini
# src/table/misc_settings.ini
# src/table/settings.h.preamble
# src/table/settings.ini
# src/terraform_cmd.cpp
# src/timetable_gui.cpp
# src/train_cmd.cpp
# src/tree_cmd.cpp
# src/water_cmd.cpp
2021-09-27 22:47:23 +01:00
Andreas Schmitt
1899b1877d
Improve performance even more
2021-06-19 13:02:36 +01:00
Andreas Schmitt
8d584990aa
Remove unused hash functions and start the road building from the map center
2021-06-19 13:02:36 +01:00
Andreas Schmitt
35ebeff874
Remove low performance containers with standard library ones
2021-06-19 13:02:36 +01:00
rubidium42
44ca7d9377
Change: Use gender-neutral pronouns
2021-05-15 10:16:48 +02:00
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
2019-11-10 17:59:20 +00:00
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
2019-04-10 23:22:20 +02:00
J0an Josep
aa63517c92
Fix #7060 : [NPF] Do not check whether ignored first tiles are end nodes.
2019-01-31 22:15:56 +00:00
Charles Pigott
f5b1115039
Doc: Lots and lots of doxymentation fixes
2018-10-31 12:35:54 +01:00
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
2014-04-23 20:13:33 +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
alberth
7c312f602c
(svn r20890) -Doc: Make documentation accessible to doxygen.
2010-10-02 19:55:13 +00:00
alberth
6a9b205670
(svn r20889) -Codechange: Make ClosedListHash, OpenListQueue, and OpenListHash data protected, and rename for coding style.
2010-10-02 19:53:20 +00:00
alberth
4af4d268d8
(svn r20886) -Codechange: Make init_Hash a method.
2010-10-02 19:46:24 +00:00
alberth
6f85b46eeb
(svn r20885) -Codechange: Make delete_Hash a method.
2010-10-02 19:44:54 +00:00
alberth
d86f781ca5
(svn r20884) -Codechange: Make clear_Hash a method.
2010-10-02 19:43:29 +00:00
alberth
f185a35269
(svn r20883) -Codechange: Make Hash_Delete a method.
2010-10-02 19:42:42 +00:00
alberth
15b784471e
(svn r20882) -Codechange: Make Hash_Set a method.
2010-10-02 19:41:25 +00:00
alberth
4ed94825b2
(svn r20881) -Codechange: Make Hash_Get a method.
2010-10-02 19:39:34 +00:00
alberth
6ea5643e40
(svn r20880) -Codechange: Make Hash_Size a method.
2010-10-02 19:38:22 +00:00
alberth
a7ffc9a268
(svn r20879) -Codechange: Make AyStarMain_ClosedList_IsInList a method.
2010-10-02 19:34:32 +00:00
alberth
4f8af5d336
(svn r20878) -Codechange: Make AyStarMain_ClosedList_Add a method.
2010-10-02 19:33:23 +00:00
alberth
fa661e4075
(svn r20877) -Codechange: Make AyStarMain_OpenList_IsInList a method.
2010-10-02 19:32:21 +00:00
alberth
5e636d6a5c
(svn r20876) -Codechange: Make AyStarMain_OpenList_Pop a method.
2010-10-02 19:31:24 +00:00
alberth
969139b343
(svn r20875) -Codechange: Make AyStarMain_OpenList_Add a method.
2010-10-02 19:30:24 +00:00
alberth
9b21dfaeb0
(svn r20874) -Codechange: Make init_AyStar a method.
2010-10-02 19:29:00 +00:00
alberth
7bb7d6c35a
(svn r20868) -Codechange: Make AyStarMain_Main() a method.
2010-10-02 10:00:05 +00:00
alberth
49ba3539b5
(svn r20867) -Codechange: Make AyStarMain_AddStartNode() a method.
2010-10-02 09:58:32 +00:00
alberth
92f0bdec2c
(svn r20866) -Codechange: CheckTile() always returns the same (ignored) value.
2010-10-02 09:55:58 +00:00
alberth
776d541a89
(svn r20865) -Codechange: Make AyStarMain_CheckTile() a method.
2010-10-02 09:53:44 +00:00
alberth
8e5aaca653
(svn r20864) -Codechange: Make AyStar_Clear() a method.
2010-10-02 09:49:32 +00:00
alberth
2a796187ef
(svn r20863) -Codechange: Make AyStarMain_Loop a method.
2010-10-02 09:48:01 +00:00
alberth
581d1070b4
(svn r20862) -Codechange: Make AyStar_Free() a method.
2010-10-02 09:46:40 +00:00
smatz
77fe95f552
(svn r20860) -Cleanup: remove some unused functions and variables
2010-10-01 16:42:28 +00:00
alberth
bc6a5a5e64
(svn r20686) -Codechange: Make init_BinaryHeap() a method.
2010-08-29 13:42:38 +00:00
alberth
2c962548e5
(svn r20685) -Codechange: Make BinaryHeap_Clear() a method.
2010-08-29 13:38:43 +00:00
alberth
b06cedc905
(svn r20684) -Codechange: Make BinaryHeap_Free() a method.
2010-08-29 13:38:27 +00:00
alberth
3f0cd8c9f0
(svn r20683) -Codechange: Make BinaryHeap_Delete() a method.
2010-08-29 13:38:06 +00:00
alberth
10b182482e
(svn r20682) -Codechange: Make BinaryHeap_Pop() a method.
2010-08-29 13:36:50 +00:00
alberth
92801ac718
(svn r20681) -Codechange: Make BinaryHeap_Push() a method, introduce temporary THISBIN_HEAP_ARR macro.
2010-08-29 13:35:51 +00:00
alberth
be6c058424
(svn r20211) -Codechange: Indented code should have curly braces around it.
2010-07-24 10:14:39 +00:00
smatz
28d25cadfc
(svn r19815) -Cleanup: remove two unused variables
2010-05-13 11:07:04 +00:00
rubidium
b2e9b5d612
(svn r18683) -Fix: it's not an other
2010-01-01 18:45:40 +00:00
rubidium
f67c265c6f
(svn r18374) -Cleanup: remove some unused code
2009-12-02 10:47:18 +00:00