summaryrefslogtreecommitdiff
path: root/src/town_cmd.cpp
AgeCommit message (Collapse)Author
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 r14742) -Codechange: use SmallMap in two cases to reduce compilation ↵smatz
time and binary size
2008-12-24(svn r14735) -Codechange: remove a bit of bit-waste in the map array ↵rubidium
(without changing the map array) and make the CompanyIDs contiguous. -Note: 15 should be enough for now... making it any more means adding more bytes to the map array and thus wasting more bits instead of reducing the bit waste.
2008-11-23(svn r14611) -Fix (r13437)[FS#2421]: Store the age of a house in the map ↵frosch
array instead of the construction year. Note: Savegames from r13437 to now are broken and have a age of 255 years for a lot houses.
2008-11-19(svn r14596) -Fix (r14591): Missing 'return'.frosch
2008-11-18(svn r14591) -Fix [FS#2388](r14528): cached nearest town could be invalid ↵smatz
after importing older savegame and during town generation -Codechange: rewrite parts of code responsible for caching index of nearest town
2008-10-25(svn r14528) -Codechange: cache the closest town for all road tiles instead ↵rubidium
of only roads owned by tiles. This replaces a O(n) search over all towns from the road's tileloop with a O(1) lookup (PhilSophus)
2008-10-20(svn r14504) -Cleanup: Use the right variable type for tile offsets.michi_cc
2008-10-19(svn r14491) -Documentation: updates/additions of doxygen docs (Alberth)rubidium
2008-10-19(svn r14490) -Codechange: fix comment style on a few locations (Alberth)rubidium
2008-10-14(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)rubidium
2008-09-30(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.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-26(svn r14404) -Change [FS#2176]: don't make the town flatten land ↵rubidium
unconditionally when build on slopes is turned on. Based on a patch by Eddi.
2008-09-15(svn r14335) -Codechange: Remove some magic numbers.frosch
2008-09-15(svn r14334) -Feature: ability to reset name to default/automatic value (for ↵smatz
vehicles, engines, towns, groups, stations, waypoints, managers and companies)
2008-08-13(svn r14064) -Fix [FS#1752]: check for the length of strings (in bytes) in ↵rubidium
the command. Checking for the length in pixels is impossible because that differs per client.
2008-07-25(svn r13830) -Feature: show additional NewGRF info in the Tile Info window ↵smatz
for stations, houses and industries
2008-07-18(svn r13731) -Codechange: make a pool of the array of players.rubidium
2008-07-18(svn r13730) -Fix: make a copy of the names for news messages about the ↵rubidium
deletion of companies as the removal of a company could lead to wrong names in the news messages.
2008-07-17(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line ↵rubidium
with all other structs/classes that are in a pool.
2008-06-25(svn r13634) -Codechange: Let house var 0x65 ignore the house, the variable ↵frosch
is queried for.
2008-06-25(svn r13632) -Codechange: Use 'void *' for user-data of CircularTileSearch().frosch
2008-06-24(svn r13618) -Codechange: move tar-specific declarations to separate filesmatz
Removes indirect dependency on <string> and <map> for over 40 files
2008-06-14(svn r13518) -Fix [FS#2083]: Properly count number of non-north housetiles.frosch
2008-06-12(svn r13489) -Fix: first determine where to *exactly* build a house before ↵rubidium
asking a NewGRF whether the location is good instead of possibly moving the house a tile after the NewGRF said the location is good.
2008-06-05(svn r13390) -Codechange: introduce usererror() for fatal but not openttd ↵glx
related errors. Now all error() will 'crash' openttd after showing the message in win32 releases (MSVC), creating a crash.log and crash.dmp (like the '!' hack used before). On the other hand, usererror() will just close the game. So use error() only when it can be helpful to debugging, else use usererror().
2008-06-05(svn r13383) -Codechange: Put the cost of house removal in a class memberbelugas
2008-06-03(svn r13368) -Codechange: give house's min/max_date a better name, as it is ↵belugas
really year, not date
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-06-02(svn r13362) -Fix: make the town authority window a bit less glitchysmatz
2008-06-01(svn r13351) -Codechange: disable warnings about unused variable for builds ↵smatz
without asserts
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-27(svn r13297) -Codechange: Use GUIList for the town directory windowpeter1138
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-24(svn r13233) -Fix: Replace some (incorrect) evaluations of TileOwner by ↵frosch
RoadOwner. -Fix: Before evaluating RoadOwner, check if the roadtype is present. -Fix: Some places assumed that MP_ROAD means normal street.
2008-05-24(svn r13226) -Feature: Allow to have more than only two airports per town. ↵belugas
The number of airports is now controlled by the noise each of them generates, the distance from town's center and how tolerant the town is. Initial concept : TTDPatch (moreairpots), Initial code : Pasky Thanks to BigBB (help coding), Smatz Skidd13 and frosch for bugcatches and advices
2008-05-21(svn r13206) -Feature(ette): Display all owners of a tile in the ↵frosch
tile-info-window.
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.
2008-05-06(svn r12971) -Documentation: add @file in files that missed them and add ↵rubidium
something more than whitespace as description of files that don't have a description.
2008-04-29(svn r12929) -Fix [FS#1967](r12560): town rating was too often reset to Mediocresmatz
2008-04-29(svn r12920) -Fix (r12859): town rating was affected even after the test runsmatz
2008-04-23(svn r12859) -Fix: make the town rating tests use less memory and much ↵rubidium
quicker; from 13% to unnoticable in the profile in games with lots of towns and lots of very active AIs.
2008-04-23(svn r12855) -Codechange: do not use autoptr's for testing whether certain ↵rubidium
objects can be build, but check it directly in the pool so we do not have to call destructors in the testing phase. Stations still use the autoptr though.
2008-04-21(svn r12819) -Codechange: handle more NewGRFs in the same way as TTDP does ↵rubidium
it, i.e. testing the low bits for 0xFF or 0 instead of all bits.
2008-04-21(svn r12817) -Feature: the ability to play NewGRF sounds for industries and ↵rubidium
stations.
2008-04-20(svn r12801) -Codechange: remove the dependency of function.h in town_map.hrubidium
2008-04-18(svn r12762) -Fix: tabs after the first non-tab character are generally not ↵rubidium
okay (or lines starting with a space and then tabs).