Commit Graph

55 Commits

Author SHA1 Message Date
Niels Martin Hansen
c8779fb311
Feature: NewGRF callback profiling (#7868)
Adds a console command newgrf_profile to collect some profiling data about NewGRF action 2 callbacks and produce a CSV file.
2020-01-26 13:45:51 +01:00
S. D. Cloudt
13cc8a0cee Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
JMcKiern
04f659e768 Fix: Some typos found using codespell 2019-09-29 21:27:32 +01:00
Henry Wilson
7c8e7c6b6e Codechange: Use null pointer literal instead of the NULL macro 2019-04-10 23:22:20 +02:00
PeterN
e1069eee05
Codechange: Check airport layout would fit within map bounds before iterating tiles. (#7429) 2019-03-30 22:20:26 +00:00
glx22
e93630541d
Fix #7433: don't use AirportSpec substitute if it's not set (#7435) 2019-03-30 22:12:25 +01:00
Henry Wilson
af7d9020a1 Codechange: Use override specifer for overriding member declarations
This is a C++11 feature that allows the compiler to check that a virtual
member declaration overrides a base-class member with the same signature.

Also src/blitter/32bpp_anim_sse4.hpp +38 is no longer erroneously marked
as virtual despite being a template.
2019-03-24 16:10:04 +01:00
Charles Pigott
f5b1115039 Doc: Lots and lots of doxymentation fixes 2018-10-31 12:35:54 +01:00
frosch
d9d669dcf8 (svn r27984) -Codechange: Make ScopeResolver constructors/destructors inlineable. Speedup sprite resolving by about 8 percent. 2018-03-11 13:19:41 +00: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
frosch
6b61c4608f (svn r26388) -Codechange: Move resolving of Action 3 into ResolverObject constructor. 2014-03-03 20:02:31 +00:00
frosch
49852e3dac (svn r26175) -Add: Log in desync output when persistent storage is discarded. 2013-12-23 18:09:29 +00:00
frosch
db894b0b3f (svn r26085) -Codechange: Pass ResolverObjects as reference instead of pointer since they are never NULL. 2013-11-24 14:41:19 +00:00
alberth
33ff55a8f1 (svn r24693) -Doc: Add some doxymentation into the newgrf code. 2012-11-10 20:46:39 +00:00
alberth
4c9bea2a71 (svn r24692) -Cleanup: Cleanup final parts of the old resolver code. 2012-11-10 20:45:59 +00:00
alberth
c83db1395b (svn r24687) -Codechange: Add resolver classes for airports. 2012-11-10 20:42:50 +00:00
alberth
438495b433 (svn r24678) -Codechange: Introduce scope resolver base class and prepare for adding derived classes. 2012-11-10 20:37:31 +00:00
frosch
34969178db (svn r24169) -Add: Make NewGRFClass distinguish between defined specs and specs visible for the user. 2012-04-22 16:28:27 +00:00
frosch
6f4d2160c2 (svn r24162) -Codechange: Remove NewGRFClass::GetName() and SetName() in favour of using Get() and direct member access (which is needed anyway for GRF string resolving). 2012-04-22 16:27:55 +00:00
rubidium
6d6be50ae0 (svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files 2012-01-03 21:32:51 +00:00
frosch
d8f8909f85 (svn r23142) -Change: [NewGRF v8] Unify the return values of callbacks returning D0xx texts. 2011-11-08 17:24:43 +00:00
frosch
1ad7239247 (svn r23138) -Feature: [NewGRF] Allow passing 32bit parameters to 60+x variables (using var 7B). Currently most useful for vehicle var 60. 2011-11-08 17:23:30 +00:00
frosch
412cbe133d (svn r22636) -Fix: Airports should not expose the tile specific random bits of the north tile. Only airport tiles should access those. 2011-07-04 22:07:53 +00:00
frosch
8b18292a2e (svn r22634) -Codechange: Deduplicate some code. Note that zeroing 'count' is intentionally removed, it is only used together with 'scope'. 2011-07-04 20:31:57 +00:00
terkhen
00e5c1df18 (svn r22567) -Codechange: Store persistent storages inside a pool. 2011-06-12 20:47:45 +00:00
terkhen
0749c65d74 (svn r22564) -Codechange: Rename Get and Store persistent storage functions to GetValue and StoreValue. 2011-06-12 20:40:21 +00:00
terkhen
dc6218aa49 (svn r22563) -Codechange: Use a function for storing values inside the persistent storage. 2011-06-12 20:38:46 +00:00
yexo
00e65d1a4d (svn r22496) -Fix: callback result for airport layout name was incorrectly used 2011-05-27 16:06:23 +00:00
alberth
28092366ec (svn r22459) -Doc: Typo fixes and doxygen markup improvements. 2011-05-14 18:35:40 +00:00
rubidium
4d5dbf5170 (svn r22410) -Document: some more bits ;) 2011-05-02 16:14:23 +00:00
alberth
fa13971337 (svn r21088) -Doc: Additions/corrections of doxygen comments. 2010-11-05 16:34:22 +00:00
yexo
c07fdab16c (svn r20716) -Feature: add airport class and airport name to the land info tool 2010-09-01 23:14:15 +00:00
rubidium
30f2afac9b (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 2010-08-26 22:01:16 +00:00
rubidium
ca7a067b7a (svn r20435) -Codechange: move spritegroup to GRFFilePropsBase and prepare it for more spritegroups 2010-08-10 15:49:35 +00:00
rubidium
ef50a89ca5 (svn r20407) -Codechange: make AirportClass use the new generic class 2010-08-07 22:08:20 +00:00
rubidium
2d3ee123af (svn r20402) -Codechange: rename the airport/station class id to something slightly more generic 2010-08-07 21:10:57 +00:00
yexo
2e6713ce95 (svn r20374) -Codechange: add persistant storage for airports 2010-08-05 12:06:13 +00:00
yexo
5bacbba9f2 (svn r20371) -Codechange: add general function to call text callbacks for airports 2010-08-05 12:04:33 +00:00
yexo
3e6f8165d4 (svn r20369) -Feature: preview sprites for airports 2010-08-05 12:03:34 +00:00
yexo
330c2f979e (svn r20365) -Codechange: allow multiple layouts for one airport statemachine, store the layout number 2010-08-05 11:59:07 +00:00
yexo
6321eb5a00 (svn r20364) -Codechange: add infrastructure for airport callbacks 2010-08-05 11:57:55 +00:00
yexo
689d4bef04 (svn r20331) -Doc: some more airport-related code 2010-08-02 23:09:38 +00:00
rubidium
6bb0d06668 (svn r20203) -Fix: some file "headers" were incorrect, including doxygen @file so they wouldn't be picked up by doxygen. 2010-07-22 16:50:58 +00:00
yexo
81ca0e28c4 (svn r19462) -Codechange: use the AS_GENERIC macro also for the dummy airport 2010-03-19 00:34:38 +00:00
yexo
38f4cb6469 (svn r19457) -Codechange: introduce AirportOverrideManager to keep track of airports if a newgrf can't be found 2010-03-18 23:12:38 +00:00
yexo
a99a7e7a37 (svn r19456) -Codechange; increase the maximum number of airports 2010-03-18 23:10:35 +00:00
yexo
f7691a95d7 (svn r19354) -Codechange: store the number of layouts in AirportSpec 2010-03-06 16:02:07 +00:00
yexo
20e05f878c (svn r19353) -Codechange: use static objects for the airport statemachines instead of new/delete at the start/end of the game
-Codechange: store the fta in AirportSpec
2010-03-06 15:38:13 +00:00
yexo
585b036c90 (svn r19327) -Codechange: make the oilrig a part of the original airports array so some special cases can be removed 2010-03-05 23:21:51 +00:00
yexo
c42e2a9bfc (svn r19326) -Codechange: store the airport name as property in AirportSpec 2010-03-05 23:21:41 +00:00