peter1138
592aee1e27
(svn r3309) Cygwin doesn't define _MSC_VER; check it exists before basing decisions on its value.
19 years ago
tron
f7abff5f96
(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
19 years ago
tron
1c867927a3
(svn r3163) Include header for toupper()
19 years ago
Darkvater
9bbf8ea9d0
(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
19 years ago
Darkvater
f561993112
(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.
19 years ago
Darkvater
be984d9bcc
(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:)
19 years ago
Darkvater
d4463b4b95
(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.
19 years ago
Darkvater
6bf4e4af3c
(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
19 years ago
tron
23ecc82ad3
(svn r3055) Give the savegame/scenarion sort order flags symbolic names
19 years ago
Darkvater
a3d40a29fc
(svn r3008) [ 1247535 ] Native Support for Win64 (compile&run only) (michi_cc)
...
Fix warning in graph_gui.c with const problem
19 years ago
tron
c2c865e4b9
(svn r2984) Use adequate types, this should aid portability a bit
19 years ago
Darkvater
e9401f09a7
(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.
19 years ago
tron
bdd5d4ebb1
(svn r2864) Code simplification and diff reduction
19 years ago
tron
bdff0fa2d2
(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
19 years ago
tron
4696ef802a
(svn r2809) Implement more generic threading functions, which allow more than one thread
19 years ago
tron
a86e9689df
(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
19 years ago
tron
fc5e2d4861
(svn r2775) Deleting a file can fail, display an error message when it happens
19 years ago
tron
2ff85cdc56
(svn r2729) Fix #include
19 years ago
tron
5821529859
(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.
19 years ago
tron
6c52a8629d
(svn r2727) Fix last commit, don't ask
19 years ago
tron
c43653b565
(svn r2726) Fix last commit
19 years ago
tron
286f8726d5
(svn r2725) Move MyShowCursor() back into win32.c, it fits better there
19 years ago
tron
84f78ea44a
(svn r2710) Simplify dedicated server code a bit and don't compile it at all, if network support ist disabled
19 years ago
tron
201990b5d9
(svn r2704) Remove . from include path again, too much trouble. Also add some #ifdefs and #includes for the Windows build
19 years ago
tron
a227065ab7
(svn r2701) Insert Id tags into all source files
19 years ago
tron
384b284846
(svn r2699) Hopefully fix the compilation on Windows when SDL is not present
19 years ago
tron
475d7fc0ae
(svn r2697) Make compiling with SDL on Windows work again (missing #includes) and fix some warnings
19 years ago
tron
4a14350711
(svn r2691) Separate dedicated video driver and fix bemidi declarations
19 years ago
tron
10fd03e222
(svn r2688) MSVC and Watcom can't handle identical file names in different directories, oh my...
19 years ago
tron
5178ad768d
(svn r2686) Revert accidently commited change
19 years ago
tron
07a6e612ec
(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.)
19 years ago
tron
559babcdc9
(svn r2673) Include functions.h directly, not globally via openttd.h
19 years ago
tron
18d79cc30f
(svn r2672) Move saving/loading related declarations to saveload.h
19 years ago
tron
11d21bb2a1
(svn r2670) Fix r2669
19 years ago
tron
ac66e3e28f
(svn r2650) Convert many explicit shifts+ands to extract bits to invocations of GB - should be a bit nicer to read
19 years ago
ludde
f432314fa9
(svn r2649) Get rid of 2 warnings.
19 years ago
ludde
3e97dda275
(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.
19 years ago
Darkvater
80aa8c868b
(svn r2609) - Feature: remove extension from savegames/scenarios when browsing the folders.
19 years ago
ludde
3ce9fb6bbd
(svn r2601) Fix: Added TIC,TOC macros do be able to do profiling easier.
19 years ago
ludde
71f9078bdd
(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
19 years ago
tron
8f71864bef
(svn r2571) Add explicit type Pixel for ... Pixels
19 years ago
tron
1a046ff4c6
(svn r2563) -Fix: [1209084] Spaces in the path to the MIDI files caused the win32 MIDI player to fail
19 years ago
tron
1b4a0897b6
(svn r2535) Tabs
19 years ago
tron
75bb548da4
(svn r2501) Forgot to change part of the win32 code in r2497
19 years ago
tron
9d75047211
(svn r2497) Use a struct array for palette entries instead of a flat byte array
19 years ago
Darkvater
e9115f28c9
(svn r2463) - Fix: partly revert the strncat madness and update nightly script (invisible) to correctly insert date.
19 years ago
Darkvater
3042e945d3
(svn r2459) - Fix: windows title-bar did not correctly add date/revision for nightly build
19 years ago
Darkvater
2bcb41293f
(svn r2417) - Fix: threads on morphos are apparently unexistent, so implement stubs for them (tokai)
19 years ago
tron
43f7974f6d
(svn r2405) Simplify a few '? true : false' and '? false : true', especially the latter is confusing
19 years ago
Darkvater
b438b1248c
(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.
20 years ago