rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +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
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
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
bd208c30e0
(svn r16660) -Codechange: get rid of more dummy tile_type_procs
2009-06-25 20:08:59 +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
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
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
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
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
belugas
4574858f0a
(svn r15437) -Codechange: Do not run a code section when you already know it is useless
...
-Codechange: Do not rely on a decision based on something that has already been evaluated
2009-02-10 00:50:04 +00:00
rubidium
5c8cf85613
(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.
2009-02-09 21:20:05 +00:00
rubidium
89e1afdaa0
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
2009-02-09 02:57:15 +00:00
belugas
23e0650886
(svn r15393) -Fix: little typo
2009-02-07 03:06:38 +00:00
belugas
82cbfb7dfa
(svn r15392) -Codechange: move the spec getter to a place where it's only required, without the use of extern
2009-02-07 02:38:32 +00:00
belugas
b53add9025
(svn r15350) -Codechange: Create a spec array to hold the data definitions of unmovables objects.
...
Note that this is the very basic spec, it will be populated a bit more, later.
2009-02-05 03:41:42 +00:00
belugas
ccaff36931
(svn r15349) -Codechange: no need to call a function when we know there is not going to be any change to the returned result
2009-02-05 03:17:30 +00:00
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
2009-01-31 20:16:06 +00:00
belugas
a57c73e2f9
(svn r15290) -Codechange: Isolate size and section of the UnMovable HQ object, in order to keep the Unmovable type free of any irrelevant data
2009-01-28 19:57:23 +00:00
Yexo
e3c69b7c4e
(svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map.
2009-01-21 02:31:55 +00:00
smatz
cd88a7590a
(svn r14812) -Codechange: use INVALID_TILE instead of 0 to mark company without HQ
2009-01-03 17:11:52 +00:00
rubidium
d3144b6f04
(svn r14789) -Feature: allow scrolling with the left mouse button pressed (if enabled). Primarily useful for systems with touch screen (aapo)
2009-01-02 22:42:05 +00:00
rubidium
e83cca7d13
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
2008-12-28 14:37:19 +00:00
rubidium
e589c7e580
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
2008-09-30 20:51:04 +00:00
rubidium
f56e630e5c
(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
belugas
de43d17a82
(svn r14169) -Codechange: rename location_of_house for location_of_HQ, which is more exact and less subject to interpretation
2008-08-25 16:10:34 +00:00
rubidium
e7a501100a
(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
rubidium
d289464d69
(svn r13255) -Codechange: move _opt to _settings.
2008-05-25 22:36:44 +00:00
frosch
7f80552293
(svn r13206) -Feature(ette): Display all owners of a tile in the tile-info-window.
2008-05-21 22:15:39 +00:00
rubidium
e0e1bf76a2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
2008-05-07 09:07:19 +00:00
rubidium
1ce0b03bf0
(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
rubidium
81859bb7ad
(svn r12898) -Codechange: coding style in unmovable_cmd.cpp.
2008-04-25 15:25:28 +00:00
rubidium
ca1f8fbe2e
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
2008-04-18 04:37:06 +00:00
rubidium
18e64b28e2
(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
rubidium
6d063c3ad6
(svn r12754) -Codechange: split depot.h into depot_map.h, depot_func.h and depot_base.h and remove quite a lot of unneeded (before this) includes of depot.h.
2008-04-17 19:10:30 +00:00
smatz
fcf4a7067d
(svn r12547) -Feature: invisibility options to make objects invisible instead of transparent
2008-04-03 19:55:40 +00:00
rubidium
c51b81c247
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
2008-03-31 00:06:17 +00:00
frosch
7f3d56041b
(svn r12199) -Codechange: Remove magic around the results of GetTileTrackStatus().
2008-02-20 17:49:50 +00:00
smatz
9f619f91b3
(svn r12177) -Codechange: use 'side' parameter in GetTileTrackStatus so there can be less checks in pathfinders for depots/stations/tunnels/bridges
2008-02-18 16:11:31 +00:00
belugas
6ff5a8a29f
(svn r12157) -Codechange: Remove a structure definition and replace it with another one closely matching
...
-Codechange: Replace two magic numbers with according sprite names
2008-02-16 02:37:31 +00:00
frosch
a13899ee8e
(svn r12149) -Codechange: Merge 'ground_sprite' and 'ground_pal' of DrawTileSprites into one PalSpriteID
2008-02-15 18:40:42 +00:00
frosch
ae996a270b
(svn r12148) -Codechange: Merge 'image' and 'pal' of DrawTileSeqStruct into one PalSpriteID
2008-02-15 18:34:26 +00:00
peter1138
09ce7f76e9
(svn r12038) -Fix: Change ownership of or remove statues when merging/bankrupting companies.
2008-02-01 22:13:59 +00:00
peter1138
7457d8807a
(svn r12032) -Fix: When removing a statue, remove town statue flag for the statue owner, not current player.
2008-01-31 23:04:45 +00:00