smatz
2e2086f3f8
(svn r14742) -Codechange: use SmallMap in two cases to reduce compilation time and binary size
2008-12-26 13:50:46 +00:00
rubidium
d1bb5e5f36
(svn r14735) -Codechange: remove a bit of bit-waste in the map array (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-12-24 09:53:15 +00:00
frosch
3d467cabe5
(svn r14611) -Fix (r13437)[FS#2421]: Store the age of a house in the map 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-23 14:17:41 +00:00
frosch
1e991548ac
(svn r14596) -Fix (r14591): Missing 'return'.
2008-11-19 16:53:24 +00:00
smatz
07e3c096b3
(svn r14591) -Fix [FS#2388](r14528): cached nearest town could be invalid after importing older savegame and during town generation
...
-Codechange: rewrite parts of code responsible for caching index of nearest town
2008-11-18 22:43:59 +00:00
rubidium
a14ad77a36
(svn r14528) -Codechange: cache the closest town for all road tiles instead 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-25 13:51:47 +00:00
michi_cc
02c99bdf66
(svn r14504) -Cleanup: Use the right variable type for tile offsets.
2008-10-20 19:35:48 +00:00
rubidium
d832626bb9
(svn r14491) -Documentation: updates/additions of doxygen docs (Alberth)
2008-10-19 15:39:12 +00:00
rubidium
15eb140d28
(svn r14490) -Codechange: fix comment style on a few locations (Alberth)
2008-10-19 09:51:19 +00:00
rubidium
272b2ef0e9
(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)
2008-10-14 18:38:51 +00:00
rubidium
b650a86e58
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
2008-09-30 20:51:04 +00:00
rubidium
3b798599b6
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
2008-09-30 20:39:50 +00:00
rubidium
257f7a229b
(svn r14404) -Change [FS#2176]: don't make the town flatten land unconditionally when build on slopes is turned on. Based on a patch by Eddi.
2008-09-26 19:11:15 +00:00
frosch
bffc5717bc
(svn r14335) -Codechange: Remove some magic numbers.
2008-09-15 19:55:00 +00:00
smatz
1266b1a73f
(svn r14334) -Feature: ability to reset name to default/automatic value (for vehicles, engines, towns, groups, stations, waypoints, managers and companies)
2008-09-15 19:02:50 +00:00
rubidium
2d94337e1a
(svn r14064) -Fix [FS#1752]: check for the length of strings (in bytes) in the command. Checking for the length in pixels is impossible because that differs per client.
2008-08-13 06:22:04 +00:00
smatz
05c2a8eba4
(svn r13830) -Feature: show additional NewGRF info in the Tile Info window for stations, houses and industries
2008-07-25 22:37:34 +00:00
rubidium
3a799389eb
(svn r13731) -Codechange: make a pool of the array of players.
2008-07-18 16:40:29 +00:00
rubidium
891bec7e23
(svn r13730) -Fix: make a copy of the names for news messages about the deletion of companies as the removal of a company could lead to wrong names in the news messages.
2008-07-18 16:26:51 +00:00
rubidium
d06529ef4d
(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool.
2008-07-17 20:13:01 +00:00
frosch
17de6f9ced
(svn r13634) -Codechange: Let house var 0x65 ignore the house, the variable is queried for.
2008-06-25 20:04:27 +00:00
frosch
4e6d827ea6
(svn r13632) -Codechange: Use 'void *' for user-data of CircularTileSearch().
2008-06-25 18:46:05 +00:00
smatz
fee2adb299
(svn r13618) -Codechange: move tar-specific declarations to separate file
...
Removes indirect dependency on <string> and <map> for over 40 files
2008-06-24 09:05:24 +00:00
frosch
8bc42a8c2f
(svn r13518) -Fix [FS#2083]: Properly count number of non-north housetiles.
2008-06-14 19:13:23 +00:00
rubidium
a5486e626d
(svn r13489) -Fix: first determine where to *exactly* build a house before 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-12 14:41:29 +00:00
glx
ee256e770a
(svn r13390) -Codechange: introduce usererror() for fatal but not openttd 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 20:54:52 +00:00
belugas
4f3eb7f3cd
(svn r13383) -Codechange: Put the cost of house removal in a class member
2008-06-05 01:43:03 +00:00
belugas
4b4e73c1dd
(svn r13368) -Codechange: give house's min/max_date a better name, as it is really year, not date
2008-06-03 03:06:16 +00:00
belugas
b0ada3fbbf
(svn r13367) -Codechange: Allow CircularTileSearch function to return the tile where search has been successful, or INVALID_TILE if it has not
2008-06-03 02:20:27 +00:00
smatz
2e8b9a70ec
(svn r13362) -Fix: make the town authority window a bit less glitchy
2008-06-02 14:34:23 +00:00
smatz
ed462507b2
(svn r13351) -Codechange: disable warnings about unused variable for builds without asserts
2008-06-01 15:08:14 +00:00
rubidium
923e21129c
(svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
2008-05-29 15:13:28 +00:00
peter1138
cfb962c7f1
(svn r13297) -Codechange: Use GUIList for the town directory window
2008-05-27 20:05:36 +00:00
rubidium
8c9cc415e3
(svn r13255) -Codechange: move _opt to _settings.
2008-05-25 22:36:44 +00:00
rubidium
4625695653
(svn r13251) -Codechange: rename _patches to _settings as that is more logic.
...
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
2008-05-25 19:17:03 +00:00
frosch
6e7a7412cd
(svn r13233) -Fix: Replace some (incorrect) evaluations of TileOwner by RoadOwner.
...
-Fix: Before evaluating RoadOwner, check if the roadtype is present.
-Fix: Some places assumed that MP_ROAD means normal street.
2008-05-24 19:36:20 +00:00
belugas
fc35ad9ee9
(svn r13226) -Feature: Allow to have more than only two airports per town. 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-24 02:54:47 +00:00
frosch
eca692ef90
(svn r13206) -Feature(ette): Display all owners of a tile in the tile-info-window.
2008-05-21 22:15:39 +00:00
rubidium
76b8970a33
(svn r13100) -Codechange: reduce the amount of parameters passed via AddNewsMessage as there is (for each news message type) a tuple of 4 parameters that is the same for all calls.
2008-05-15 13:39:36 +00:00
rubidium
d03994098b
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
2008-05-06 15:11:33 +00:00
smatz
c76b2be644
(svn r12929) -Fix [FS#1967](r12560): town rating was too often reset to Mediocre
2008-04-29 23:11:55 +00:00
smatz
a870a66877
(svn r12920) -Fix (r12859): town rating was affected even after the test run
2008-04-29 18:08:14 +00:00
rubidium
9c675afb91
(svn r12859) -Fix: make the town rating tests use less memory and much quicker; from 13% to unnoticable in the profile in games with lots of towns and lots of very active AIs.
2008-04-23 22:55:11 +00:00
rubidium
6939569362
(svn r12855) -Codechange: do not use autoptr's for testing whether certain 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-23 20:56:08 +00:00
rubidium
5ef8c01ce7
(svn r12819) -Codechange: handle more NewGRFs in the same way as TTDP does it, i.e. testing the low bits for 0xFF or 0 instead of all bits.
2008-04-21 14:33:33 +00:00
rubidium
a40bba8bac
(svn r12817) -Feature: the ability to play NewGRF sounds for industries and stations.
2008-04-21 11:29:01 +00:00
rubidium
181b36ca0b
(svn r12801) -Codechange: remove the dependency of function.h in town_map.h
2008-04-20 08:43:31 +00:00
rubidium
acafc26426
(svn r12762) -Fix: tabs after the first non-tab character are generally not okay (or lines starting with a space and then tabs).
2008-04-18 04:54:09 +00:00
rubidium
9d8fa486af
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
2008-04-18 04:37:06 +00:00
rubidium
b1d1a4ac66
(svn r12757) -Codechange: move all cheat related stuff from all over the place to a single location.
2008-04-17 21:21:01 +00:00