summaryrefslogtreecommitdiff
path: root/station_cmd.c
AgeCommit message (Collapse)Author
2005-01-22(svn r1594) Convert all undefined parameter lists to (void) and add the ↵tron
appropriate warning flags in the Makefile
2005-01-20(svn r1579) Fix: [ 1105963 ] Buoys can now only be removed if no ship has it ↵dominik
in their schedule. This makes buoys more useable in multiplayer games again, as buoys can't be deleted by other players if they are used.
2005-01-19(svn r1568) made an enum of train subtypes to make the code more readablebjarni
2005-01-18(svn r1560) Introduce SetTileType() and SetTileHeight()tron
Replace direct references to _map_type_and_height with these
2005-01-16(svn r1536) Move GET_TILEHEIGHT, GET_TILETYPE and IS_TILETYPE to map.h, turn ↵tron
them into inline functions and add some asserts
2005-01-16(svn r1533) Turn an if cascade into a switch and move a const array to the ↵tron
only location where it is used
2005-01-15(svn r1525) -Codechange: rewrote the _order_array, now it can be made dynamic.truelight
-Codechange: renamed all 'schedule' stuff to 'order(list)' -Codechange: moved all order-stuff to order_cmd.c / order.h -Codechange: vehicles that share orders are now linked to eachother with next_shared/prev_shared in Vehicle Developers: please use AssignOrder to assign data to an order. If not, you _WILL_ make the save-routine to assert!
2005-01-14(svn r1512) Replace probably incorrect test of loading_count with probably ↵tron
correct test of loaded_count
2005-01-10(svn r1472) -Fix: correct error message for when trying to build a railroad ↵darkvater
station over a bus/truck/etc-station.
2005-01-10(svn r1467) Fixed a nasty bug where one could build one station OVER the otherCelestar
2005-01-09(svn r1441) Fixed a couple of warnings, and removed a pointless assertcelestar
2005-01-07(svn r1414) Move TileIndex, TILE_MASK and GET_TILE_[XY] to map.h and turn ↵tron
the latter into inline functions names Tile[XY]
2005-01-06(svn r1407) -Codechange: changed a lot around _stations, _vehicles, _towns ↵truelight
and _industries (in prepare of dynamic arrays): - DEREF_XXX is changed into GetXXX - All direct call are directed via GetXXX - struct Industry has now an index-field - ENUM'd some stuff - Replaced home built loops with FOR_ALL_XXX - Added _stations_size, _vehicles_size, ... which gives the length of the array (which will be dynamic in the near future) - Changed lengtof(XXX) to _XXX_size (e.g. _stations_size) - Removed all endof(XXX) (because mostly it was part of a FOR_ALL_XXX) - Made the sort-functions of all 4 dynamic - Made all 4 Initialize functions more of the same - Some minor tab-fixing and stuff (tnx to Tron for proof-reading my 100kb patch ;)) Note for all: please do NOT directly call _stations, _vehicles, _towns and _industries, but use the right wrapper to access them. Thank you. Ps: please also do not use 'v++', where v is of type Vehicle *.
2005-01-06(svn r1396) Introduce TileIndexDiffC - the compile time version of TileIndexDifftron
2005-01-05(svn r1386) Move TileIndexDiff to map.htron
Move _tileoffs_by_dir to map.[ch] and encapsulate it in TileOffsByDir()
2005-01-04(svn r1375) -Fix: [1050990] Buying trains sometimes accounted for ↵darkvater
incorrectly. Was the result of the cost getting reset in a recursive call of docommand. That is fixed. In addition all cost-commands are typed explicitely. Please do not forget to do so or your costs will be credited to construction if you are unlucky.
2005-01-03(svn r1344) Use MapSize[XY]() (or MapSize()/MapMax[XY]() where appropriate) ↵tron
instead of TILES_[XY]
2005-01-03(svn r1337) Use MapMax[XY]() (or MapSize[XY]() if appropriate) instead of ↵tron
TILE_MAX_[XY] While here replace one erroneous TILE_MAX_X with MapMaxY()
2005-01-03(svn r1328) Turn loop with explicit terminator element into loop using endof()tron
2004-12-28(svn r1288) -Codechange: changed _map2 to an uint16. It is still saved and ↵truelight
loaded as an uint8 till the savegame version is bumped to version 5. Then it works automaticly as a fully uint16. So _stations[] can not be increased till after the bump!!
2004-12-21(svn r1211) -Feature: Introduce sticky windows to all vehicle windows...Just ↵darkvater
make sure you do not sticky more than 23 at a time. Also a lot of places in the code invalidated the 'status bar' of the vehicle, referring to it as widget 4. This is now widget 5 and has been #definitized
2004-12-18(svn r1161) Don't make redundant GetAirport() calls, use the cached valuetron
2004-12-18(svn r1153) -Fix: FindCatchmentRadius is now a function that uses the enums ↵truelight
instead of magic numbers (tnx to Stumo)
2004-12-18(svn r1151) Fix last commit |:tron
2004-12-18(svn r1150) Fixes:tron
- Don't crash when building or destroying airport without depots (bugs were latent before r1149) - Delete all hangar windows when destroying an airport, not just the first one (before r1149 none where deleted)
2004-12-15(svn r1117) Move map arrays and some related macros into their own files ↵tron
map.c and map.h
2004-12-11(svn r1017) Solved a Segfault if a station was built too close to the ↵Celestar
northern corner
2004-12-08(svn r979) Allow more realistically sized catchment areasCelestar
2004-12-05(svn r955) Replace uint16 for orders with struct Ordertron
This adds no functionality, but is a stepping stone for future improvement (like 16bit order indices) and is easier to read. This changes preserves binary compatibility wrt savegames.
2004-12-04(svn r942) -Merged branch/network back into the trunktruelight
2004-12-03(svn r907) Sprinkle holy ANSI water:tron
- "inline" must before the return type (and after "static") - Initialise all struct members, not just some of them - Remove (one) spurious semicolon
2004-12-02(svn r901) Small step in the process to clean up the DPARAM mess:tron
- reduce to 2 sizes (*DParam64 for 64bit values, *DParam for the rest) - use inline functions instead of macros - add assert()s to check for buffer overruns
2004-11-25(svn r815) Include strings.h only in the files which need it.tron
This should reduce the compile time after altering english.txt by about 1/3, because "only" 62 instead of 90 .c files must be recompiled.
2004-11-24(svn r793) Merge INLINE -> inline replacement (revision 376)tron
2004-11-23(svn r787) Invert the sense of the DO_TRANS_BUILDINGS flag to be consistent ↵tron
with its own name and all other DO_* flags. Now it is active-true.
2004-11-23(svn r780) Always report a bus/lorry station as unpassable.tron
The current behavior just causes bugs and the pathfinder does the necessary magic to handle stations as destinations and enter them anyway. This fixes [ 1058809 ]
2004-11-21(svn r724) Remove restriction that a tile can only accept 3 cargo types.tron
This especially enables houses to accept passengers, mail, goods AND food. Add string templates for up to 5 cargo types for the tile info window. If more are needed just add them. Simplify (de-uglify) the logic for cargo acceptence for houses and split the goods/food table into two. The acceptance is unmodified, but accepting goods AND food is now trivially possible. The exact amounts have to be decided. This is based on Celestar's changes in the map branch plus some further bits that will be merged there soon.
2004-11-17(svn r667) Fix bug in rendering stations from savegamestron
Also don't pitch custom station sprites by railtype (pasky)
2004-11-17(svn r662) [newgrf] Moved grfspecial.c to newgrf.c/newgrf.hdominik
2004-11-17(svn r659) Support for cutomized TTDPatch-style new stations (no selector ↵tron
GUI yet) (pasky)
2004-11-17(svn r654) Hopefully complete support for randomized variational ↵tron
spritegroups (i.e. the cars transporter in DBSetXL gets different cars each time) (pasky)
2004-11-17(svn r647) Cleanup custom station classes handling. (pasky)miham
2004-11-15(svn r635) Fix choosing a spritegroup from deterministic variational ↵tron
spritegroups if there is no structure to search (i.e. in purchase lists) (pasky)
2004-11-15(svn r625) Almost complete support for deterministic variational vehicle ↵tron
spritegroups. (pasky)
2004-11-14(svn r610) -newgrf: Support for some basic deterministical spritegroups ↵darkvater
regarding stations. Waypoints look changes based on year now :^) (pasky).
2004-11-14(svn r605) -newgrf: Framework for supporting variational spritegroups . ↵darkvater
Deterministic only at the moment, but random ones support shouldn't be that difficult now It doesn't do anything, but makes these actions actually possible (pasky).
2004-11-14(svn r602) -newgrf: Move DrawTileSeqStruct & co and struct SpriteGroup to ↵darkvater
sprite.h (pasky)
2004-11-14(svn r600) -newgrf: Relocation offset for custom station sprites is now ↵darkvater
stored separately, making it possible to show different sprites in waypoint selection dialog (pasky).
2004-11-14(svn r592) -newgrf: Dynamically allocate global custom station IDs (pasky).darkvater
2004-11-14(svn r591) -newgrf: Store whole struct StationSpec in SetCustomStation(), ↵darkvater
not just the rendering data. This will be needed for variational stationspecs (pasky).