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
20 years ago
Darkvater
2bcb41293f
(svn r2417) - Fix: threads on morphos are apparently unexistent, so implement stubs for them (tokai)
20 years ago
tron
43f7974f6d
(svn r2405) Simplify a few '? true : false' and '? false : true', especially the latter is confusing
20 years ago
Darkvater
b438b1248c
(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.
20 years ago
Darkvater
a51cfd58b8
(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
20 years ago
Darkvater
55423efb06
(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.
20 years ago
Darkvater
7daaf1f100
(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.
20 years ago
Darkvater
2aa94201dc
(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
20 years ago
darkvater
860242b811
(svn r2190) - Fix: [1179424] '.. (Parent directory)' does not show up in the root-directory anymore; win32 only (mgasterix)
20 years ago
darkvater
dfe6c34bf1
(svn r2153) - Fix: [ 1173690 ] Path displaying as "C:\\" in saveload window win32-only (glx)
20 years ago
darkvater
6bca4c041a
(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)
20 years ago
pasky
8acc24f000
(svn r2086) - Codechange: Two indentation fixes coming from Loic Guilloux' patch 1171208.
20 years ago
tron
aba225c88d
(svn r2084) Set the name for drive items
20 years ago
tron
742513d708
(svn r2076) Set the name for the parent directory to ".."
20 years ago
darkvater
602fda327f
(svn r2052) - Fix Regression: ALT+F4 once again shuts down openttd in windows and F10, etc. is fixed.
20 years ago
tron
3763ec7652
(svn r2012) When making a savegame name, don't append the extension, if it is already there
20 years ago
tron
f04780e66d
(svn r2000) Split the sound system into backend (mixer.[ch]) and frontend (sound.[ch])
20 years ago
tron
70be35f319
(svn r1999) r1990 broke savegame deletion, fix that [1161729]
20 years ago
tron
d755b7908e
(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)
20 years ago
Darkvater
a0ef37e7bc
(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.
20 years ago
tron
8982342c54
(svn r1984) -Fix: [1155762] Don't try to open the non-existent menu, when F10 is pressed
20 years ago
tron
11ba413c4a
(svn r1972) Several cleanups and fix some latent bugs
20 years ago
tron
34f14e657d
(svn r1970) Fix some warnings which Cygwin showed
20 years ago
darkvater
0abd611c0a
(svn r1907) - Fix: [ 1114261 ] Speeding up when pressing ALT+TAB (Windows)
20 years ago
Darkvater
d865c55007
(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().
20 years ago
tron
4b2e34e0aa
(svn r1850) Change the last consumers of str_buffr so they use local static buffers now and remove the global array str_buffr.
20 years ago
tron
b1baa4ed8b
(svn r1840) Repel str_buffr and use local buffers where possible
20 years ago
tron
b2ae5b197e
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
20 years ago
tron
7d3a576a7b
(svn r1806) Add missing includes (see r1803)
20 years ago
tron
17ca2c49a5
(svn r1805) Teach the driver layer a few things about const correctness
20 years ago
darkvater
1527ef3db0
(svn r1734) - Fix: [ 1112253 ] hijacking of arrow keys, game also scrolled when it was out of focus (dominik)
20 years ago
darkvater
720b183017
(svn r1603) -Fix: unused variable in FormatTinyDate
...
-Fix: added void to all win32.c functions as well
20 years ago
dominik
b119b6c474
(svn r1541) Fix: [ 1100767 ] fast forward in main menu
20 years ago
darkvater
633786f55e
(svn r1529) -Feature: [1090950] Adding 16:10 resolutions for mainly laptops (doode)
20 years ago
darkvater
732c362dea
(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
20 years ago
darkvater
ef3b9161f8
(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)
20 years ago
darkvater
5fac6142e8
(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.
20 years ago
tron
8b7c1e94e1
(svn r1402) Trim trailing whitespace
20 years ago
miham
57852f6498
(svn r1297) Language fixes in the source.. (ln-)
20 years ago
darkvater
b249954538
(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
20 years ago
darkvater
ffed7d6834
(svn r1262) -Fix: [1088996] kill some warnings for MinGW (luzi82)
20 years ago
dominik
8c6c4e5262
(svn r1171) Fix: Console hotkey works again on keyboards where this key is a deadkey.
20 years ago
truelight
17a613546c
(svn r1154) -Add: [Network] Forked dedicated server (start openttd with -Df) (GeniusDex)
20 years ago
dominik
64f98e058d
(svn r1148) Fix: The console hotkey is finally working properly on all keyboards. It's the key on the top left corner
20 years ago
darkvater
c58549d512
(svn r1093) -Fix: Hopefully fixed windows revision issues once and for all. Removed globalness of _openttd_revision and put all such ifdefs into one place. If server has a revision only the same revisions can join; if the server has no revision everyone can join. I reckon this should be a server-side option to allow people to join or not to join.
20 years ago
truelight
b6c74c1c20
(svn r1090) -Fix: Made the _openttd_revision variable global, and with that
...
hopefully killed the windows-revision problem. If WITH_REV is defined,
for both Windows as *nix system _openttd_revision is filled with normal
info, else _openttd_revision is set to 'norev000'
-Fix: Small possible server-crash
20 years ago
darkvater
043b8bc5ad
(svn r1079) -Fix: you can once again quit the game in windows by pressing ALT+F4 or the 'exit' button in the main menu.
20 years ago
dominik
77e882c3bd
(svn r1076) Feature: Patch setting to autosave the game on exit
...
If you set autosave_on_exit = true in openttd.cfg, your game will be saved as exit.sav in the autosave folder and you won't be asked if you want to quit the game any more.
20 years ago
truelight
b8f6d41418
(svn r942) -Merged branch/network back into the trunk
20 years ago
tron
fdb447ac55
(svn r901) Small step in the process to clean up the DPARAM mess:
...
- 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
20 years ago
tron
acbd1801c7
(svn r815) Include strings.h only in the files which need it.
...
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.
20 years ago
tron
01e88bb61d
(svn r623) -Feature: [ 1066504 ] Pause key pauses the game
20 years ago
darkvater
8946e92468
(svn r586) -Fix: [1066114] Code error in win32.c Thanks Shai
...
-Fix: ttd.vcproj change to hard-set compilation as C, as well as adding WITH_SDL to debug mode. If you don't have SDL just remove that.
20 years ago
darkvater
edf841fb6f
(svn r328) -Fix: remove some unlogical alloca()s (Tron)
20 years ago
darkvater
f3758d133a
(svn r312) -Fix: [926105] ctrl + d bug. Longest outstanding bug has been fixed \o/ 2004-03-30 (Tron)
...
-Fix: [1030393] some screensizes crashes OTTD. Fix in general bug that only allows resolutions which were multiple of 8 in width and height. Also use closest possible resolution in fullscreen if window size is not a valid resolution (Tron)
20 years ago
darkvater
493df26058
(svn r304) -Fix: [967096] fullscreen. New button 'Fullscreen' in 'Game Options' menu which lets you set fullscreen ingame.
20 years ago
darkvater
b7fd924806
(svn r293) -Feature: Windows now shows (available) revision, release information in title bar
20 years ago
darkvater
989ed101bc
(svn r224) -Fix: Music now finally works on WinXP. DirectMusic is now default for an OS >= WinNT4 (WinNT4, Win2k, WinXP), and MIDI driver for lower OS's (Win95, Win98, WinME, etc).
20 years ago
darkvater
e295e46e3e
(svn r223) -Fix: Const correctness and miscellaneous fixes. Thank you Tron for your diligent fixing of warnings (and some possibly bugs) (Tron)
...
-CodeLayout: Remove trailing spaces and Windows linebreaks
20 years ago
signde
1fb915df69
(svn r207) -Codechange: randomizer handling
...
-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]
20 years ago
darkvater
ddeae85be4
(svn r200) -Fix: oops, ALT+F4 didn't work anymore. Fixed now.
20 years ago
darkvater
2cd8a89d44
(svn r199) -Fix: [993374] Pressing alt locks the game - sort of a bug. I hope I didn't break anything :O
20 years ago
darkvater
80cb0b7fd6
(svn r197) -Fix: Disable Fast Forward in network games visually (didn't work anyways, just showed graphical output)
20 years ago
truelight
eb49a19460
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
20 years ago
darkvater
bf0652d3fc
(svn r165) -Feature: Option to sort vehicles in vehicle-list window by 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.
20 years ago
darkvater
ca67192520
(svn r154) -Fix: some people while using MSVC don't have VK_OEM_3 defined? Or it could be Win2000/XP only
20 years ago
darkvater
4bf6ad1406
(svn r152) -Fix: [1021061] windows WKC_BACKQUOTE [US] (sign_de)
20 years ago
darkvater
5505a10b80
(svn r136) -Feature/Fix: Console Rev #2 and WKC_BACKQUOTE this patch adds new features to the ingame console and inserts a new keymanagement for windows pcs... (sign_de)
20 years ago
darkvater
b7e14169f8
(svn r50) -Fix hopefully the win98 crashes related to music/sound (orudge)
20 years ago
dominik
6c87ef6c65
(svn r9) Fixed a couple of warnings and minor coding issues
20 years ago
truelight
efaeb275f7
(svn r1) Import of revision 975 of old (crashed) SVN
20 years ago