Commit Graph

56 Commits (c8779fb311c2665d3fc45c18b2f3460cd998d179)

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.
4 years ago
glx 514565fad6 Codechange: Replace FOR_ALL_OBJECTS with range-based for loops 5 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 5 years ago
Charles Pigott f5b1115039 Doc: Lots and lots of doxymentation fixes 6 years ago
Charles Pigott 5f86e1a390 Codechange: Silence -Wclass-memaccess warnings with GCC8 6 years ago
frosch d9d669dcf8 (svn r27984) -Codechange: Make ScopeResolver constructors/destructors inlineable. Speedup sprite resolving by about 8 percent. 6 years ago
frosch b4b98e5165 (svn r27893) -Codechange: Use fallthrough attribute. (LordAro) 7 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 10 years ago
frosch 6b61c4608f (svn r26388) -Codechange: Move resolving of Action 3 into ResolverObject constructor. 10 years ago
frosch 50c6b2486b (svn r26316) -Feature [FS#5696]: Extend object variable 0x60 to also return the view. 10 years ago
frosch db894b0b3f (svn r26085) -Codechange: Pass ResolverObjects as reference instead of pointer since they are never NULL. 11 years ago
planetmaker 2ee9a2b5e7 (svn r25875) -Change: In scenario editor allow to build all objects which were available at any point in the past to support building scenarios with historic items 11 years ago
frosch 35d7e8bca4 (svn r25833) -Codechange: Move ObjectType from map array into pool item. 11 years ago
alberth 33ff55a8f1 (svn r24693) -Doc: Add some doxymentation into the newgrf code. 12 years ago
alberth 4c9bea2a71 (svn r24692) -Cleanup: Cleanup final parts of the old resolver code. 12 years ago
alberth a9b8b22daf (svn r24683) -Codechange: Add resolver classes for objects. 12 years ago
alberth 438495b433 (svn r24678) -Codechange: Introduce scope resolver base class and prepare for adding derived classes. 12 years ago
frosch f0559db37c (svn r24172) -Cleanup: Lighthouse and transmitter no longer need special treatment to not appear in the object GUI. 12 years ago
frosch 34969178db (svn r24169) -Add: Make NewGRFClass distinguish between defined specs and specs visible for the user. 12 years ago
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). 12 years ago
frosch 27ffb03383 (svn r24160) -Codechange: Split parts of ObjectSpec::IsAvailable() into ObjectSpec::IsEverAvailable(). 12 years ago
rubidium 6d6be50ae0 (svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files 13 years ago
rubidium e40eb8177a (svn r23735) -Codechange: remove ~50 includes from headers that weren't needed 13 years ago
frosch 8f4c6d42f9 (svn r23154) -Change: [NewGRF v8] Use heightlevel units in nearby tile info variables. (rubidium) 13 years ago
frosch 1ad7239247 (svn r23138) -Feature: [NewGRF] Allow passing 32bit parameters to 60+x variables (using var 7B). Currently most useful for vehicle var 60. 13 years ago
rubidium 2ed0f93bfb (svn r23093) -Codechange: add a default NULL for the Z of GetTileSlope and use it 13 years ago
rubidium 7757a2ed40 (svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ functions if they return the Z in pixels (like TilePixelHeight) 13 years ago
michi_cc f66cd97776 (svn r23071) -Codechange: [NewGRF] Allow passing custom extra data through the generic NewGRF animation helper class. 13 years ago
planetmaker 86234253a5 (svn r22757) -Fix [FS#4730]: [NewGRF] Invalid memory access when querying the grfID of the default objects 13 years ago
frosch 8b18292a2e (svn r22634) -Codechange: Deduplicate some code. Note that zeroing 'count' is intentionally removed, it is only used together with 'scope'. 13 years ago
terkhen a619ad3789 (svn r22569) -Feature: [NewGRF] Persistent storage for towns. 13 years ago
terkhen f1cde00372 (svn r22561) -Codechange: Remove constness from Object in ResolverObject. 13 years ago
terkhen e127fca384 (svn r22557) -Codechange: Remove constness from AnimationBase callbacks. 13 years ago
frosch a241a4ce97 (svn r22518) -Feature: [NewGRF] Advanced sprite layouts with register modifiers. 13 years ago
frosch e55f849a29 (svn r22457) -Codechange: Make the NewGRFSpriteLayout a direct member of TileLayoutSpriteGroup instead of allocating it separately. 13 years ago
rubidium 7eba2bf4d3 (svn r21890) -Cleanup: remove some unneeded includes 14 years ago
rubidium eb299736c1 (svn r21886) -Codechange: move documentation towards the code to make it more likely to be updated [n]. 14 years ago
rubidium 5d0da9492e (svn r21454) -Codechange: add support for object variable 48 14 years ago
rubidium 21cf75951c (svn r21360) -Fix [FS#4281]: crash when randomised action2 was used when resolving the image to draw in the buy menu 14 years ago
alberth ab50f74d7f (svn r21273) -Codechange: Return values should start at the same line. 14 years ago
rubidium 8ba6d25db6 (svn r21259) -Change: [NewGRF] Split var43 into var43 (animation stage) and var47 (object colour) 14 years ago
rubidium a6a2fbd937 (svn r21198) -Fix: don't call variables properties in debug messages 14 years ago
yexo 61e419e27f (svn r21041) -Change: [NewGRF] make object var 60 return the object id even when the relative tile is not part of the same object 14 years ago
rubidium 322e4ab86f (svn r20908) -Fix [FS#4156]: assertion when the buy menu graphics callback accessed a variable that needs a tile index 14 years ago
rubidium dd0a8a573d (svn r20676) -Codechange: it's not needed to supply two almost identical vars 14 years ago
rubidium a8b992f4fd (svn r20673) -Codechange: add support for inspecting objects 14 years ago
rubidium c862ab42c9 (svn r20671) -Add: feature F (not action F as written mistakenly in the previous message) support for the scenario editor 14 years ago
rubidium 60fe27db50 (svn r20662) -Codechange: implement object animation 14 years ago
rubidium 852bde0bad (svn r20660) -Codechange: implement (most) of action2 support for objects 14 years ago