Commit graph

171 commits

Author SHA1 Message Date
zicodxx d2365d65f0 Simplification of palette code; Properly screen clearing in SDL-only build when palette changes; Removed obsolete functions like gr_update (replaced by gr_flip), gr_palette_fade_in/out, gr_palette_clear; Added functionality to render Automap while menu display as well; Improved blocking of some controls code while Automap active; Fixed some compiler warnings 2008-03-20 23:23:46 +00:00
zicodxx f3d8d50a94 Reworked fonts routines - makes easier to expand and scale correctly; Reworked menus with better border scaling, improved rendering and cleanups; Improved font priniting ingame, better alignment; Reworked Netgame list; Real Doublebuffering in SDL-mode; Removed old and unused sources 2008-02-24 14:41:27 +00:00
zicodxx b6f477a398 Cleanung up arch/ a little bit; Added mouse delta time interval for more more accurate reading at high FPS 2008-01-29 14:49:54 +00:00
zicodxx d7b3c878ed Fixed memory issue as Joystick freeing; Case-insensitive mission-loading; Added support for non-Hog'ed missions; Improved writing functions for config and player files 2008-01-23 17:28:28 +00:00
kreatordxx 0f9a1c23e5 rename datafile_open to PHYSFSX_openDataFile to fit in with naming convention 2008-01-19 09:02:47 +00:00
zicodxx 66ed0f62f1 Removed SDL Gammaramp code (obsolete); Improvements on Demo code 2008-01-13 13:27:58 +00:00
zicodxx 416403c2d6 Fixing MAC compiling issues (hopefully); Re-Added IPX Socket option to Host menu for IPX games; Renamed netmisc.* to netpkt.*; Handling host disconnect for UDP games in network.c 2008-01-08 16:30:14 +00:00
zicodxx acdcb77711 Cleaned/Rewritten/Renamed lower level network layer to make it (look) less IPX-oriented 2008-01-02 15:36:51 +00:00
zicodxx 24e25d966b Fixed compiler error because of removed header file; Removed connect state restore in multi_endlevel_score to make sure always state 7 is sent to other players while connect state is obviously restored later; Allocated memory for all sequence_packet's; Moved piggy_close() to main - replacing atexit; Rendering credits with timer_delay2 at constant 25FPS and save CPU 2007-12-23 00:51:59 +00:00
zicodxx d2ca16d4c1 Implemented new UDP/IP interface with Server-Relay (for firewalled users) and IPv6 compability; Fixed memory issues; If arguments -gl_mipmap and -gl_trilinear used both, always select -gl_trilinear 2007-12-17 22:45:45 +00:00
zicodxx df7a1ca071 Introduced timer_delay2 as replacement for timer_delay to sleep according to given FPS rate considering calc time between frames 2007-11-21 12:46:09 +00:00
kreatordxx e474abb5a0 port the jukebox to PhysicsFS for Mac OS 9 compatibility 2007-11-10 08:51:30 +00:00
kreatordxx fef59bdb3f various fixes towards getting it to build for Mac OS 9 again 2007-11-06 01:30:07 +00:00
kreatordxx 7363a2a5fa hard code userdir to ~/Library/Preferences/D2X Rebirth/ for Mac OS X 2007-11-03 06:36:54 +00:00
zicodxx 453cf2d609 Fixed problems with GameTime wraparound - delay sounds, cloak, invulnerability, ping; Added debug key to Reset GameTime for testing; Removed -gl_vidmem; Cheat-code cleanup; Some HUD message redundancy 2007-10-28 20:14:25 +00:00
zicodxx 9577e61339 Small fixes; Code cleanup; Implemented PR-Screenshot feature 2007-10-18 14:44:02 +00:00
zicodxx dd279061fe Fixed define mistake in PHYSFSX_init 2007-10-15 16:24:30 +00:00
zicodxx b334ff5b97 Set SOUND_BUFFER_SIZE for SDL_mixer to 1024 to minimize delay; Removed MIDI-existance check and store all music to Music/ subdirectory of writedir - keeps clean if user has tons of levels; Added SDL_mixer command-line help output; Reworked PHYSFSX_init and removed SysUserDir so we can finally read args without a hassle; Stored MAXIMUM_FPS in game.h - where it belongs to 2007-10-13 23:52:17 +00:00
md2211 69492c702f Big args code refactoring, fixed issue with userdir d2x.ini, and a few other small things 2007-10-12 20:09:26 +00:00
zicodxx f83dc0adb8 Moved -nomovies to System Options 2007-10-01 20:42:35 +00:00
zicodxx 631fe7149c Changed define path for SDL_types header for win32 2007-09-29 10:48:02 +00:00
zicodxx e955dff203 Updated docs; Removed GP2X support since I won't support this device anymore 2007-09-28 22:44:04 +00:00
md2211 a0b4cac982 * Removed executable flag on most files
* Reverted value of SOUND_MAX_VOLUME
2007-09-21 19:06:05 +00:00
zicodxx 9eb7dfc112 Code-cleanup; Implemented new multi profile feature 2007-09-20 14:22:57 +00:00
md2211 324c0df6a1 * Huge SDL_mixer refactoring; sound backend now selectable at runtime, in D1X & D2X
* Sound system now uses a set of function pointers (digi.c) as a single interface to either SDL or SDL_mixer
* Ported jukebox functionality to D2X
2007-09-18 13:37:39 +00:00
zicodxx 7316f617a3 Fixed some mem-leaks; Made show_fullscr() use ogl_ubitmapm_cs(); Removed use of glScissor for menus - using Blitting; Code cleanup 2007-08-27 23:01:34 +00:00
zicodxx 91c393fb54 Added ipx_check_ready_to_join for driver element CheckReadyToJoin, making sure communication between UDP/IP clients 2007-08-20 21:33:26 +00:00
zicodxx 0b523c15be Added -ip_hostaddr argument to specify a host IP address via command-line/INI 2007-08-08 21:11:51 +00:00
zicodxx 2bc4cd32bb Cleanup in Config- and PLX-code; Saving Resolution in Config file so it will apply directly at game-init; Removed seperated resolution mode for menus, SCREEN_MENU now always uses Game_screen_mode; Last FindArg cleanups; Removed MenuHires(Available) and FontHires(Available) and replaced with HiresGFX(Available) to make a more common way to determinate if Hires data is used or not (interactive Demo); Improved support for Interactive Demo 2007-07-26 23:57:29 +00:00
zicodxx 2434d100a8 FindArg cleanup - GL-Debug and SDL arguments 2007-07-23 18:13:49 +00:00
zicodxx 3354c26219 Even more FindArg cleanups 2007-07-22 20:56:23 +00:00
zicodxx faa6122a4a Even more FindArg cleanups 2007-07-22 20:40:39 +00:00
zicodxx 860b964ee4 Code cleanup and small fixes 2007-07-22 01:34:00 +00:00
zicodxx 6469faaafc Cleanups 2007-07-18 22:23:06 +00:00
zicodxx 8e2aa8ea2a Cleaned up more FindArg's - general Debug Options; Cleanups 2007-07-18 20:13:17 +00:00
zicodxx 7d23cb6772 Cleaned up more FindArg's - Networking Options; Some fixes 2007-07-16 02:34:51 +00:00
zicodxx 29ef28bef3 Cleaned up more FindArg's - (most important) OpenGL Options 2007-07-15 21:22:07 +00:00
zicodxx a2a6959d39 Cleaned up more FindArg's - Graphics Options 2007-07-15 15:23:45 +00:00
zicodxx 8217e50e0c Cleaned up more FindArg's - Sound Options 2007-07-14 22:36:04 +00:00
zicodxx 8efe1ea653 Placing FindArg calls to seperated function, putting variables to a struct - frist step, not finished, yet; Large code cleanup 2007-07-14 20:33:42 +00:00
zicodxx cf14254e01 small code cleanup; improved texture caching in menus to save RAM 2007-06-15 12:32:44 +00:00
zicodxx b7f02568c0 fixed more compiler warnings 2007-06-11 15:54:09 +00:00
zicodxx 5bcb0e1ed5 introduced new bitmap flag to draw cockpit bitmap with transparency; draw transparent cockpit bitmap over gauges to make it more pixel-correct; code cleanups 2007-06-10 16:21:53 +00:00
kreatordxx 5c7f38f8e2 add add_to_end parameter to cfile_init, allowing custom MIDI music to be found in an add-on hog 2007-05-27 02:24:00 +00:00
kreatordxx 977eaf742d allow built-in data files to go in the 'Data' directory, like original Mac D2 folder layout 2007-05-20 02:00:57 +00:00
zicodxx f20ec1e42e Added config field to map a Mouse Axis/Wheel to cycle Primary and Secondary weapons; lots of controls-related code cleaning 2007-05-14 13:38:44 +00:00
kreatordxx 4ff4ddd0a3 include SDL/SDL.h for all platforms and physfs/physfs.h for Mac OS X to avoid having to add some hard-coded include paths 2007-04-09 02:41:45 +00:00
kreatordxx e89311954f move determination of WORDS_BIG_ENDIAN to pstypes.h as SCons can't do it (as far as I know). SCons doesn't make conf.h 2007-04-09 01:16:31 +00:00
zicodxx b41a8a437a Use Doublebuffer in OGL for all parts of the game and properly redraw elements, fixed Profiler build 2007-03-22 11:32:22 +00:00
kreatordxx 751cbe1a91 add gr_flip, allowing significant cleanup including the moving of gr_show_canvas, Pages and VR_screen_pages to arch/dos/gr.c 2007-03-21 11:32:33 +00:00
kreatordxx f0265ea26f use generic 'struct object' instead of including object.h, so gcc4.0 with Xcode doesn't complain about FSCALE being passed to CLIPLINE in 2d/line.c (strange indeed) 2007-02-18 07:29:26 +00:00
md2211 7db969b9fe * Going back to PHYSFS_file type (lower-case 'f') for compatibility
* Turning off sound debug flags
* Optional micro versions (see SConstruct)
* Makefile emulation for SCons
2007-02-14 21:02:46 +00:00
zicodxx 7c9f8bf7fe set MENU_SCREEN_MODE at init to set movie according to -menu parameter and also prevent unnecessary screen changes 2007-02-09 12:38:21 +00:00
zicodxx f9788e5b5f added transparency effects for some bitmaps like explosions, powerups, weapons, etc. - to enable with -gl_transparency 2007-01-29 23:31:20 +00:00
zicodxx d4de0c28d3 write screenshots to subdirectory 2007-01-25 10:30:33 +00:00
zicodxx a58dc03bab special WINDOWS fixes and cleanups, corrected automated UDP broadcast 2007-01-22 10:40:14 +00:00
kreatordxx 96ee4e1082 use PhysicsFS to write MIDI file, make hmp2mid use PhysicsFS exclusively 2006-12-30 05:29:21 +00:00
kreatordxx 7e1502c454 chdir to application directory so it uses relative userdir and hogdir paths properly, in Mac OS X it can make the root directory the current one 2006-12-24 10:41:07 +00:00
zicodxx 3d3188473b GP2X handheld support; added SConstruct file (MAC support incomplete); code optimisations for software renderer; fixed memleaks 2006-12-19 02:25:50 +00:00
md2211 2b2c6b283d Providing hmp2mid code, which was previously forgotten when introducing sdl_mixer in r264 2006-11-13 20:23:44 +00:00
md2211 a4597bc8be Initial integration of SDL_mixer sound system for Linux 2006-11-06 23:30:32 +00:00
zicodxx 8cc35e82c7 command-line to set glScissor off if needed 2006-11-02 01:24:10 +00:00
zicodxx 44bdbbb6e9 introducing draw_wbu_border to draw rounded weapon boxes with glScissor 2006-10-20 16:38:04 +00:00
zicodxx 18974b921a re-enabled SDL_SetGammaRamp; removed FSAA because no function on all platforms; fixed offscreen render; better restriction to show menus ingame 2006-10-10 23:42:33 +00:00
zicodxx 09ae63542c corrected demo-related font positions; fixed window view glitch in demo playback; merged ogl_ubitmapm_cs and ogl_ubitmapm_cf 2006-10-08 15:57:11 +00:00
zicodxx 3731293caf scale movies to grd_curscreen, not to Game_window_*; included conf.h to physfsx.h to get SHAREPATH 2006-10-02 14:08:14 +00:00
zicodxx 5262199e48 move PhysicsFS initialisation, search path setup and argument reading to physfsx.h (d2x-cvs takeover) 2006-10-02 13:55:58 +00:00
zicodxx 69cba85987 since we removed Game_window_* definitions from game_init_render_buffers we define both in init_cockpit if 0; corrected FONTSCALE_* for SDL mode 2006-09-29 13:43:21 +00:00
zicodxx a522685568 made fonts scalable, added command-line to enable fixed fonts, made savegame thumbs scalable, reworked menu borders, new way to display level info in automap to get right with scaled fonts. additionally layed out special characters to newmenu.h, showing savegame thumbnail in save game window as well 2006-08-18 09:47:07 +00:00
zicodxx 394cd7fe63 added mipmap operator to ogl_bitblt_i, added if to MovieShowFrame to switch off movie mipmap if argument -nomoviesmooth given, added command-line option, added new options to d2x.ini 2006-04-08 15:12:26 +00:00
zicodxx b94413b91b initial import 2006-03-20 17:12:09 +00:00