Darkvater
bf3fefb129
(svn r3872) - [win32] Show the revision in crash.txt and enable the button to show the crash text in the crash-window
2006-03-14 21:31:51 +00:00
tron
1c3e8630fe
(svn r3511) More whitespace ([FS#46] by Rubidium)
2006-02-01 07:36: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
0855449106
(svn r3442) - Fix: Only windows has stricmp. So define strcasecmp to stricmp when using MSVC
2006-01-26 17:32:49 +00:00
peter1138
32d75fd922
(svn r3309) Cygwin doesn't define _MSC_VER; check it exists before basing decisions on its value.
2005-12-16 22:01:38 +00:00
tron
9d0e7b6458
(svn r3181) -Bracing
...
-Indentation
-Whitespace
-DeMorgan's Law
-Test with NULL or 0 for non-booleans
-'\0' instead of 0 for chars
-Remove redundantly redundant comments (like DoFoo(); // Do foo)
-Join multiple short lines with a single statement
-Split single lines with multiple statements
-Avoid assignments in if
2005-11-14 19:48:04 +00:00
tron
388c7df1d7
(svn r3163) Include header for toupper()
2005-11-10 17:21:05 +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
Darkvater
687cfa8a1b
(svn r3061) - CodeChange: revert r3056, r3057 and add a simpler fix to satisfy the needs of the absolute strict (eg. root directory is C:\ not C:)
2005-10-18 20:18:05 +00:00
Darkvater
82d0f525e5
(svn r3057) - (Post)Fix: fix backslash occurence in all cases, also when going to root directory through 'parent directory', and of course don't show parent dir in root.
2005-10-17 22:49:15 +00:00
Darkvater
3fb6835822
(svn r3056) - Fix: Problem on Win98 and lower when if you go to the root directory of a drive (eg. C:\) you were stuck there indefinitely and couldn't change any directories or see any files
2005-10-17 22:24:32 +00:00
tron
c042fd3de3
(svn r3055) Give the savegame/scenarion sort order flags symbolic names
2005-10-17 19:57:00 +00:00
Darkvater
e1acd38bc5
(svn r3008) [ 1247535 ] Native Support for Win64 (compile&run only) (michi_cc)
...
Fix warning in graph_gui.c with const problem
2005-10-02 22:39:56 +00:00
tron
bdbceba0cb
(svn r2984) Use adequate types, this should aid portability a bit
2005-09-25 09:04:59 +00:00
Darkvater
3926d006b0
(svn r2954) - Force assertion message to be output to a messagebox instead to the console which MinGW32 had the habit of doing. Using undocumented (in mingw) __set_error_mode() function.
2005-09-15 21:59:07 +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
984a4c68d6
(svn r2775) Deleting a file can fail, display an error message when it happens
2005-08-01 00:14:22 +00:00
tron
1c0a9636bc
(svn r2729) Fix #include
2005-07-27 20:08:52 +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
8afa32d470
(svn r2727) Fix last commit, don't ask
2005-07-27 19:26:53 +00:00
tron
2435589804
(svn r2726) Fix last commit
2005-07-27 19:25:50 +00:00
tron
9aa4893e66
(svn r2725) Move MyShowCursor() back into win32.c, it fits better there
2005-07-27 19:22:38 +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
2faf06f4cd
(svn r2704) Remove . from include path again, too much trouble. Also add some #ifdefs and #includes for the Windows build
2005-07-25 07:16:10 +00:00
tron
647cbd6bdd
(svn r2701) Insert Id tags into all source files
2005-07-24 14:12:37 +00:00
tron
c5bf9a6f80
(svn r2699) Hopefully fix the compilation on Windows when SDL is not present
2005-07-24 10:39:12 +00:00
tron
ab59156e61
(svn r2697) Make compiling with SDL on Windows work again (missing #includes) and fix some warnings
2005-07-24 06:09:54 +00:00
tron
393f4b2149
(svn r2691) Separate dedicated video driver and fix bemidi declarations
2005-07-23 17:22:39 +00:00
tron
9bb81b8eef
(svn r2688) MSVC and Watcom can't handle identical file names in different directories, oh my...
2005-07-23 15:48:00 +00:00
tron
1edefbb3de
(svn r2686) Revert accidently commited change
2005-07-23 15:24:31 +00:00
tron
126fed74d6
(svn r2685) -Codechange: Split the music/sound/video drivers into separate files and move them into subfolders.
...
This results in shorter and hopefully easier to maintain files.
Note: I had to change paths in #include statements of some unrelated files, because I added the ottd base directory to the include path (-I.)
2005-07-23 15:16:57 +00:00
tron
54cbd01825
(svn r2673) Include functions.h directly, not globally via openttd.h
2005-07-22 07:02:20 +00:00
tron
a4ec4da221
(svn r2672) Move saving/loading related declarations to saveload.h
2005-07-22 06:31:31 +00:00
tron
c15bad8c95
(svn r2670) Fix r2669
2005-07-21 22:18:02 +00:00
tron
f09638ad3d
(svn r2650) Convert many explicit shifts+ands to extract bits to invocations of GB - should be a bit nicer to read
2005-07-20 15:29:28 +00:00
ludde
f3645d7307
(svn r2649) Get rid of 2 warnings.
2005-07-20 09:49:04 +00:00
ludde
08725cd6df
(svn r2635) Fix: [ntp/misc] Improve the old pathfinder. Changed it to A* instead of Dijkstra.
...
- Benchmark shows that NTP is now around 10x faster than NPF.
- Made IsTunnelTile macro to determine if a tile is a tunnel.
- Added some useful debugging functions for making tiles red / getting accurate timestamps.
- Remove old depot finding algorithm.
- Disable warning for signed/unsigned comparisons.
2005-07-19 11:42:40 +00:00
Darkvater
cda6efd919
(svn r2609) - Feature: remove extension from savegames/scenarios when browsing the folders.
2005-07-17 15:58:47 +00:00
ludde
9f4e400b86
(svn r2601) Fix: Added TIC,TOC macros do be able to do profiling easier.
2005-07-17 12:49:00 +00:00
ludde
fd0cee7418
(svn r2583) Move OS specific code out of misc.c
...
Added support for Mersenne Twister random number generator (not implemented in network yet)
Wrap player randoms around #ifdef
2005-07-15 20:29:06 +00:00
tron
462b0d6686
(svn r2571) Add explicit type Pixel for ... Pixels
2005-07-15 14:16:14 +00:00
tron
f901882638
(svn r2563) -Fix: [1209084] Spaces in the path to the MIDI files caused the win32 MIDI player to fail
2005-07-14 06:10:23 +00:00
tron
1307f90b5e
(svn r2535) Tabs
2005-07-08 22:25:24 +00:00
tron
e0f748a34d
(svn r2501) Forgot to change part of the win32 code in r2497
2005-06-30 19:28:00 +00:00
tron
6319c11b1f
(svn r2497) Use a struct array for palette entries instead of a flat byte array
2005-06-30 05:27:32 +00:00
Darkvater
0052c1de84
(svn r2463) - Fix: partly revert the strncat madness and update nightly script (invisible) to correctly insert date.
2005-06-20 19:39:49 +00:00