summaryrefslogtreecommitdiff
path: root/unix.c
AgeCommit message (Collapse)Author
2005-04-13(svn r2191) -Add: OpenTTD now compiles with dietlibc (Aard)truelight
2005-03-28(svn r2101) statvfs() is availible on POSIX.1 conformant systems.tron
Also use a different field, which has a better chance of containing meaningful information, of the returned struct to determine the free space on the filesystem and fix a small bug introduced in r2100 (s/!=/==/)
2005-03-28(svn r2100) - Fix: [1024703]: Infinite access for A:\ (win32). Patch ↵darkvater
[1171208]. Only requery drive(s) if the user changes a directory, also surpress the OS error box that pops up on some windows machines. Tron + glx (and me)
2005-03-26(svn r2076) Set the name for the parent directory to ".."tron
2005-03-15(svn r2013) Always ignore SIGPIPE, not only when SDL is used (ShadowJK)tron
2005-03-15(svn r2012) When making a savegame name, don't append the extension, if it ↵tron
is already there
2005-03-12(svn r1999) r1990 broke savegame deletion, fix that [1161729]tron
2005-03-11(svn r1990) Reduce the diff between the OS specific files with respect to ↵tron
file handling and fix some inconsitencies (I hope I didn't break the OS/2 part, couldn't test it, feedback is welcome)
2005-03-10(svn r1986) - Fix: free _config_file when shutting down openttd. Strange ↵Darkvater
that Valgrind didn't catch this, kudos to TrueLight - Feature (small): new command-line option -c <config_file>. You can have OpenTTD load alternative config files with this setup, handy for servers, or for saves from other players if you don't want to rename your own config. This will have to do until all game-related settings are saved ingame. Couldn't find the SF patch, so credits to the guy that wrote it.
2005-03-09(svn r1974) Cleanups, quite similar to those done to win32.c in r1972 (code ↵tron
duplication, anyone?)
2005-03-07(svn r1953) Codechange: Tidyup, reduced ridiculous indentation levels, some ↵pasky
sprintf()s replced by snprintf()s.
2005-02-21(svn r1894) - Codechange: cleaned up the console a bit, wholly unified ↵Darkvater
handling of text with that of editboxes - Codechange: Introduction of Textbuf struct which not only holds physical data as length but also pixel-constrains (width) and information about the caret - Codechange: Move Clipboard function to OS specific file. Currently only Windows has clipboard actions - Feature: Editboxes, console and exit screen also accept the numeric-enter as a yes - Feature: Navigation through text with cursor keys is possible, as well as arbitrary insertion (also paste) and deletion; both backspace and del keys. Functions DeleteTextBufferChar, InsertTextBufferChar and InsertTextBufferClipboard handle input and deletion. Navigation is done through MoveTextBufferPos. - Fix: OTTD crash when opening 'add server' editbox - CodeChange: fix up some stringwidth calculations in gfx.c. You can get the width in pixels of a character by calling GetCharacterWidth().
2005-02-08(svn r1850) Change the last consumers of str_buffr so they use local static ↵tron
buffers now and remove the global array str_buffr.
2005-02-07(svn r1840) Repel str_buffr and use local buffers where possibletron
2005-02-06(svn r1821) Move generic string handling functions to string.[ch] and ↵tron
introduce stre{cpy,cat}, see string.h for their semantics
2005-01-22(svn r1594) Convert all undefined parameter lists to (void) and add the ↵tron
appropriate warning flags in the Makefile
2005-01-17(svn r1551) Silence a warning and simplify a preprocessor checktron
2005-01-14(svn r1509) Const correctness and add static where appropriate while ↵tron
touching the lines anyway
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-06(svn r1402) Trim trailing whitespacetron
2004-12-29(svn r1297) Language fixes in the source.. (ln-)miham
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-18(svn r1154) -Add: [Network] Forked dedicated server (start openttd with -Df) ↵truelight
(GeniusDex)
2004-12-08(svn r980) Fixed issues where MorphOS would get problems if AmigaOS would ↵bjarni
get a port, since MorphOS also have the flag __AMIGA__ defined (Tokai)
2004-12-07(svn r970) Added 2nd data path for all non-windows OSesbjarni
added completely customizable lang path (all non-Windows OSes)
2004-12-04(svn r942) -Merged branch/network back into the trunktruelight
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-12-01(svn r869) Mac: finally made asserts open the console, so people should be ↵bjarni
able to see what went wrong even if they opened the game in the GUI deleted the wrongly moved bemidi.cpp
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-16(svn r646) -Fix: braindead case-sensitive file extension filter replaced ↵darkvater
with a case-INsensitive one (joint effort of Bjarni and Darkvater).
2004-11-14(svn r607) -Patch: [ 985102 ] static cleanuptron
Thanks to lvoge
2004-09-23(svn r313) -Feature/Fix: directories in *nix are now sorted alphabetically ↵darkvater
in ascending order (Tron).
2004-09-16(svn r274) Mac: restored extmusic to be default, which were accidently ↵bjarni
turned off by a windows music fix
2004-09-13(svn r239) Fix: [ 1025361 ] PERSONAL_DIR is created at startup nowdominik
2004-09-12(svn r224) -Fix: Music now finally works on WinXP. DirectMusic is now ↵darkvater
default for an OS >= WinNT4 (WinNT4, Win2k, WinXP), and MIDI driver for lower OS's (Win95, Win98, WinME, etc).
2004-09-12(svn r223) -Fix: Const correctness and miscellaneous fixes. Thank you Tron ↵darkvater
for your diligent fixing of warnings (and some possibly bugs) (Tron) -CodeLayout: Remove trailing spaces and Windows linebreaks
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-10(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!truelight
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-09(svn r1) Import of revision 975 of old (crashed) SVNtruelight