Commit Graph

2334 Commits

Author SHA1 Message Date
celestar
f287f2ff8d (svn r2753) -Codechange: Introduced a new struct "RailtypeInfo" to store rail type specific information. Begun populating it with a bunch of sprites, more to come later. This should result in cleaner, more compact code which allows easy introduction of new railtypes. 2005-07-29 21:36:02 +00:00
celestar
a855a54686 (svn r2752) -Doc: Added some doxygen stuff to rail.h. I'm gonna mess around with this file and wanted to get rid of this first 2005-07-29 19:35:23 +00:00
celestar
a74063be09 (svn r2751) -Fix: Disabled buttons in the patches and difficulty windows are now rendered properly again 2005-07-29 18:26:53 +00:00
tron
0dcbecd357 (svn r2750) -Fix: Tree tiles above the snow line got redrawn disproportionately often 2005-07-29 18:22:04 +00:00
tron
0d912f3811 (svn r2749) Fix typo in the tile documentation 2005-07-29 17:52:29 +00:00
tron
452f8fee2a (svn r2748) Remove unused cruft from the main loop 2005-07-29 16:40:29 +00:00
celestar
d2a891db7e (svn r2747) -Fix: r2736 broke the newpaper display. Sorry. 2005-07-29 15:55:14 +00:00
tron
a7acb22781 (svn r2746) -Fix: SDL_SetColors() has the number of palette entries to change as parameter, not one beyond the last entry to change 2005-07-29 10:16:49 +00:00
bjarni
6488c2cba0 (svn r2745) -Fix: [OSX] removed the assert window introduced in 2741 from strgen
- it appeared to cause problems and strgen don't need a GUI
  - renamed ottd to openttd in the app menu (Tobin)
2005-07-29 09:45:25 +00:00
tron
7f3ed35dd4 (svn r2742) Get rid of some void pointers plus a few minor changes, like 0 -> '\0' 2005-07-29 06:20:28 +00:00
bjarni
7e25cd6240 (svn r2741) -Feature: [OSX] added a window to display asserts on OSX (Tobin) 2005-07-28 21:47:41 +00:00
tron
c8f83b74ad (svn r2740) MSCV doesn't seem to like forward declared static arrays 2005-07-28 19:59:41 +00:00
tron
ae44d3aa1f (svn r2739) -Fix(?): Change the fence algorithm so it removes fences when no farm tile is adjacent 2005-07-28 19:23:19 +00:00
tron
0e64dc50b6 (svn r2738) Small bit fiddling cleanup 2005-07-28 19:18:27 +00:00
tron
bc6570ae69 (svn r2737) static, const and don't make variables public nobody else needs to know about 2005-07-28 09:41:09 +00:00
celestar
fcd012e7ec (svn r2736) -Codechange: De-mystified GfxDrawFillRect a bit, and used enums from table/sprites.h. You can now change the number of bits used for sprites and switches in the SpriteSetup enum and the rest should work automagically. Can be used to increase the number of active sprites to 2^19 in case there are no colortables (recolor sprites) in any newgrf. We should possibly move the the colortables to an own list, but how to detect them in a newgrf. 2005-07-28 09:17:32 +00:00
bjarni
41795423cf (svn r2735) -Fix: [OSX] fixed issue introduced in 2733 where dedicated servers on OSX included sdl.h even when WITH_SDL was not defined (oops) 2005-07-28 09:01:41 +00:00
celestar
3af8aba978 (svn r2734) -Feature: The Main Toolbar Dropdown Menu can now display disabled items 2005-07-28 08:49:29 +00:00
bjarni
2f2775323f (svn r2733) -Fix: [OSX] solved include issue introduced in 2714, which prevented OSX from opening a window to run the game in (sdl.h was not included anymore) 2005-07-28 08:45:57 +00:00
celestar
1e67dfffe7 (svn r2732) -Codechange: Cleaned the order flags some more. Hit some inconsistencies while trying to locate bug 1244167 2005-07-28 06:09:15 +00:00
celestar
692b226bb6 (svn r2731) -Fix [ 1244171 ]: Hangar orders are now properly invalidated as soon as the airport is removed 2005-07-28 05:47:54 +00:00
tron
25f72e40cc (svn r2730) -Fix: Fail if the sequencer can't play audio
Also check the return value of CreateThread()
2005-07-27 21:45:34 +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
bjarni
a1557fa270 (svn r2724) -Fix: [Autoreplace] made the pulldown menu read GetPlayer(_local_player)->avail_railtypes - this removes the need for updating this code if we add more railtypes and it also allows the menu to show maglev when monorail is not available 2005-07-27 10:11:45 +00:00
tron
602feb19b5 (svn r2723) Make the manual page more informative 2005-07-27 07:19:28 +00:00
tron
452652e85e (svn r2720) Remove unused declarations and definitions 2005-07-26 19:34:03 +00:00
orudge
5e31dff2fd (svn r2719) - Update MSVC 2003 project (AsterixMG) 2005-07-26 19:31:05 +00:00
tron
df27c8b2a0 (svn r2718) Forgot one file 2005-07-26 19:05:07 +00:00
tron
c043670cf8 (svn r2717) Move _userstring to strings.[ch] 2005-07-26 19:04:19 +00:00
tron
18d00d0f1f (svn r2716) Do not use strncat() 2005-07-26 18:47:04 +00:00
orudge
d4b6f763c1 (svn r2715) - Update MSVC project with dmusic.cpp updates 2005-07-26 18:45:19 +00:00
tron
8e9d4df256 (svn r2714) Remove unnecessary includes 2005-07-26 18:24:18 +00:00
tron
81be08bc21 (svn r2712) Overhaul DirectMusic MIDI backend:
- Merge the .c and .cpp part into one file
- Properly deinitialize at the end
- Remove "experimental" status
- Miscellaneous smaller changes
-Fix: Volume control works now
2005-07-26 06:59:48 +00:00
miham
68bd17e351 (svn r2711) [Translators] Updated translations to 20050725 (2 lang(s)) 2005-07-25 17:45:57 +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
orudge
466e1c63e8 (svn r2709) - Update VC 2003 project file (AsterixMG) 2005-07-25 11:36:02 +00:00
orudge
ad99672a8e (svn r2708) Update MSVC6 project with recent changes 2005-07-25 09:52:37 +00:00
tron
272e5de747 (svn r2707) Missed the paths in the BeOS MIDI player, sorry for all the noise 2005-07-25 08:16:05 +00:00
tron
6bdedb51a6 (svn r2706) Fix !WITH_NETWORK build 2005-07-25 07:28:32 +00:00
tron
91f67d3bbe (svn r2705) Fix #include paths and remove unnecessary #includes 2005-07-25 07:20:32 +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
bjarni
f1c254befa (svn r2703) - Feature: [OSX] Added a native alert window to show whatever error() needs to print (Tobin made this, while I fixed some issued in it)
- As a bonus, we now have an objective C file (os/macosx/macos.m) to use the functions Apple made to interact with OS stuff
2005-07-24 20:47:42 +00:00
celestar
a3739aecdf (svn r2702) -Codechange: Cleaned up the sprite code and replaced many magic numbers
by enums. There remains work in gfx.c to move the "transparency" and
"recolor" bits around to make space for more sprites. However, 2800
additional sprites can now be loaded. There also remains cleanup and
Doxygen work on many of the header files.
2005-07-24 15:56:31 +00:00
tron
647cbd6bdd (svn r2701) Insert Id tags into all source files 2005-07-24 14:12:37 +00:00
tron
1492a04844 (svn r2700) Insert Id tag into the Makefile 2005-07-24 13:55:39 +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