KUDr
78c503c020
(svn r7599) -Fix: (r7585, r7590) assert on load game that has some station with bigger spread-out than _patches.station_spread value (Celestar)
18 years ago
KUDr
02c07d2a86
(svn r7590) -Codechange: (r7585)
...
- use existing struct Rect instead of declaring new StationRect
- use inline functions instead of macros
18 years ago
KUDr
69a43e5ade
(svn r7585) -Codechange: CheckStationSpreadOut() took too much CPU. Station rectangle is now maintained instead of calculating it each time by walking through whole map. Should help with the performance issue related to AIs trying to build road stops too often. (idea by Celestar)
18 years ago
celestar
d95e2c2dd1
(svn r7573) -Merged the bridge branch. Allows to build bridges of arbitrary rail/road combinations (including signals)
18 years ago
Darkvater
073e0eb3c9
(svn r7565) -Codechange: Rework DEBUG functionality. Look for appropiate debugging levels to
...
use in debug.h. grfmsg() is now used as a specific debug-function for grf.
18 years ago
KUDr
b07b38d873
(svn r7547) -Fix: The cost of rail station removal was calculated based on the area occupied by the station. This produced unreasonably large removal costs for non-uniform stations. Now it is based on number of station tiles actually removed.
18 years ago
matthijs
9218fc16e6
(svn r7372) - CodeChange: Rename all GetXXXArraySize() functions to GetNumXXX() and add GetMaxXXXIndex() functions. This prepares for the new pool interface.
18 years ago
peter1138
52d0c3b08a
(svn r7335) -Codechange: redraw station tiles when cargo is moved, for newstations
18 years ago
matthijs
231111ce3d
(svn r7331) - Codechange: Rename all memory pool macro's and types to "old pool", so the new pool implementation can be committed alongside it.
...
- Codechange: Rename pool.[ch] to oldpool.[ch].
18 years ago
KUDr
f2cda44d2e
(svn r7195) -Feature: [FS#297, optional elrails] New patches/vehicles option 'disable electrified railways'.
...
(original patch by maedhros, ideas: peter1138, Darkvater, Rubidium, Patrick, Eddi|zuHause, ..)
18 years ago
KUDr
0e290fd388
(svn r7174) -CodeChange: CheckStationSpreadOut() now uses MergePoint() for bounding rectangle calculation.
18 years ago
KUDr
07be991e62
(svn r7169) -Fix: [FS#388] Station sign (and base station coordinates) didn't move along with station when station moved by walking. (HMage)
18 years ago
tron
02ae75b380
(svn r6985) Remove stuff forgotten in r6984
18 years ago
tron
f0836260e8
(svn r6984) Use the pool macros for the RoadStop pool
18 years ago
tron
f51d2a3311
(svn r6983) Use the pool macros for the Station pool
18 years ago
Darkvater
5d31cb19d4
(svn r6881) -Fix r6874: uint > int to remove signedness warning MSVC (peter1138)
18 years ago
peter1138
6a955f3892
(svn r6874) - [NewStations] Mark all tiles of a railway station dirty when adding or removing tiles.
18 years ago
peter1138
034f5abc4b
(svn r6823) - Codechange: Ignore bit 0 of a NewStation custom tile callback result. This fixes cosmetic problems with some add on stations.
18 years ago
Darkvater
fba7d2f7f3
(svn r6803) -Codechange: Substitute magic numbers by an enum for the news windows
18 years ago
Darkvater
6b6d908308
(svn r6776) -Codechange: Use IsValidPlayer() function to determine of a PlayerID is an
...
actual playable player (< MAX_PLAYERS) or not.
18 years ago
Darkvater
dad5d5dd72
(svn r6774) -Codechange: Rename the badly named OWNER_SPECTATOR to PLAYER_SPECTATOR and
...
put it into player.h where it belongs (instead of map.h)
18 years ago
bjarni
f7769e885e
(svn r6513) -Codechange: unified the code to draw depot windows
...
This change is intended to make it easier to make depot behaviour consistent
and faster to code when adding more features in the future
The user interface should hopefully not be affected by this
18 years ago
peter1138
5ba5efdf6e
(svn r6477) - Fix a loop-hole that allowed docks to be built regardless of town authority rating.
18 years ago
Darkvater
80814dbb1d
(svn r6406) -Codechange: Rename TileOffsByDir to TileOffsByDiagDir because it accepts
...
DiagDirections, and add TileOffsByDir that handles Directions.
-Codechange: Make the treeloop use TileOffsByDir().
18 years ago
rubidium
63687763e9
(svn r6381) -Cleanup: make the '/* */' comments that span multiple lines more uniform.
...
-Cleanup: whitespace alignment of a few tables.
18 years ago
tron
23168f6309
(svn r6355) -Fix: Go to hangar orders for aircraft could get spuriously removed when a road or rail depot got deleted (Darkvater and me)
...
This bug is probably ages old
18 years ago
tron
1c21c645ae
(svn r6353) -Codechange: Make DestinationID a typedef of uin16, which is as large as any type of destinataion (StationID, DepotID, WaypointID) it can hold
...
DestinationID being a union of these types is just hassle without benefit and cannot be handled correctly everywhere because of local lack of information
18 years ago
tron
b536c2e4e0
(svn r6252) Replace a comglomerate of ifs for animated station tiles by a small table and a loop iterating over it
18 years ago
rubidium
27cee58ab8
(svn r6204) -Cleanup: replace non-indentation with spaces; like '}<TAB>else {' -> '} else {', tabs between code and comment, etc.
18 years ago
truelight
7e6f1f16c0
(svn r6152) -Codechange: renamed GetNumRoadStops to GetNumRoadStopsInStation as it reflects its function more
18 years ago
truelight
d417827516
(svn r6151) -Codechange: DeleteStation/DeleteRoadStop removes a station/RoadStop from the pool
...
-Codechange: DestroyStation/DestroyRoadStop is called by DeleteStation/DeleteRoadStop to remove all things where a station/RoadStop depends on.
Last 2 changes to prepare for new pool system. Not pretty now, will be soon.
18 years ago
truelight
587b2a8826
(svn r6150) -Codechange: introduced and used RoadStopID where needed
18 years ago
truelight
6846e38095
(svn r6146) -Fix: MSVC doesn't know how to cast to an union.. so fix it via an indirect (and btw the old) way
18 years ago
truelight
db8dfcd6e9
(svn r6142) -Codechange: added WaypointID (sorry DV, couldn't splits it anymore)
...
-Codechange: introduced DestinationID, which is in fact an union of several types
Used in Order struct, so no longer StationID is abused for all targets.
Hangars are a big exception, as they use a station-id with GOTO_DEPOT (go figure)
18 years ago
truelight
5fd9aeb12b
(svn r6055) -Codechange: added GetXXXArraySize, which returns HighestID + 1 (or, will do that).
...
It isn't the best name, but we couldn't find any better.
This unifies the pool-system even more.
18 years ago
truelight
b23f719ab9
(svn r6053) -Codechange: renamed all IsXXXIndex to IsValidXXXID
...
-Codechange: IsValidXXXID now also checks if XXX is really valid, not if the number is within range
Both changes again in preperation of the new mem-pool system, which requires this.
IsValidXXXID is not a bit less pretty, but that will be cleaned up after the new mem-pool system
18 years ago
truelight
1331b4aa9a
(svn r6052) -Codechange: change OrderType (order->type) in a typedef
...
-Codechange: renamed DeleteDestinationFromVehicleOrder to RemoveOrderFromAllVehicles to reflect his function better
-Codechange: changed the params of RemoveOrderFromAllVehicles, to avoid unneeded variable-creation
18 years ago
truelight
c0f352670a
(svn r6049) -Codechange: forgot EngineRenew in r6047
...
-Codechange: cleaned up the EngineRenew code a bit (coding style mostly)
-Codechange: forgot the correct comment in station_cmd
-Codechange: move pool-stuff to engine.h, like we always do
18 years ago
truelight
0461d89612
(svn r6047) -Codechange: FOR_ALL now _only_ loops valid items, and skips invalid ones
...
-Codechange: use IsValidXXX where ever possible
Note: both changes to prepare for new pool system, which needs those changes.
For every pool there are 2 ugly lines, which will be removed when done
implementing new pool system.
Based on FS#13 by blathijs, partly implemented.
18 years ago
rubidium
480af9c917
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
18 years ago
rubidium
28a0843707
(svn r5999) -Feature: change the original date format to a 32 bits format based at the year 0.
...
The game date subsystem now allows someone to start in the year 0 and continue
up to the year 5 000 000. However, you currently cannot build anything before
1920 as there is no newgrf support for dates before 1920 or after 2090 yet.
18 years ago
rubidium
243872b4fd
(svn r5887) -Cleanup: move date related functions, defines and variables to date.[ch]
...
-Cleanup: fix whitespace related coding style issues in date.[ch]
-Cleanup: make original comments doxygen compatible and remove/change outdated comments
18 years ago
tron
3254155930
(svn r5794) Pass the TileIndex plus x and y coordinates into GetSlopeZ_* instead of a TileInfo
18 years ago
tron
7c9165827e
(svn r5787) Rename width, height and unk of struct DrawTileSeqStruct to size_{x,y,z}
18 years ago
tron
2ab973aded
(svn r5773) Clarify why the owner is checked before a palette is chosen when drawing a station tile: some stations are not owned by players
18 years ago
tron
8ed7b09c52
(svn r5615) Move GetStationTileForVehicle() to its only user
18 years ago
tron
7ec704564a
(svn r5582) Add and use AxisToTrack{Bits,}()
18 years ago
tron
2b27073156
(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
18 years ago
richk
1423445050
(svn r5362) - Fix: Updated sprites in New Airports to be allow cleaner replacement by newgrf graphics. All tiles now use SPR_AIRPORT_APRON as the tarmac. Created two new sprites in airports.grf for half-grass half-tarmac tiles on Intercontinental airport.
18 years ago
richk
a832ca51fe
(svn r5346) - Feature: Add 4 new airports. 2 for aircraft, 2 for helicopters.
...
Commuter airport: Small. 5x4. 3 terminals, 2 helipads.
Intercontinental: massive. 9x11. 8 terminals, 2 helipads, 4 runways.
Helidepot: a small heliport with a depot for helis only.
Helistation: a large heliport with 3 helipads and a depot.
18 years ago