Commit Graph

450 Commits (a9a8ed5188726c56df4638d69ce83a5f58e1372f)

Author SHA1 Message Date
rubidium 0c2f4bdc2b (svn r27020) -Cleanup: some coding style consistency improvements (mostly spaces) 10 years ago
rubidium dc2b4f2498 (svn r26879) -Codechange: remove most MayHaveBridgeAbove calls since the data is now always accessible 10 years ago
rubidium 034735a54c (svn r26509) -Codechange: replace strdup with stredup (the latter ensures the return is not NULL) 10 years ago
rubidium 2be4215f43 (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 f7732ab5b3 (svn r26346) -Fix [FS#5870]: Call Layouter::ReduceLineCache from GenerateTownName in all cases. 11 years ago
frosch cd51dd9960 (svn r26345) -Cleanup (r26310): Spawning towns does not touch persistent NewGRF storage. ClearPersistentStorageChanges is a dangerous/magic function which should not be called without reason. 11 years ago
rubidium 30c9f0740d (svn r26313) -Codechange: use a set for finding unique town names instead of iterating all just created town names (MJP) 11 years ago
rubidium d662b17dbe (svn r26311) -Codechange: use a different method for finding whether there is a nearby town when the map has thousands of towns (MJP) 11 years ago
rubidium 80a5ac215f (svn r26310) -Codechange: clean up some caches during town generation to keep memory usage significantly lower (MJP) 11 years ago
rubidium 732ae5b600 (svn r26308) -Fix-ish: do not try to build more towns/industries than the pool can hold (MJP) 11 years ago
rubidium 437dcfb37d (svn r26104) -Fix: do not attempt to do stuff with an invalid direction, especially using it as index into a table 11 years ago
rubidium 81c0b0e861 (svn r26051) -Fix: out of bounds access in CmdTownCargoGoal 11 years ago
frosch 88175c2503 (svn r25968) -Add: [Script] ScriptTown::TOWN_GROWTH_NONE to indicate no town growth via ScriptTown::SetGrowthRate and GetGrowthRate. 11 years ago
frosch b9fe9c3bb9 (svn r25931) -Fix [FS#5786-ish]: [NoGo] Preserve the relative town growth progress when changing the town growth rate. 11 years ago
frosch 56365e81e1 (svn r25922) -Codechange: Rename TOWN_IS_FUNDED to TOWN_IS_GROWING. It is not tied to funding a town. 11 years ago
zuu e124838db5 (svn r25849) -Codechange: Introduce IsTileFlat to not compute full slope information for situations when we only want to know if a tile is flat or not (cirdan, LordAro) 11 years ago
frosch 670c4879cf (svn r25838) -Codechange: Rename HOUSE_MAX to NUM_HOUSES. 11 years ago
frosch d9d978d6d2 (svn r25833) -Codechange: Move ObjectType from map array into pool item. 11 years ago
zuu a89875b64e (svn r25789) -Fix (r25783): Calling GSTown.FoundTown in world gen caused world gen to terminate and start the game 11 years ago
zuu f0fa978c09 (svn r25785) -Feature: [Script] Allow AIs and GS to found towns. Allow GS to rename towns 11 years ago
frosch 42f401aa26 (svn r25140) -Fix [FS#5519]: Towns are build as OWNER_TOWN, so they also need to be removed as OWNER_TOWN. 11 years ago
planetmaker f00d9976f9 (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 12 years ago
alberth 19adc87262 (svn r24776) -Doc: Typo fixes, additions, and additional dots collected from various sources (including Eagle_rainbow, MinchinWeb) 12 years ago
frosch 1881f70fbb (svn r24391) -Change [FS#5229]: Disallow original and better road layouts to build roads under bridges along the bridge direction. 12 years ago
frosch 1008ceddb8 (svn r24291) -Add: [Script] ScriptEventRoadReconstruction. 12 years ago
frosch 4e074cdbf7 (svn r24290) -Add: [Script] ScriptEventExclusiveTransportRights. 12 years ago
frosch bfaf2bd49c (svn r24287) -Feature [FS#2688]: News item for exclusive transport rights. (based on patch by Grantovich) 12 years ago
frosch 2aa43d6c8b (svn r24284) -Codechange: Remove NewsSubtypes and directly use NewsTypes and NewsFlag instead. 12 years ago
frosch c6af35c085 (svn r24283) -Codechange: Add AddTileNewsItem function to preemptively deduplicate code. 12 years ago
frosch 675fc185be (svn r24205) -Feature [FS#5178-ish]: Show a hint in the supplies tab of station windows, if the station is affected by exclusive transport rights. 12 years ago
frosch 4fda069104 (svn r24183) -Fix [FS#5169]: Town radii were not updated immediatelly after construction/destruction of houses, resulting in desyncs. 12 years ago
rubidium 76d5833650 (svn r24179) -Codechange: move some variables of Town to TownCache 12 years ago
alberth e11179453b (svn r24105) -Feature: Be more careful with the population of a small town while placing a statue. 12 years ago
alberth 32b20603cb (svn r24104) -Codechange: Output the resulting tile through the user data. 12 years ago
alberth 035fb43e7a (svn r24103) -Codechange: Handle clear tiles separately from house tiles. 12 years ago
alberth 2fdd9b918b (svn r24102) -Codechange: Refactor tile clearability test out of the statue callback. 12 years ago
alberth e2d963d794 (svn r24101) -Codechange: Reverse a condition for increased readability. 12 years ago
rubidium 48fd132847 (svn r24064) -Fix [FS#5121]: make the full snowedness level of houses the same as roads and rails 12 years ago
frosch 9ef4a017ae (svn r23953) -Fix [FS#5062]: When the population of a town changes the town view might even have to change size due to different cargo requirements. 13 years ago
frosch 076f3ead20 (svn r23819) -Fix [FS#4951]: Removal of towns with 0 population failed during map generation. 13 years ago
rubidium d5eeab43b7 (svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files 13 years ago
truebrain 6961332f05 (svn r23626) -Add: ScriptTown::SetText, which adds custom text to the Town GUI 13 years ago
truebrain bc78328918 (svn r23622) -Add: a set of events to trigger in a GameScript 13 years ago
truebrain b00fcef81a (svn r23620) -Add: ScriptTown::SetCargoGoal and ScriptTown::SetGrowthRate (GameScript only) 13 years ago
truebrain 37954d5098 (svn r23617) -Add: ScriptTown::ExpandTown, to grow a town (GameScript only) 13 years ago
rubidium 24263638bf (svn r23526) -Codechange: unify cargos vs cargoes 13 years ago
rubidium 56f37d9386 (svn r23476) -Codechange: use the error queue to replace switch mode error strings, again making it possible to return multiple errors 13 years ago
rubidium 9aab2dc861 (svn r23474) -Codechange: move the declaration error related functions to error.h 13 years ago
terkhen a6557b4f09 (svn r23407) -Codechange: Keep a bitmap of all cargos accepted by towns. 13 years ago
terkhen a9cc00bf68 (svn r23405) -Codechange: Keep a matrix of cargos accepted by houses for each town (michi_cc). 13 years ago