Darkvater
bf907c8d3c
(svn r7274) -Codechange [utf8]: Add input/output unicode support. This actually only changes win32
...
since it uses UTF16 for file access. To keep os-specific code to a minimum, OpenTTD
uses UTF8 internally everywhere, converting to OS-type when needed (save/load/screenshot/etc.)
2006-11-28 14:42:31 +00:00
rubidium
5540485fd8
(svn r6086) -Fix: InteractiveRandom was not seeded properly resulting in the dedicated server always generating the same map. Thanks to the #openttdcoop team for detecting.
2006-08-24 10:19:59 +00:00
truelight
7abad2b20e
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
...
- New optional landscape generator (TerraGenesis Perlin)
- Load heightmaps (either BMP or PNG)
- Progress dialog while generating worlds (no longer a 'hanging' screen)
- New dialogs for NewGame, Create Scenario and Play Heightmap
- Easier to configure your landscape
- More things to configure (tree-placer, ..)
- Speedup of world generation
- New console command 'restart': restart the map EXACTLY as it was when you
first started it (needs a game made after or with this commit)
- New console command 'getseed': get the seed of your map and share it with
others (of course only works with generated maps)
- Many new, world generation related, things
- Many internal cleanups and rewrites
Many tnx to those people who helped making this:
Belugas, DaleStan, glx, KUDr, RichK67, Rubidium, and TrueLight (alfabetic)
Many tnx to those who helped testing:
Arnau, Bjarni, and tokai (alfabetic)
And to all other people who helped testing and sending comments / bugs
Stats: 673 lines changed, 3534 new lines, 79 new strings
2006-08-19 10:00:30 +00:00
Darkvater
97c3b5cad8
(svn r5767) - Cleanup: Improve upon the header file mess regarding fios. Move all relevant types from hal.h into fios.h, eliminate the unneccessary passing of a global variable, and extern variables in header files (declare in fios.c and misc_gui.c
2006-08-05 00:59:45 +00:00
Darkvater
54f199e495
(svn r5766) - Cleanup: Unify FiosBrowseTo and FiosGetDescText
2006-08-05 00:53:09 +00:00
Darkvater
bd458586a0
(svn r5765) - Codechange: Fully unify the OS-specific FiosGet...List functions into fios.c, as well as FiosGetSavegameList and FiosGetScenarioList functions with the help of some callbacks.
2006-08-05 00:47:32 +00:00
Darkvater
48ea9fde32
(svn r5764) - Cleanup: - Cleanup: Move the now unified FiosAlloc, compare_FiosItems, FiosFreeSavegameList, FiosMakeSavegameName, FiosDelete and FileExists to newly created file fios.c where it belongs.
...
- Fix: forgot to remove GetLanguageList from functions.h in previous commit
2006-08-05 00:16:24 +00:00
Darkvater
dcda134080
(svn r5763) - Cleanup: Move the now unified GetLanguageList and comparator function to strings.c where it belongs.
2006-08-04 23:45:20 +00:00
Darkvater
1995313619
(svn r5761) - Cleanup: Really minor whitespace changes, and remove an extern from a function decleration in header file.
2006-08-04 23:33:05 +00:00
Darkvater
2693673bf3
(svn r5760) - Codechange: Use a define for case-string comparison in OS/2 instead of function.
2006-08-04 23:27:36 +00:00
tron
772fbda3e3
(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
2006-06-27 21:25:53 +00:00
peter1138
5bb93fa432
(svn r4808) - Fix GetCharacterWidth() change in os2.c missed in r4802.
2006-05-09 15:43:40 +00:00
Darkvater
e3685faad0
(svn r4105) - Feature: Add proper ISO-8859-15 <> LOCALCODE conversion. As the mess that is makefile can't properly support it at the moment, it is only available for MACOSX. Windows doesn't need FS conversion and I have no idea about OS/2 so it's disabled for them.
...
- CodeChange: Change the function GetCurrentLocale(). It returns the locale from some default environment-variables, plus a custom one defined as parameter. If all fail, it tries $LANG.
2006-03-25 09:22:10 +00:00
Darkvater
413dd85cd7
(svn r4001) - Add length parameter to FiosMakeSavegameName() and use this function for creating the full path instead of home-brewn snprintf.
2006-03-21 22:08:15 +00:00
peter1138
0ad6dc9cc2
(svn r3496) - Validate filename titles before they get displayed. This avoids crashes with UTF-8 encoded or bad filenames by replacing undisplayable characters with a '?'
2006-01-31 12:08:49 +00:00
Darkvater
4cc9761cb5
(svn r3097) - Fix (regression): unix has a trailing slash after the paths, windows does not, no idea why os2 has. Way to go consistency :s. So anyways, just strip trailing slash
2005-10-28 00:18:57 +00:00
Darkvater
71fb375f8c
(svn r3096) - Feature: 'HOME' icon to saveload dialogs that jumps to the default save/load directory based on the dialog (added icon to openttd.grf, introduced FIOS_TYPE_DIRECT that allows arbitrary directory jumping).
...
- Fix: on Win32 capitalize the drive-letter in the saveload dialog windows when it is first opened.
2005-10-28 00:09:59 +00:00
tron
0b936c3222
(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes
...
nothing spectacular, just some stuff, which piled up
2005-10-22 06:39:32 +00:00
tron
c042fd3de3
(svn r3055) Give the savegame/scenarion sort order flags symbolic names
2005-10-17 19:57:00 +00:00
tron
ec0ebea3d7
(svn r2864) Code simplification and diff reduction
2005-08-13 21:35:31 +00:00
tron
207700ac36
(svn r2860) Fix some issues in the savegame/scenario list code:
...
-Fix: Sort the directories when making a scenario list
-Fix: Sort the directories when making a savegame list on Windows
-Fix: On OS/2 show the trailing \ if the current directory is a root directory
-Regression: On OS/2 the savegame list showed the scenario directory or crashed (probably introduced in r2609)
The rest is diff reduction between the 3 variants
2005-08-12 06:37:48 +00:00
tron
f315c95fa1
(svn r2809) Implement more generic threading functions, which allow more than one thread
2005-08-05 09:15:41 +00:00
tron
484fae74a2
(svn r2807) Fix two major bugs in the threaded save code:
...
- Do not dereference a local variable which no longer exists; this lead to random crashes when saving
- (Win32) Do not close a handle before it is used last
There are still many major problems (race conditions and resulting memory corruption/crashes) left
2005-08-05 08:24:12 +00:00
tron
062472161a
(svn r2806) Remove unnecessary #includes
2005-08-04 18:02:03 +00:00
tron
984a4c68d6
(svn r2775) Deleting a file can fail, display an error message when it happens
2005-08-01 00:14:22 +00:00
tron
5fd69294ee
(svn r2728) -Fix/Feature: Change the driver probing algorithm
...
Instead of trying to start a single driver and bailing out if that fails, try to initialise one by one and use the first one which succeeds.
This should fix problems on machines with no sound card, where -s null had to be specified manually.
2005-07-27 19:57:12 +00:00
tron
030b4c2704
(svn r2710) Simplify dedicated server code a bit and don't compile it at all, if network support ist disabled
2005-07-25 16:33:58 +00:00
tron
647cbd6bdd
(svn r2701) Insert Id tags into all source files
2005-07-24 14:12:37 +00:00
tron
8100d06caa
(svn r2694) Various smaller changes: eol-style, static, code simplification
2005-07-23 18:46:17 +00:00
tron
393f4b2149
(svn r2691) Separate dedicated video driver and fix bemidi declarations
2005-07-23 17:22:39 +00:00
orudge
3ebab651af
(svn r2690) - Minor cleanups to os2.c and hal.h
2005-07-23 16:28:19 +00:00
orudge
b7d4beb440
(svn r2689) - Split OS/2 music driver into os2_m.c, update project file
2005-07-23 16:08:05 +00:00
orudge
2838934486
(svn r2681) - Fix OS/2 port, please do not modify openttd.wpj/tgt by hand unless you know what you're doing!
2005-07-22 16:14:24 +00:00
Darkvater
cda6efd919
(svn r2609) - Feature: remove extension from savegames/scenarios when browsing the folders.
2005-07-17 15:58:47 +00:00
orudge
922b9dd7f3
(svn r2399) - Fix: Update OS/2 project file with filename changes
...
- Fix: Make clipboard code a bit nicer (thanks Tron)
2005-06-02 19:55:37 +00:00
Darkvater
a8601e9f40
(svn r2398) - CodeChange: forgot to update unix and os2 specific files as well.
2005-06-02 19:39:29 +00:00
orudge
b9a6b80813
(svn r2396) - Fix: Put strcasecmp back into os2.c, sorry Tron!
2005-06-02 17:17:24 +00:00
orudge
d89ab10ba2
(svn r2394) - Completed clipboard functions for OS/2 port
2005-06-02 10:39:46 +00:00
orudge
fb1b0896dc
(svn r2393) - Implemented threaded saving for OS/2
...
- Fixed discrepancy with SlArray declaration
2005-06-02 09:51:01 +00:00
matthijs
abdf4ead87
(svn r2321) - Fix: [ 1202286 ] On OS/2 you get a double backslash in your filename after browsing to the root dir of a drive and "." and ".." are incorrectly displayed. (orudge)
2005-05-15 14:01:35 +00:00
Darkvater
a4e17642a8
(svn r2103) - Fix: Remove unnused variable from OS2 file
2005-03-28 21:14:36 +00:00
darkvater
d643ca6271
(svn r2100) - Fix: [1024703]: Infinite access for A:\ (win32). Patch [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-28 13:30:51 +00:00
tron
79530aa7fe
(svn r2084) Set the name for drive items
2005-03-27 10:35:01 +00:00
tron
5acfb5ec6f
(svn r2076) Set the name for the parent directory to ".."
2005-03-26 18:04:42 +00:00
celestar
2c1d712268
(svn r2028) Added detection of SVN version (rev.c generation) for OS/2, updated readme, initial clipboard support (orudge)
2005-03-19 22:36:13 +00:00
tron
0cb2ba49eb
(svn r2012) When making a savegame name, don't append the extension, if it is already there
2005-03-15 14:06:28 +00:00
darkvater
bf895a03d2
(svn r2010) - Fix: [ 1162209 ] Fix OS/2 build (orudge)
2005-03-15 12:21:15 +00:00
tron
fa9506b191
(svn r1999) r1990 broke savegame deletion, fix that [1161729]
2005-03-12 09:24:27 +00:00
tron
87535e52db
(svn r1990) Reduce the diff between the OS specific files with respect to 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-11 14:14:54 +00:00
Darkvater
bb7b7c0e14
(svn r1986) - Fix: free _config_file when shutting down openttd. Strange 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-10 21:44:17 +00:00