Age | Commit message (Collapse) | Author |
|
|
|
TTDPatch and
OpenTTD feature with it's origin in TTDPatch to replace/add/change vehicles
(including e.g. maximum speed, graphics and introduction year), stations,
bridges, industries, town houses or any other graphics used by either
TTDPatch or OpenTTD, would tell that building an industry is okay, which
is queried using a so-called callback that allows the NewGRF author to
test all kinds of information about the neighbourhood where the industry
might get build, it would corrupt, i.e. overwrite with invalid data, the
structure that is used to build up an error message. This then might result
in trying to resolve an invalid StringID, an internal numeric representation
of all translateable strings, which would in it's turn trigger a safety
check that is added to ensure invalid StringIDs are never resolved.
|
|
|
|
|
|
client so it is immediatelly clear which one you are working with.
|
|
times faster than pre-r14416 in average case
|
|
the 'nearest land/water' check (~25% performance penalty)
|
|
industries
|
|
|
|
|
|
with all other structs/classes that are in a pool.
|
|
equivalent constant
|
|
46, as no param was required (thanks frosch)
|
|
construction date.
Same as var B0, but base year is now 0, instead of 1920
|
|
something more than whitespace as description of files that don't have a description.
|
|
okay (or lines starting with a space and then tabs).
|
|
|
|
callback 28.
|
|
|
|
specified in FS#1712.
|
|
better scheme is implemented.
|
|
callback 28 (Industry location permissibility)
|
|
logical location.
|
|
unneeded include from openttd.h.
|
|
|
|
|
|
doing industry callback.
Some variables used were linked to invalid industry.
|
|
|
|
|
|
|
|
logical place and remove about 50% of the includes of 'functions.h'
|
|
logical locations.
|
|
industries and fix a 'bug' as side effect.
|
|
|
|
industries.
|
|
remaining to fit with the naming style
|
|
style
|
|
with the coding style
|
|
|
|
|
|
NewIndustries' error messages. Patch by Csaboka.
|
|
|
|
against a randomness that could eventually cause desynchs. Instead, use a controlled random value.
|
|
|
|
-Refactor: some code so there is less code duplication.
|
|
invalid (i.e. not a callback result), the industry should be allowed to be build as that's how TTDP does it.
|
|
|
|
ID would be needed. Fix by Belugas.
-Fix: GetIndustryIDAtOffset crashed when the industry->xy tile was not an industry tile.
|
|
triggers (part of the backend for it). Furthermore update the documentation of the map's bits wrt to industries.
|
|
when the NewGRF asked for it.
|