summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
AgeCommit message (Collapse)Author
2009-04-11(svn r16027) -Fix (r9555): Usage of uninitialised memory when trying to ↵frosch
build a random new industry, but there are no industrytypes to choose from (i.e. all appearance probabilities are zero).
2009-03-29(svn r15888) -Fix (r15103)[FS#2772]: Round the production rate up, so e.g. ↵frosch
oilrigs always produce some passengers on lowest production level.
2009-03-15(svn r15718) -Cleanup: apply some comment coding style on the rest of the ↵rubidium
sources too
2009-03-14(svn r15711) -Codechange: lots of whitespace cleanup/fixesrubidium
2009-02-25(svn r15585) -Codechange: Remove TILE_ASSERT and replace all instances with ↵yexo
assert(tile < MapSize()).
2009-02-25(svn r15583) -Fix: Do not use TILE_MASK when you do not want to wrap around ↵frosch
them map.
2009-02-21(svn r15550) -Fix [FS#2654]: bogus secondary error message when dynamiting ↵rubidium
industries/unmoveables; "X is in the way" isn't helpful at all in that case.
2009-02-12(svn r15458) -Fix: Missing 'static'.frosch
2009-02-11(svn r15453) -Fix [FS#2450](r14613): Founding industries as OWNER_TOWN ↵frosch
resulted in unwanted effects.
2009-02-09(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.rubidium
2009-02-09(svn r15428) -Codechange: consistently use colour instead of having both ↵rubidium
color and colour.
2009-02-08(svn r15410) -Cleanup: get rid of most of the references to the 'patches' ↵rubidium
except where it's used for backward compatability.
2009-01-31(svn r15299) -Cleanup: remove many redundant includessmatz
2009-01-21(svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map.Yexo
2009-01-17(svn r15119) -Fix: several issues with result 0x4 (standard production ↵frosch
change of primary industries) of callbacks 0x29 and 0x35.
2009-01-16(svn r15103) -Change: Keep industry variables 8E and 8F in sync with 93, ↵frosch
when changing production using results 0D, 0E or 0F of callback 29 or 35.
2009-01-13(svn r15073) -Fix (r15067) [FS#2532]: Default copy constructors don't ↵peter1138
necessarily do what you want. Instead of creating one, we now pass a pointer around as that avoids additional allocations.
2009-01-13(svn r15067) -Fix [FS#2531]: Possible compiler bug, alleviated by using ↵peter1138
SmallVector instead of using std::set. SmallVector does everything needed anyway.
2009-01-12(svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to ↵truebrain
see. NoAI is an API (a framework) to build your own AIs in. See: http://wiki.openttd.org/wiki/index.php/AI:Main_Page With many thanks to: - glx and Rubidium for their syncing, feedback and hard work - Yexo for his feedback, patches, and AIs which tested the system very deep - Morloth for his feedback and patches - TJIP for hosting a challenge which kept NoAI on track - All AI authors for testing our AI API, and all other people who helped in one way or another -Remove: all old AIs and their cheats/hacks
2009-01-10(svn r14949) -Cleanup: pointer coding stylerubidium
2009-01-09(svn r14936) -Fix: INDUSTRYBEH_ONLY_NEARTOWN bypassed the clear-test and ↵frosch
could e.g. result in incomplete clearing of protected houses.
2009-01-04(svn r14828) -Codechange: move most of save/load-specific code to separate filessmatz
2009-01-04(svn r14823) -Document: some variables/structs (Alberth)rubidium
2009-01-03(svn r14807) -Codechange: use INVALID_TILE instead of 0 to mark invalid ↵smatz
depots, industries, towns and waypoints
2009-01-02(svn r14789) -Feature: allow scrolling with the left mouse button pressed ↵rubidium
(if enabled). Primarily useful for systems with touch screen (aapo)
2008-12-28(svn r14754) -Codechange: get rid of _cmd_text and just pass it as ↵rubidium
(optional) parameter.
2008-12-26(svn r14746) -Fix: don't let any disaster vehicle (Helicopter or Airplane) ↵smatz
target invalid industry
2008-11-23(svn r14613) -Fix [FS#2420]: When building industries, clear the tiles as ↵frosch
OWNER_TOWN instead of the founder to take care of protected buildings and to not get stressed by town ratings.
2008-11-22(svn r14604) -Codechange: Simplify a function and rename it, and fix some ↵frosch
comments.
2008-11-03(svn r14562) -Fix (r14561): 8 bits are enough. The rest stays reserved.frosch
2008-11-03(svn r14561) -Feature(ette)[FS#2334]: Add result 0x0F to callbacks ↵frosch
0x29/0x35. (Yexo)
2008-10-14(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)rubidium
2008-09-30(svn r14421) -Codechange: rename all player variables/types to company *or* ↵rubidium
client so it is immediatelly clear which one you are working with.
2008-09-15(svn r14332) -Fix[FS#1885]: Balance the monthly random industry changes, by ↵belugas
introducing a daily random industry change. This will allow to perform more changes per month on big maps and less on smaller maps, while not overtaxing the IndustryMonthlyLoop process. Thanks to frosch, for nice code ideas and rewrites
2008-08-17(svn r14093) -Fix [FS#2230]: don't flood a NewGRF industry when it ↵rubidium
implicitly tells that it wants to be build on water (land shape flags bit 5).
2008-07-30(svn r13872) -Feature: Split the news message announcing opening and closure ↵belugas
of industries into two news of their own
2008-07-28(svn r13864) -Feature(FS #2164): All industry creations are now generating a ↵belugas
news event, even those funded by a real player.
2008-07-26(svn r13838) -Codechange: Make industry tiles aware of WaterClasses.frosch
2008-07-25(svn r13830) -Feature: show additional NewGRF info in the Tile Info window ↵smatz
for stations, houses and industries
2008-06-25(svn r13632) -Codechange: Use 'void *' for user-data of CircularTileSearch().frosch
2008-06-12(svn r13499) -Codechange: Allow drawing (ugly) leveled foundations on steep ↵frosch
slopes, just in case someone needs them for fallback.
2008-06-03(svn r13367) -Codechange: Allow CircularTileSearch function to return the ↵belugas
tile where search has been successful, or INVALID_TILE if it has not
2008-05-31(svn r13348) -Fix: an industry does not always need foundations; in the case ↵rubidium
of NewGRFs an industry can be built on a steep slope, however when 'querying' the foundation type of an industry we neglected the fact that these steep slope tiles do not have a foundation. As a result of this when one built a structure requiring foundations on a tile SW or SE of a steep slope industry tile it would try to apply the foundation on the steep slope to determine whether to draw the wall of the foundation and trigger an assert.
2008-05-29(svn r13325) -Codechange: split the client-side only settings from the ↵rubidium
settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
2008-05-25(svn r13255) -Codechange: move _opt to _settings.rubidium
2008-05-25(svn r13251) -Codechange: rename _patches to _settings as that is more logic.rubidium
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
2008-05-21(svn r13206) -Feature(ette): Display all owners of a tile in the ↵frosch
tile-info-window.
2008-05-21(svn r13205) -Codechange: Remove unnecessary code-style-buggering-up macro.peter1138
2008-05-18(svn r13174) -Codechange: make a class of the IndustryDirectoryWindow.glx
2008-05-15(svn r13100) -Codechange: reduce the amount of parameters passed via ↵rubidium
AddNewsMessage as there is (for each news message type) a tuple of 4 parameters that is the same for all calls.