glx and Niels Martin Hansen
ee7a8eebca
Codechange: Replace FOR_ALL_TOWNS with range-based for loops
2019-12-21 20:13:03 +01:00
glx and Niels Martin Hansen
0b489f9924
Codechange: Replace FOR_ALL_SUBSIDIES with range-based for loops
2019-12-21 20:13:03 +01:00
glx and Niels Martin Hansen
847e5f33d4
Codechange: Replace story related FOR_ALL with range-based for loops
2019-12-21 20:13:03 +01:00
glx and Niels Martin Hansen
869581eb23
Codechange: Replace FOR_ALL_SIGNS with range-based for loops
2019-12-21 20:13:03 +01:00
glx and Niels Martin Hansen
d8a1be48cd
Codechange: Replace vehicle related FOR_ALL with range-based for loops
2019-12-21 20:13:03 +01:00
glx and Niels Martin Hansen
41232f18c1
Codechange: Replace network related FOR_ALL with range-based for loops
2019-12-21 20:13:03 +01:00
glx and Niels Martin Hansen
00c2a98cf3
Codechange: Replace FOR_ALL_INDUSTRIES with range-based for loops
2019-12-21 20:13:03 +01:00
glx and Niels Martin Hansen
4ae829cb27
Codechange: Replace FOR_ALL_GROUPS with range-based for loops
2019-12-21 20:13:03 +01:00
glx and Niels Martin Hansen
1f6b3a37f9
Codechange: Replace FOR_ALL_ENGINES with range-based for loops
2019-12-21 20:13:03 +01:00
glx and Niels Martin Hansen
fa9769f81a
Codechange: Replace FOR_ALL_DEPOTS with range-based for loops
2019-12-21 20:13:03 +01:00
glx and Niels Martin Hansen
ddabfed1cd
Codechange: Replace station related FOR_ALL with range-based for loops
2019-12-21 20:13:03 +01:00
glx and Charles Pigott
e001d87569
Add #7801 : [Script] more error mappings
2019-12-17 21:35:07 +00:00
Charles Pigott and Niels Martin Hansen
60cbddbb5f
Fix #7606 : Game crash when trying to clean up a crashed script
...
Also fix another possible memory leak
2019-11-15 21:06:09 +01:00
Charles Pigott and Niels Martin Hansen
cf354f6668
Codechange: new instead of malloc
2019-11-15 21:06:09 +01:00
glx22 and Charles Pigott
0bdbd509be
Fix #7673 : [Script] Allow removal of custom town text ( #7834 )
2019-11-14 20:10:03 +00:00
S. D. Cloudt and Charles Pigott
13cc8a0cee
Cleanup: Removed SVN headers
2019-11-10 17:59:20 +00:00
James103 and Charles Pigott
f1204f0d9d
Fix: spelling/grammar in script_tile.hpp ( #7804 )
2019-10-27 19:46:08 +00:00
glx and Niels Martin Hansen
12e43c697d
Add: [Script] ScriptEventVehicleAutoReplaced.
2019-10-22 11:55:40 +02:00
Niels Martin Hansen and Charles Pigott
53f8d0b815
Codechange: Use std::vector for industry tile layouts
2019-10-19 17:16:25 +01:00
Charles Pigott
fe9731d32c
Fix: clang and MSVC warnings (glx)
2019-09-30 14:00:06 +01:00
JMcKiern and Charles Pigott
04f659e768
Fix: Some typos found using codespell
2019-09-29 21:27:32 +01:00
Max Maton and Niels Martin Hansen
e4414471dd
Add: Allow GameScript to demolish without a company
...
This allows GameScripts to shrink towns as well as grow them.
2019-09-08 10:09:19 +02:00
Niels Martin Hansen
0549a81c30
Fix b3fd7879: Ignore command flags when verifying script commands
...
Multiplayer games has the server add some flags to the cmd value during the handling.
These flags should not be included in the verification, mask them out. Without this
masking out, scripts tend to die when executing their first command in multiplayer.
2019-09-07 19:38:13 +02:00
glx22 and Charles Pigott
b3fd787959
Fix #7188 : check the validity of command callback for scripts ( #7701 )
2019-09-07 17:37:01 +01:00
glx22 and GitHub
cf86c39be5
Fix b870596f15: forgotten squirrel_export run ( #7715 )
2019-09-01 18:54:01 +02:00
Gabda and Charles Pigott
b870596f15
Add #6887 : Option to show zone inside local authority boundary of towns
...
Can be found at town information > local authority window
Layout for button is same as Graph Keys
Turn on/off for every town individually
2019-08-17 21:45:20 +01:00
nikolas and glx22
10fe568f08
Fix: typo in ScriptList::Valuate param error ( #7687 )
2019-08-07 21:15:53 +02:00
TELK and Charles Pigott
196d586849
Feature: Town name filtering ( #7621 )
2019-07-22 20:27:39 +01:00
Jonathan G Rennison and Charles Pigott
d71a7c21da
Fix #7593 : Crash in ScriptOrder::GetOrderDistance in VT_AIR mode
...
Null pointer dereference occurred when either origin_tile or dest_tile
were waypoint tiles.
2019-07-22 20:26:36 +01:00
dP and Charles Pigott
36e4bd4023
Fix: Make GSGoal.QuestionClient work correctly at least for clients with ID < 2**16
2019-07-14 13:32:08 +01:00
unknown and Charles Pigott
6f28a0c051
Fix #5685 : Check for free wagons in ScriptVehicleList
2019-07-07 16:02:11 +01:00
peter1138 and Niels Martin Hansen
f538179878
Feature: Multi-tile docks and docking points.
2019-06-30 16:46:32 +02:00
glx and glx22
09004f3697
Codechange: catch script exceptions by reference
2019-05-15 21:59:57 +02:00
glx and glx22
a82e7ec281
Fix #7590 : handle script exceptions during scanning
2019-05-15 21:59:57 +02:00
glx and glx22
aac4255d43
Fix #7590 : decrement allocated_size in ScriptAllocator::Free()
2019-05-15 21:59:57 +02:00
Niels Martin Hansen
e7f6f07599
Add: Show memory allocations by GS and AI in framerate window
2019-05-11 15:34:33 +02:00
Niels Martin Hansen
140a96b3a0
Change: Limit memory allocations for each Squirrel instance
...
This can avoid out-of-memory situations due to single scripts using up the entire address space.
Instead, scripts that go above the maximum are killed.
The maximum is default 1 GB per script, but can be configured by a setting.
2019-05-11 15:34:33 +02:00
peter1138 and Michael Lutz
3293f08e0b
Add: New RoadType API functions.
2019-05-01 21:36:27 +02:00
peter1138 and Michael Lutz
c02ef3e456
Feature: Add NotRoadTypes (NRT)
2019-05-01 21:36:27 +02:00
Charles Pigott and PeterN
5b34c8019f
Codechange: Remove Company/OwnerByte types
2019-04-29 17:40:22 +01:00
Charles Pigott and PeterN
931d32f414
Codechange: Remove RailTypeByte type
2019-04-29 17:40:22 +01:00
peter1138 and Niels Martin Hansen
81d335b081
Feature: Add station coverage area display for towns.
2019-04-25 09:14:01 +02:00
peter1138 and Niels Martin Hansen
b6733edd17
Feature: Add coverage area display for existing stations.
2019-04-25 09:14:01 +02:00
Niels Martin Hansen
08284e005d
Fix: Automatic line breaking of the warning
2019-04-24 17:40:11 +02:00
Niels Martin Hansen
dcb2571888
Add: Warn players that company passwords are not truly secure
2019-04-24 17:40:11 +02:00
PeterN and GitHub
3bbd7ea2c1
Fix: Industry coverage area is no longer rectangular. ( #7464 )
...
AIs test station catchment in reverse to how players see station catchment.
This did not take account of non-rectangular station catchment areas, so AIs
could end up placing stations in locations that did not accept/deliver cargo.
2019-04-13 14:27:57 +01:00
PeterN and GitHub
abe8cf4985
Codechange: Replace duplicated code with TileArea::Expand() ( #7467 )
2019-04-13 14:12:34 +01:00
peter1138 and PeterN
5bd2b15e86
Codechange: Replace NULL with nullptr in squirrel interface.
2019-04-11 22:42:11 +01:00
Henry Wilson and Michael Lutz
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
2019-04-10 23:22:20 +02:00
peter1138 and PeterN
f0336f1f17
Codechange: Remove ship max order distance from script API.
2019-03-31 17:22:54 +01:00