zicodxx
|
7c5aaa29df
|
Redefined lotsa variables, functions and parameters as const and/or static - patch by Kp
|
2012-07-23 01:17:54 +02:00 |
|
zicodxx
|
583187db68
|
removed temp_string buffer for ingame message inputs preventing the string from being messed up if containing special characters
|
2012-06-18 01:23:32 +02:00 |
|
zicodxx
|
6ee7c2f092
|
Removed remnants of the old and obsolete VR implementation
|
2012-05-27 00:24:57 +02:00 |
|
zicodxx
|
d3fb313fd9
|
Renamed FixedStepCalc() to cald_d_tick() and FixedStep became d_tick_step; Also ther eonly is a 50ms-timer used to d_tick_step as it was the only one used so far; Replaced FrameCount with d_tick_count which only increments by 50ms-timer used in calc_d_tick() - that now scales timed actions for certain functions properly and makes AI work FPS-independent without any hacks in that regard
|
2012-05-14 19:06:28 +02:00 |
|
zicodxx
|
149bd7ad7c
|
removed debugging code accidentially left in...
|
2011-07-12 01:33:10 +02:00 |
|
zicodxx
|
a87dccd1bf
|
Readded automatic wall-flag setting for opened doors as PLP cannot protect us from negative side-effects due to how gullible multi_do_door_open() works
|
2011-07-12 00:11:00 +02:00 |
|
zicodxx
|
41b4c080fa
|
In Multiplayer games show player names in big guided window as well
|
2011-07-09 13:25:11 +02:00 |
|
zicodxx
|
dc0400205b
|
Only call show_netplayerinfo() if GM_MULTI is set and reset netplayerinfo_on in game_setup()
|
2011-07-04 11:23:53 +02:00 |
|
zicodxx
|
54f8868d4e
|
in game_render_frame_mono() call show_netplayerinfo() last so window views do not overlap
|
2011-05-26 15:57:02 +02:00 |
|
zicodxx
|
74c7bdd7c5
|
Improved syntax for Multi messages/commands: Commands starting with '/' and those accepting arguments as well as Player/Team messages require space after ':' ; Added indicator on HUD to show if a player is typing a message to prevent accidential kills
|
2011-04-11 17:47:16 +02:00 |
|
zicodxx
|
6922100a0c
|
Fixed text-related annoyances: Fixed positions of strings TXT_CLOAKED and TXT_CRUISE in CM_FULL_SCREEN; Fixed scaling of tab_stop in briefings (again)
|
2011-04-10 03:11:00 +02:00 |
|
zicodxx
|
c960d5505a
|
Added cv_fade_level to canvas structure to replace Gr_scanline_darkening_level; Added cv_blend_func to canvas structure to set blending; Introduced gr_settransblend to set cv_fade_level and cv_blend_func; Added function to set normal blending, additive alpha blending and additive color blending; Moved Special transparency effects from g3_draw_bitmap to render_object to set individual transparency and/or blending for each object outside of OpenGL-specific code; Added special blending for fuelcenter and force field effects as well; Removed unused LASER_HACK code; Renamed OglAlphaEffects variable of PalyerCfg to AlphaEffects as I plan to implement this kind of effects for Software renderer, too
|
2011-02-23 17:46:39 +01:00 |
|
zicodxx
|
d6fbef4e43
|
Moved all these unsorted global cheat variables to a handy structure; Simplified reading of the cheats without trying to make it complicated so no one finds them (everyone can get the source); Removed one or two cheats which carry more garbage than they are worth; Added replacement for the bittersweet cheat; Made FPS Counter an option of Graphics menu
|
2011-02-14 22:27:07 +01:00 |
|
zicodxx
|
43ebcd249b
|
Added secondary weapon indicators to new reticle types; Fixed disks being drawn as circles - whoops
|
2011-02-10 20:53:23 +01:00 |
|
zicodxx
|
37f59aa896
|
in show_framerate do not use gr_get_string_size at all but rather use hardcoded coordinates - less CPU-intense
|
2011-01-22 18:46:08 +01:00 |
|
zicodxx
|
5eb05548c3
|
Added timer_update() to stop/start/reset_time() functions so resumed last_timer_value will be precise; Added new FPS counter which actually does count the frames rendered per second and is less irritating; Added timer_dleay2 call to console to not stress CPU too much; Imporoved placement for show_time(), multi messages, marker messages and orb counts
|
2011-01-22 13:30:20 +01:00 |
|
zicodxx
|
fd53a1264b
|
On NETGAMES list Bounty mode was not shown since MODE_NAMES define was not adjusted - so in the end introduced GMNames and GMNamesShrt Arrays in multi.c for globally displaying full or short Multiplayer game mode names
|
2011-01-19 19:55:38 +01:00 |
|
zicodxx
|
a1f7da133e
|
Introducing new BOUNTY Multiplayer game mode by Matt -1360- Vandermeulen <matt1360@gmail.com>
|
2011-01-19 02:19:17 +01:00 |
|
zicodxx
|
0d997ed81a
|
Converted console into a window and allow it to show in every part of the game; Fit several poll functions and kmatrix so they won't get interrupted by the console
|
2011-01-14 22:56:00 +01:00 |
|
zicodxx
|
39e956e2bc
|
Added different reticle types with RGBA and size settings; Apply RGBA and size to FlightSim Indicator and Guided Crosshair; Added Brightness Slider to Graphics options menu; Added OpenGL usage for gr_disk
|
2011-01-10 16:12:04 +01:00 |
|
zicodxx
|
281c9668bb
|
Moved NoRedundancy, MultiMessages and NoRankings toggles from GameArg to PlayerCfg to be set via Misc Options
|
2011-01-03 02:01:26 +01:00 |
|
kreatordxx
|
7f93792249
|
For polling newmenus, set rval using a pointer and don't delay closing the window, hopefully fixing bad memory access when clicking in level scores screen; change newmenu_close to newmenu_free_background to avoid confusion
|
2010-07-31 12:09:38 +00:00 |
|
zicodxx
|
3d9791ca69
|
Made PlayerCfg.CockpitMode an array to hold two values: 0 to store the actual cockpit, 1 to also store Letterbox, Rear, etc. Greatly helps to switch and restore views - especially in Demo playback which now properly selects modes
|
2010-01-28 00:04:29 +00:00 |
|
zicodxx
|
2a6c9d0dbd
|
Rewrote code for showing Cloak-effect on Cockpit and Statusbar, because it became bugged with changed order of function calls do_cloaked_stuff() and render_gauges(); Fixed cockpit switches for Guided missile when Player is in Rear-View - the original code never considered that
|
2010-01-24 17:38:13 +00:00 |
|
kreatordxx
|
c6cbb6b9f8
|
Make pause box a window
|
2010-01-09 09:19:26 +00:00 |
|
kreatordxx
|
b835361586
|
Make newmenus into windows, allowing redrawing of automap and game to take place outside of newmenu.c; remove redundant keyd_repeat
|
2009-12-26 01:08:57 +00:00 |
|
zicodxx
|
01972042d6
|
Reintroduced Newdemo_game_mode to prevent demo playback from entering code parts it should not and fixing a bug with Multiplayer demos along the way, introduced in rev. 953
|
2009-11-30 14:59:37 +00:00 |
|
zicodxx
|
febe5d124d
|
Abstracting networking protocols - Step 4: Implemented new UDP layer with Client/Server communication, Packet Loss Prevention and strict Version checking. Netgames list will follow later.
|
2009-11-24 09:48:53 +00:00 |
|
kreatordxx
|
bf512bb9ec
|
Remove redundant conf.h directives
|
2009-04-30 13:01:31 +00:00 |
|
zicodxx
|
fb112d7dfb
|
Abstracting networking protocols - Step 3: Renaming network_* functions to net_ipx_*, writing wrappers for protocol dependend functions in multi.c, Implementing protocol selection and Cleanup - Next up: Implementing new UDP layer
|
2009-04-09 07:41:30 +00:00 |
|
zicodxx
|
8da36f8873
|
Abstracting networking protocols - Step 1: Renaming network-related files; Removing net_ipx.h (former network.h) includes from as much files as possible to make isolation of IPX-related functions easier in Step 2; Version defines Cleanup - needed later for good Version-Checking
|
2009-03-04 21:04:43 +00:00 |
|
zicodxx
|
984e0c053f
|
Made our Cockpit-Transparency decoding function a bit safer for current and possibly new code flow
|
2009-02-23 10:15:23 +00:00 |
|
zicodxx
|
98fe14c6d8
|
Made FPS string statically right-justified - unrelated to actual FPS string width preventing jumps
|
2009-02-02 09:02:29 +00:00 |
|
zicodxx
|
8e7fe53610
|
Defined some default cockpit modes in Demo mode so we do not get invalid values when demo starts in non-default-view mode (as new HUD modes are only triggered at beginning and end of event); Removed Newdemo_flying_guided global; Init seismic disturbances in demo mode just to make sure tey are switched off when coming from game mode; Made initialisation for Missile_viewer signature saving global so we can reset it for each new level and make sure we get a correct missile view; Fixed regression in Ai_last_missile_camera
|
2009-02-02 08:49:58 +00:00 |
|
zicodxx
|
1de53497b2
|
Using a clean flow for closing game data at the end of main() instead of using atexit; Now only use atexit for SDL stuff, error, mem, console (and editor which we do later); Small Cleanup
|
2008-11-14 16:56:40 +00:00 |
|
zicodxx
|
8a2da79504
|
Always keep aspect scaling (lowest scalar of width and height) for fonts, lines, dots, spheres, reticle and non-Cockpit-/Statusbar-related HUD-elements; Moved the Cockpit alpha decoding to gauges.c and created a seperate bitmap for the alpha fields and create subbitmaps from this one - more memory but this way we do not modify the cockpit bitmap itself
|
2008-11-09 14:31:30 +00:00 |
|
zicodxx
|
54be20c5e1
|
I always forget glLineWidth takes previous setting if arg is <=0; Made the decodebuffer for cockpit static as the bitmap data pointer points to it
|
2008-11-01 15:40:00 +00:00 |
|
zicodxx
|
a471aa0f2f
|
Fixes for my last revisions: More reliable check for cockpit_decode_alpha, more reliable check is newmenu sub-bitmap needs to be re-created, call gr_set_mode() in change_res() with correct Game_screen_mode
|
2008-10-28 15:32:12 +00:00 |
|
zicodxx
|
820961c99a
|
Removed hack for Cockpit-window transparencies and added function to decode and add alpha to the bitmap directly (now works in non-OGL as well); Using sub-bitmaps for Cockpit-windows and menu backgrounds; Cleaned old bkg stuff from menu GUI
|
2008-10-28 13:28:10 +00:00 |
|
zicodxx
|
6dc900f51d
|
Giving credits function ability to use custom creditfile (again); Made laser-offset for laser exclusive so Prox mines won't go tru doors; Preventing cycling tru cockpit modes while dead, but allowing to load a state; Implemented D2X' lighting code to D1X (faster, better, sexier - weeee); Try to hop over some errors regarding walls/doors in levels instead of using -1 indexes for arrays; Made the briefing text ptr a bit more failsafe in case the file is corrupt/non-standard; Made scores use the menu screen even in GAME OVER; Fixed bug in neighbour fields of Weapon Keys table; Added the Weapon Keys stuff to TABLE_CREATION; Fixed bug where D2X did not recall applied resolution in the resolutions menu; Simpler check to create DEMO_DIR; Seperated X/Y sensitivity for mouse and joystick; Flush controls when Automap toggles so keypress won't deactivate it again; Made FrameCount in Demos aligned to the Dropframe condition; Added KEy to ttoggle playback text off; Gracefully exit demo code if demo is corrupt; Removed that new percent counter because many old demos seem to have corrupted last frames; Closing endlevel data file if IFF error so the mission still can be freed; Fixed Cruising for keyboard which was not aligned to FPS correctly; Used mouse delta scaling in kconfig.c instead of mouse.c to not screw up when delta is requested in non-ingame situations - it actually belongs to the controls IMHO; Now support up to 8 joysticks; Changed some leftover malloc's to d_malloc and free to d_free
|
2008-10-16 17:27:02 +00:00 |
|
zicodxx
|
f108f30ffd
|
Added new function to calculate common timesteps; Increased MAXIMUM_FPS to 200 for release and 1000 for debug; Used fixed sim_time for do_physics_sim and Interpolating to ensure collisions stay accurate at high FPS; New code and faster code for dot products by The_Lion; Disabled Nice-FPS and common Frame-Loop if VSync is active; More accurate delta timer for mouse (consider overhead); Added SDL_(Un)LockAudio for old SDL Audio interface; General support for up to 16 mouse buttons; Code cleanup; Made some AI movement and Player shaking FPS-independent
|
2008-09-30 00:07:07 +00:00 |
|
zicodxx
|
d457f9430d
|
Reworked timer_delay2() and calc_frame_time() to be more accurate and CPU-friendly; -nicefps replayced by -nonicefps to disable sleeping for calc_frame_time; Implemented VSync via SDL; Fixed compilation issues; Code cleanup
|
2008-04-21 18:39:49 +00:00 |
|
zicodxx
|
3a52d03d21
|
Added structure for values saved in PLR/PLX files; Added most common command-line options to options menu
|
2008-04-13 00:28:36 +00:00 |
|
zicodxx
|
44bbb66101
|
Implemented Console-style game logging system to print graphics, to stdout and gamelog.txt; Added structure to keep values for descent.cfg; Added aspect and Texture Filtering to descent.cfg; Removed mono code - printing important stuff over console; Removed some obsolete or very common defines; Code cleanup and small fixes
|
2008-04-06 20:23:28 +00:00 |
|
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
|
6479a897b2
|
Fixed some memory issues; Fixed some HUD element alignment; Only send NetDrv packets if NetDrvInstalled is true; Fixed demo glitches; Actually using Game_mode in demos to make Newdemo_game_mode hacking obsolete
|
2008-03-08 22:37:09 +00:00 |
|
zicodxx
|
10f39559bf
|
Fixed wrong font width spacing, -gl_prshot, mission loading, null-terminatinon in several menus, cockpit glitch; Improved gl_reticle, -noredundancy; Some code cleanup
|
2008-02-27 22:05:58 +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
|
f971a49958
|
Updated Docs - Data files mus bt lowercase; Fixed small Multiplayer issues
|
2008-01-24 22:26:43 +00:00 |
|
zicodxx
|
a5e460e66e
|
Correctly saving Reverse Stereo setting; Added Demo playback help keys; aligned Demo recording to 20 frames per second to save lots of hard drive space
|
2007-11-06 20:33:22 +00:00 |
|