summaryrefslogtreecommitdiff
path: root/misc.c
AgeCommit message (Collapse)Author
2005-01-22(svn r1596) Add some more staticstron
2005-01-22(svn r1594) Convert all undefined parameter lists to (void) and add the ↵tron
appropriate warning flags in the Makefile
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 r1508) Remove duplicate declarations and include proper headers where ↵tron
necessary
2005-01-13(svn r1496) -Fix: highscore no longer crashes in network games with a ↵darkvater
dedicated server. At the end of the game (can only be set by the server) the highscore is shown for the top5 companies of that game -Fix: fixed some compiler warnings -Added PF_NETWORK_ONLY flag to settings. Such a setting can only be modified in a network game.
2005-01-12(svn r1486) -Codechange: moved all 'signs' stuff to signs.c/h and prepared ↵truelight
it for dynamic arrays
2005-01-11(svn r1479) -Added highscore chart (accessible from the difficulty window) ↵darkvater
with top5 companies for a given difficulty (select the difficulty in the menu) -Added endgame score on 1 jan 2051 where you are added to the highscore if sufficiently large points have been accumulated. Game is paused while -These values are saved in hs.dat; added read/write functions for it -Added code to delete all windows to show charts. There is one issue left: somehow a news-gui pops up in front of the the chart at the end of the game.
2005-01-10(svn r1465) -Fix: [1099101] starting year patch goes out of range. Clamped ↵darkvater
year between 1920-2090 as wel as adding defines for it.
2005-01-09(svn r1451) Fix some of the signed/unsigned comparison warningstron
2005-01-09(svn r1447) Move TILE_ADD(), TILE_ADDXY() and SafeTileAdd() to map.[ch] and ↵tron
make the latter map size agnostic
2005-01-08(svn r1437) -Fix: Safetileadd preprocessor magic is the same as for GCC and ↵darkvater
no longer extern
2005-01-07(svn r1416) Print sensible information in SafeTileAdd() if gcc is usedtron
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 r1402) Trim trailing whitespacetron
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 r1365) -Fix: very, very nasty buffer overflow bug introduced with ↵darkvater
replace vehicles. You CANNOT access the i[255] of an array that only has 255 elements! I will kick the next person that does that so hard...goddammit (I only noticed it because it screwed up my console in the debug build and took me at least an hour to fix)
2005-01-03(svn r1346) -Fix: fix signed/unsigned warningsdarkvater
-Fix: latent removal of 2 lines from ttd.c which I forgot because the file was not saved :O
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-02(svn r1323) Adding autoreplace featurebjarni
This feature works much like autorenew, but it will get you a new engine type instead of a new one of the same type. Once ordered, it will automatically replace the engines while they visits a depot. The GUI for setting this up have been added on the vehicle overview windows Note: autorenew is now autoreplace, but to the same engine type Nice new features, that was added to make this possible - windows can now have two independant vertical scrollbars - CMD_SHOW_NO_ERROR have been added as a flag for DoCommandP. It will make it do the action instead of showing the red box with estimated costs even if shift is pressed - fixed problem where enginetypes where not initialized when loading a game. It's now done in InitializeGame()
2004-12-29(svn r1297) Language fixes in the source.. (ln-)miham
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-23(svn r1252) -Add: [Network] With 'set restart_game_date' you can set the ↵truelight
date for in which year the server must restart hisself. (0 = disabled, default value)
2004-12-22(svn r1236) MorphOS: added make release like in OSX (tokai)bjarni
MorphOS: cleaned up the code telling the difference between AmigaOS and MorphOS (tokai)
2004-12-22(svn r1227) -Add: Ingame Server-list (select Internet, then Find Servers)truelight
-Fix: UDPListener was launched wrongly -Fix: Not all sockets have broadcast enabled anymore -Fix: Server-advertise retries 3 times before giving up
2004-12-17(svn r1144) Don't rely on sizeof() to determine the map size, use MapSize() ↵tron
instead
2004-12-16(svn r1131) -Add: [Network] Autoclean_companies (set it with 'set ↵truelight
autoclean_companies on/off'). When enabled, empty companies (companies with no active clients) with no password are declared bankrupt after 1 year of emptyness. For empty companies with password, the password is removed after 3 years of emptyness. The delay of removing company/password can be configured via: - 'set autoclean_protected <months>' - 'set autoclean_unprotected <months>'
2004-12-15(svn r1117) Move map arrays and some related macros into their own files ↵tron
map.c and map.h
2004-12-04(svn r942) -Merged branch/network back into the trunktruelight
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-14(svn r607) -Patch: [ 985102 ] static cleanuptron
Thanks to lvoge
2004-11-14(svn r587) -newgrf: Rename all /Checkpoint/i tokens to 'Waypoint's. The name ↵darkvater
actually makes some sense and is also compatible with TTDPatch (pasky).
2004-11-14(svn r579) Remove now unused function memswap()tron
2004-09-18(svn r292) -Fix: [1030275] 'Service at' orders ignored after 2090. After ↵darkvater
2090 year is reset to 1. Jan 2090, so most of the time, last service was in the future and no service ensured.
2004-09-16(svn r277) -Fix: removed playerseeds again until it is stablesignde
2004-09-15(svn r266) -Fix: hopefully fixed the desync problem nicely (and reverted the truelight
workaround for it)
2004-09-14(svn r261) -Workaround: unplayeable network-game on busy maps because of ↵signde
wrong setup of _current_player. This is only a workaround that can cause desyncs too but not that often
2004-09-13(svn r240) -Fix: desync on subsidy generationsignde
-Fix: sometimes commands got executed to early on some clients -Feature: universal event packets for transmitting subsidys
2004-09-11(svn r207) -Codechange: randomizer handlingsignde
-Fix: desync problem fixes -Fix: server doesnt hang anymore when a client timed out -Feature: low latency connection enhancements [*net_sync_freq, *net_ready_ahead]
2004-09-11(svn r202) -Codechange: I missed some files with trailing spaces.. this ↵truelight
should be all ;)
2004-09-07(svn r180) -Fix: some more warning fixes for C99 (Tron)darkvater
2004-09-06(svn r165) -Feature: Option to sort vehicles in vehicle-list window by ↵darkvater
different criteria. Total independent sort for all types and players. Periodic resort of list every 10 TTD days. Thank you for your graphical inspiration follow and buxo (since none of you provided any code). -Fix: Sorter icon pointing down 'v' sorts in every window lowest value first, '^' highest value first -CodeChange: move Dropdownlist from settings_gui.c to widget.c. More in place there.
2004-08-23(svn r117) Feature: Performance details window in company league menu ↵dominik
(TrueLight)
2004-08-22(svn r106) New network core (by sign_de)dominik
Features: * network core is dynamicly loaded when needed (-n isn't needed anymore) for easy switching between single and multiplayer. But commandline shortcuts are still enabled: -n = autodetect network server -n [ip] = connect to the server * udp now uses 2 different ports - you can run 1 server and serveral clients on one pc - the clients udp-socket gets unloaded when the network game starts - the servers udp-sockets remains online to allow the network gui to detect itself * new gameinfo structure this struct is available for every online/lan game * dynamic NetworkGameList
2004-08-09(svn r1) Import of revision 975 of old (crashed) SVNtruelight