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
Darkvater
e480038d19
(svn r2459) - Fix: windows title-bar did not correctly add date/revision for nightly build
2005-06-18 20:23:35 +00:00
Darkvater
a6f2b8ae74
(svn r2417) - Fix: threads on morphos are apparently unexistent, so implement stubs for them (tokai)
2005-06-06 12:11:44 +00:00
tron
1273f21ff5
(svn r2405) Simplify a few '? true : false' and '? false : true', especially the latter is confusing
2005-06-04 07:35:12 +00:00
Darkvater
ba8c649fac
(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.
2005-06-02 19:30:21 +00:00
Darkvater
13c7b2b337
(svn r2391) - Feature: saving games happen in a seperate thread so you no longer will have to wait such a long time (especially handy on bigger maps and multiplayer games). The mouse also changes into the 'ZZZ' state :P. The thread on windows is currently given a little-bit-less-than-normal priority so it should not interfere that much with the gameplay; it will take a bit longer though. Upon the exit of the game any pending saves are waited upon.
...
- Fix: fixed GetSavegameFormat() so that it takes the best compressor (highest), or a forced one added with the parameter
- Open issues:
1. Don't attempt to load a game while saving is in progress, it will kick you back to the intro-screen with only the vast ocean to look at.
2. The server is disabled from threaded-saving, but might be enabled in the future.
3. Current implementation only allows 1 additional running thread.
4. Stupid global variables.....grrr
Big thanks for TrueLight and the amazing memorypool :D
2005-06-01 23:08:33 +00:00
Darkvater
f4f5cb93f8
(svn r2387) - CodeChange: made the saveload code more readable and also removed the 'byte' saveload arrays which means you can save an array of more than 255 elements, or bigger structs than 255 bytes. This doesn't yet solve the problem that a chunk can be a maximum of 16384 big.
...
- Fix: also fix an unnoticed error in SlSaveLoadConv() due to wrong types.
2005-05-30 22:16:05 +00:00
Darkvater
6b794ede3b
(svn r2334) - Fix (regression): moved togglefullscreen into the video-driver, now windows works, dedicated works and sdl works. Also reverted the change to the makefile.
2005-05-16 16:19:32 +00:00
Darkvater
a77a211ef7
(svn r2310) - Fix: Game would crash if you full-screened with the 'fullscreen' button than chose a resolution from the dropdown box that was no longer valid. Big thanks to DaleStan for track down the crashing bug.
...
- Fix: There would be duplicate entries in the resolutions dropdown box. Copy SDL method or removing duplicates and sort the list.
- Feature: in the settings menu, you don't have to click on the arrows anymore, clicking on the dropdown box itself has the same effect. Consistent with other dropdowns in the game
2005-05-14 21:01:57 +00:00
darkvater
5960857d9d
(svn r2190) - Fix: [1179424] '.. (Parent directory)' does not show up in the root-directory anymore; win32 only (mgasterix)
2005-04-13 13:09:25 +00:00
darkvater
50003f4ed9
(svn r2153) - Fix: [ 1173690 ] Path displaying as "C:\\" in saveload window win32-only (glx)
2005-04-05 21:09: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
pasky
6ecac0a6f0
(svn r2086) - Codechange: Two indentation fixes coming from Loic Guilloux' patch 1171208.
2005-03-27 15:12:26 +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
darkvater
877a9f7df7
(svn r2052) - Fix Regression: ALT+F4 once again shuts down openttd in windows and F10, etc. is fixed.
2005-03-24 20:47:21 +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
tron
b40a2fcd0d
(svn r2000) Split the sound system into backend (mixer.[ch]) and frontend (sound.[ch])
2005-03-12 09:38:03 +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
tron
2116fad350
(svn r1984) -Fix: [1155762] Don't try to open the non-existent menu, when F10 is pressed
2005-03-10 15:41:25 +00:00
tron
dec8ac91e3
(svn r1972) Several cleanups and fix some latent bugs
2005-03-09 16:56:26 +00:00
tron
5f1345ac0e
(svn r1970) Fix some warnings which Cygwin showed
2005-03-09 11:49:34 +00:00
darkvater
453ebc32f0
(svn r1907) - Fix: [ 1114261 ] Speeding up when pressing ALT+TAB (Windows)
2005-02-22 22:14:27 +00:00
Darkvater
fb78ca8a62
(svn r1894) - Codechange: cleaned up the console a bit, wholly unified 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-21 18:59:54 +00:00
tron
3608b72a36
(svn r1850) Change the last consumers of str_buffr so they use local static buffers now and remove the global array str_buffr.
2005-02-08 17:31:13 +00:00
tron
701a32d048
(svn r1840) Repel str_buffr and use local buffers where possible
2005-02-07 12:32:35 +00:00
tron
59fa465dce
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
2005-02-06 13:41:02 +00:00
tron
cd5cd3c6fa
(svn r1806) Add missing includes (see r1803)
2005-02-05 21:57:01 +00:00
tron
7cac482a73
(svn r1805) Teach the driver layer a few things about const correctness
2005-02-05 18:05:42 +00:00
darkvater
b33e5d9ee0
(svn r1734) - Fix: [ 1112253 ] hijacking of arrow keys, game also scrolled when it was out of focus (dominik)
2005-01-30 16:54:39 +00:00
darkvater
c92bd3abdd
(svn r1603) -Fix: unused variable in FormatTinyDate
...
-Fix: added void to all win32.c functions as well
2005-01-23 10:34:39 +00:00
dominik
ac5a1406bc
(svn r1541) Fix: [ 1100767 ] fast forward in main menu
2005-01-16 13:59:07 +00:00
darkvater
c308179978
(svn r1529) -Feature: [1090950] Adding 16:10 resolutions for mainly laptops (doode)
2005-01-15 20:43:01 +00:00
darkvater
0e651d9702
(svn r1524) -"Feature": when windows exception tracker is enabled (release builds) and the game crashes for any reason any active log file is closed first. This ensures the log file and ingame debug messages can be used to debug a problem. Any *nix versions are welcome
2005-01-15 16:38:10 +00:00
darkvater
1d127765c3
(svn r1523) -Fix: somehow mousewheel was disabled on windows using SDL; reenabled again
...
-Fix: added missing CDECL to ellipsis functions and changed VS6 project file to use _cdecl calling conventions (thx tamlin)
2005-01-15 15:48:05 +00:00
darkvater
199a77d1ea
(svn r1479) -Added highscore chart (accessible from the difficulty window) 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-11 00:54:06 +00:00
tron
2eb7aedf69
(svn r1402) Trim trailing whitespace
2005-01-06 18:45:28 +00:00
miham
7bf7cf80ee
(svn r1297) Language fixes in the source.. (ln-)
2004-12-29 13:13:29 +00:00
darkvater
2a0f68a6c5
(svn r1266) -Fix: fix some cygwin/mingw warnings
...
-Note: when compiling with MinGW (-mno-cygwin) __MINGW32__ is defined; when compiling without it __CYGWIN32__ is defined. You need to set either -mno-cygwin (MinGW) or -mwin32 (Cygwin) to have WIN32 defined
2004-12-23 22:31:46 +00:00
darkvater
b87336f216
(svn r1262) -Fix: [1088996] kill some warnings for MinGW (luzi82)
2004-12-23 20:23:05 +00:00
dominik
8588901ae8
(svn r1171) Fix: Console hotkey works again on keyboards where this key is a deadkey.
2004-12-19 13:28:09 +00:00
truelight
92b329bc14
(svn r1154) -Add: [Network] Forked dedicated server (start openttd with -Df) (GeniusDex)
2004-12-18 14:19:21 +00:00