rubidium
ed8788d581
(svn r17682) -Codechange: remove erroneous space before some commas
2009-10-02 15:13:15 +00:00
rubidium
5ced4ad44b
(svn r17638) -Fix [FS#3235]: Crash when trying to build an industry that has no industry layout defined; yes, it's very similar to r17633 because one case was forgotten.
2009-09-25 21:08:45 +00:00
rubidium
a04f3950ec
(svn r17633) -Fix [FS#3233]: [NewGRF] Crash when trying to build an industry that has no industry layout defined.
2009-09-25 09:32:20 +00:00
smatz
6cb860e69e
(svn r17601) -Fix (r17592): don't mark cargo as 'accepted' when accepted amount is 0
2009-09-21 17:24:21 +00:00
smatz
581366f352
(svn r17592) -Fix [FS#3212](r17436): force all cargo being accepted when industry tiles accept it but industry itself doesn't
2009-09-20 18:52:12 +00:00
smatz
c3a80f1518
(svn r17589) -Codechange: rename town_acc to always_accepted
2009-09-20 17:44:33 +00:00
rubidium
06e490fadc
(svn r17567) -Fix: some doxygen warnings
2009-09-18 14:23:58 +00:00
rubidium
c2c0f4403e
(svn r17534) -Codechange: unify the naming of callback masks/flags
2009-09-14 12:22:57 +00:00
frosch
0e36260337
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
2009-09-13 19:15:59 +00:00
rubidium
7fd584a95b
(svn r17521) -Change: don't assume that there is always 'another' industry tile after two '0x18' industry tiles
2009-09-13 10:58:41 +00:00
rubidium
6b25288ba1
(svn r17472) -Fix [FS#3182]: industry list was rebuilt too early during industry removal causing the removed industry to be still in the list after removal
2009-09-08 12:22:28 +00:00
smatz
5d622fd840
(svn r17439) -Fix (r17436): you weren't paid for cargo delivered to houses and headquarters anymore
2009-09-07 07:39:08 +00:00
rubidium
f3372f6bc1
(svn r17414) -Codechange: only send/read the number of bits that can be actually useful when building industries
2009-09-04 20:04:54 +00:00
rubidium
ebe53440be
(svn r17413) -Fix: assert when trying to build an invalid industry type it did
2009-09-04 20:02:35 +00:00
smatz
09e1ecc8ac
(svn r17316) -Codechange: use Industry::GetByTile() instead of GetIndustryByTile()
2009-08-30 11:47:41 +00:00
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
smatz
073e163b7f
(svn r17131) -Codechange: apply coding style to some switch statements
2009-08-09 14:40:34 +00:00
smatz
0502a6df42
(svn r17113) -Change [FS#265][FS#2094][FS#2589]: apply the subsidy when subsidy's destination is in station's catchment area and cargo packets originate from subsidy's source
...
-Change [FS#1134]: subsidies aren't bound to stations after awarding anymore, they still apply to town or industry, no matter what station is used for loading and unloading. Awarded subsidies from older savegames are lost
-Change [NoAI]: due to these changes, AISubsidy::GetSource and AISubsidy::GetDestination now return STATION_INVALID for awarded subsidies
2009-08-08 16:42:55 +00:00
smatz
738d7fde53
(svn r17107) -Codechange: store type of subsidy source and destination in the Subsidy struct instead of determining it every time it's needed
2009-08-07 22:23:34 +00:00
rubidium
d61be2637e
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
2009-08-05 17:59:21 +00:00
rubidium
30d9e54279
(svn r16966) -Codechange: BEGIN_TILE_LOOP and END_TILE_LOOP reworked into TILE_LOOP, which means no more duplication of parameters between BEGIN_TILE_LOOP and END_TILE_LOOP
2009-07-26 21:50:30 +00:00
rubidium
39e6dbd5e3
(svn r16886) -Codechange: unify naming of some string IDs related to string codes and group them logically
2009-07-20 11:21:57 +00:00
smatz
8718babe90
(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()
2009-07-16 19:00:13 +00:00
smatz
20fedeb3d6
(svn r16717) -Codechange: make IsFrontEngine() member of Train
2009-07-01 22:22:01 +00:00
rubidium
3b44f44287
(svn r16709) -Fix [FS#2994]: the list of animated tiles could have duplicates (only for old savegames) and tiles that weren't animated
2009-07-01 14:51:05 +00:00
frosch
523cde0798
(svn r16678) -Codechange: Turn CargoArray into a class, so one does not have to deal with sizeof() wrt. typedef-ed arrays.
2009-06-27 21:06:58 +00:00
frosch
4c3f480f92
(svn r16676) -Codechange: Rename AcceptedCargo to CargoArray and its instances to more meaningful names.
2009-06-27 18:26:50 +00:00
smatz
837b3628d9
(svn r16673) -Codechange: rename GetProducedCargo() to AddProducedCargo() and change its behaviour accordingly
2009-06-27 17:05:20 +00:00
smatz
873a205ae6
(svn r16667) -Codechange: replace GetRandomTown() and GetRandomIndustry() by Town::GetRandom() and Industry::GetRandom()
2009-06-26 15:08:54 +00:00
smatz
5d301445a2
(svn r16659) -Codechange: rename GetAcceptedCargo() to AddAcceptedCargo() and change its behaviour accordingly
...
-Codechange: remove dummy GetAcceptedCargo_*() handlers
2009-06-25 19:23:09 +00:00
smatz
72bee4ad2d
(svn r16654) -Codechange: cache industries in station's coverage area instead of searching them everytime payment is made
2009-06-25 15:42:03 +00:00
smatz
f6a4d61cca
(svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile()
2009-06-24 17:39:54 +00:00
alberth
580e478e4e
(svn r16491) -Codechange: Added parentheses around bitwise operators for code style.
2009-06-01 11:43:36 +00:00
rubidium
d39f442bd0
(svn r16434) -Cleanup: remove some dead code; primarily stuff that can't be reached like break after returns or break after functions that never return (i.e. NOT_REACHED)
2009-05-26 15:46:24 +00:00
frosch
eeb3f75cfe
(svn r16416) -Fix [FS#2912]: Rework deleting of news when referenced vehicles/stations/industries are deleted.
2009-05-24 16:52:42 +00:00
smatz
1eb48cdded
(svn r16403) -Codechange: move code related to subsidies to separate file
2009-05-23 15:46:00 +00:00
rubidium
521c265282
(svn r16384) -Codechange: move u.effect to EffectVehicle
2009-05-22 18:56:25 +00:00
smatz
50624d5c0f
(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved
2009-05-22 15:13:50 +00:00
smatz
85043a1fb7
(svn r16373) -Codechange: use () instead of (void) for functions without parameters
2009-05-21 22:43:25 +00:00
smatz
d495dc5dbc
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
2009-05-16 23:34:14 +00:00
rubidium
5c5b357043
(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible.
2009-04-21 23:40:56 +00:00
frosch
92a1b03a00
(svn r16027) -Fix (r9555): Usage of uninitialised memory when trying to build a random new industry, but there are no industrytypes to choose from (i.e. all appearance probabilities are zero).
2009-04-11 14:54:03 +00:00
frosch
8af8a22588
(svn r15888) -Fix (r15103)[FS#2772]: Round the production rate up, so e.g. oilrigs always produce some passengers on lowest production level.
2009-03-29 11:41:42 +00:00
rubidium
c3e87f345d
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
2009-03-15 00:32:18 +00:00
rubidium
f3e0fd7416
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
2009-03-14 18:16:29 +00:00
yexo
894d61ca47
(svn r15585) -Codechange: Remove TILE_ASSERT and replace all instances with assert(tile < MapSize()).
2009-02-25 21:50:54 +00:00
frosch
8ebe68b01b
(svn r15583) -Fix: Do not use TILE_MASK when you do not want to wrap around them map.
2009-02-25 21:29:50 +00:00
rubidium
49ab7c3b50
(svn r15550) -Fix [FS#2654]: bogus secondary error message when dynamiting industries/unmoveables; "X is in the way" isn't helpful at all in that case.
2009-02-21 21:38:46 +00:00
frosch
904bb64254
(svn r15458) -Fix: Missing 'static'.
2009-02-12 18:08:47 +00:00
frosch
2fc6c2d0b0
(svn r15453) -Fix [FS#2450](r14613): Founding industries as OWNER_TOWN resulted in unwanted effects.
2009-02-11 20:09:29 +00:00