Commit graph

1080 commits

Author SHA1 Message Date
zicodxx a43f7df8d0 Added option to hide mouse cursor (without disabling the mouse completely) 2013-01-08 17:47:02 +01:00
zicodxx a55dd5e69b Disable fullscreen toggling via ALT+ENTER if Game_wind is on top so toggling cannot be done accidentially ingame 2013-01-08 17:29:26 +01:00
zicodxx 174b7c92d2 Added default keys for weapon cycling similar to Descent 2 and reverted default reverse key to Z as default as more convinient for the QUERTY keyboard layout 2013-01-08 12:17:16 +01:00
zicodxx 8de1f981cf Defer free of kmatrix data until window is fully gone - patch by Kp 2013-01-08 12:08:12 +01:00
zicodxx cd86e2b8c2 Fixed some minor HUD-text related issues: For team assignment messages, joining player name would appear; team color assignment in netgame info screen could be wrong due to wrong syntax handling; when rewrapping text messages to specific player, game would not add space behind colon 2013-01-08 11:42:07 +01:00
zicodxx 97c86f2b5e Removed obsolete HUD cleaning code - patch by Kp 2013-01-03 17:32:58 +01:00
zicodxx 1ba045abe5 Added dummy %s to prevent formatting untrusted literals - patch by Kp 2013-01-03 17:29:57 +01:00
zicodxx b5b72b3ae3 Converted gr_printf to gr_string where needed - patch by Kp 2013-01-03 17:23:09 +01:00
zicodxx ee7325e114 Moved screenshot message formating to HUD_init_message - patch by Kp (and me for non-OGL code ;)) 2013-01-03 17:10:47 +01:00
zicodxx 947abe1efb Fixed argument specifier mismatches flagged by -Wformat - patch by Kp 2013-01-03 17:04:34 +01:00
zicodxx 7549ee8c51 Moved large control_info arrays to end - patch by Kp 2013-01-03 16:57:12 +01:00
zicodxx 07f3bac4cd Removed redundant/obsolete declarations - patch by Kp 2013-01-03 16:54:46 +01:00
zicodxx 1e4e463394 Declared wall_close_door_num in wall.h; Declared validate_segment_side in gameseg.h - patches by Kp 2013-01-03 16:44:52 +01:00
zicodxx 6f72e2846c Moved multi_* declarations to multi.h - patch by Kp 2013-01-03 16:33:40 +01:00
zicodxx 6b949ddff9 Moved remove_char declaration to piggy.h - patch by Kp 2013-01-03 16:24:46 +01:00
zicodxx 8d35d2219c Centralized UDP Broadcast function for IPv4 and IPv6 calls - patch by Kp 2013-01-03 16:08:38 +01:00
zicodxx 38e847828e Moved vers_id.h inclusion to where it is needed - patch by Kp 2012-11-02 18:35:55 +01:00
zicodxx 330c9f8f38 Marked con_printf fmt as const, Increased console lines from 512 to 2048; Marked console private entries as static - patches by Kp 2012-11-02 18:24:11 +01:00
zicodxx 6f35fbf015 use struct type explicitly - patch by Kp 2012-11-02 18:12:57 +01:00
zicodxx 42b34abd7d in g3s_codes renamed or,and to uor,uand - patch by Kp 2012-11-02 18:09:03 +01:00
zicodxx 2f34c3d7fd Moved ui_draw_frame(), ui_draw_shad(), draw_tmap_flat(), math tables externs to headers - patches by Kp 2012-11-02 18:02:41 +01:00
zicodxx faf6f11848 Made key_properties readable in other files; Eliminated key_text variable; Marked unicode_frame_buffer as extern in header - patches by Kp 2012-11-02 17:41:33 +01:00
zicodxx c5dbc6593c Fixed inconsistency in hostage_rescue() definition and revoked recent patch for u_mem.h due to infinite loops in mem.c caused by this 2012-10-31 16:26:45 +01:00
zicodxx bebc52031e Avoid some unnecessary strlen's 2012-09-03 00:43:52 +02:00
zicodxx 0df40b1e77 Use enum for object types, powerup types, weapon types 2012-09-02 00:23:38 +02:00
zicodxx fcc578c1a8 Removed Assert in create_smart_children() which has been taken from D2X code but does not apply for D1X and only will let the Assert fail 2012-09-01 23:47:05 +02:00
zicodxx b0df198dc9 Fixed incorrect patch merge introduced in the last commit 2012-09-01 23:24:00 +02:00
zicodxx 495333522d Some Sconstruct lovin': Respect LDFLAGS; Made D1XMAJORi/MINORi/MICROi compile time constants; Do not pass CFLAGS to CXX; Mark some more warnings as errors - patches by Kp 2012-07-28 01:41:30 +02:00
Chris Taylor 4b44e08b6c Don't draw objects with a modelnum of -1, improving stability when a third party mission is played with shareware data 2012-07-24 17:42:51 +08:00
Chris Taylor b9e16185a3 Fix warnings (add d_splitpath prototype, no checking ubyte 'id' is < 0, fix say_totals prototype, include d_strdup prototype for radio.c and make sure that 'text' gets freed) 2012-07-24 17:29:43 +08:00
Chris Taylor 50070ba165 No calling piggy_dump_all() when EDITOR is defined, it causes a failed Assert and causes it to exit when the PC Shareware descent.pig is used 2012-07-24 16:23:43 +08:00
zicodxx 33bf139002 Redefined lotsa variables, functions and parameters as const and/or static - patch by Kp 2012-07-23 01:17:52 +02:00
zicodxx 63fe8ddc37 Introduced INITIAL_ENERGY and INITIAL_SHIELDS defines from d2x and on that way added handicap feature for multiplayer as well; incremented multi proto version 2012-06-18 01:45:17 +02:00
zicodxx effc8c3fc4 removed temp_string buffer for ingame message inputs preventing the string from being messed up if containing special characters 2012-06-18 01:26:49 +02:00
zicodxx c8d428913e added songs_play_file() to play any song depending on filename-extension as a more streamlined approach to handle all different kinds of formats; also used for jukebox to make it independent from SDL_mixer; cleaned up supported filename extenstions 2012-06-10 14:02:40 +02:00
zicodxx decbf0cdbd Switching keyboard sensitivity function from variable increase to variable offset, making the ship more responsive in higher settings 2012-06-08 12:22:42 +02:00
zicodxx fc421b290a use size of output buffer for snprintf; on the way changed rebirth-specific song file to dxx-r.sng to respect hog 8+3 file convention 2012-06-01 12:46:00 +02:00
zicodxx 091623d196 Introduced sensitivity sliders for keyboard which cause movement increase the longer the designated key is pressed 2012-06-01 11:53:53 +02:00
zicodxx 147f34dddb Removed Laser_offset hack 2012-05-28 00:14:49 +02:00
zicodxx fc10a7e65b removed weapon_rate_scale() which should be obsolete due to other optimizations in network code 2012-05-27 15:04:42 +02:00
zicodxx c23e75a79d Removed remnants of the old and obsolete VR implementation 2012-05-27 00:24:55 +02:00
zicodxx 847d1515cc fixed possible buffer overflow in load_screen_text() 2012-05-26 19:39:10 +02:00
zicodxx 1d68e2d3ba Optimization for quaternion structure: Stuffed orientation in shorts and removed figure out segnum by position - saving 10 bytes for each positional update in Multiplayer; Also removed render_type from pdata to save yet another byte 2012-05-26 17:53:05 +02:00
zicodxx 46f4a9e285 Fixed one more copy/paste issue causeing positional updates relayed to possibly disconnected players 2012-05-26 14:09:00 +02:00
zicodxx 98f6ac2204 Fit player/player collisions to not take damage from bump while remote player has possibly not aligned to the collision, yet; Added FORCE_DAMAGE_THRESHOLD for minimum force damage to receive from object bumps to not simply take damage from touching objects 2012-05-26 13:28:43 +02:00
zicodxx 4cfc516d56 Cancel out do_controlcen_dead_frame() when not playing and only check triggers for playing players for further host-authority stuff; Made GameProcessFrame not cause endless loop by closing kmatrix over and over again due to game_leave_menus(); Also only close menus when level ends and when we die only the automap will close - otherwise menus can stay (user request) 2012-05-25 12:14:22 +02:00
zicodxx a9c07f81e7 in StartLevel() only call disable_matcens() and clear_transient_objects() in Singleplayer to keep consistency with remote clients 2012-05-24 12:46:33 +02:00
zicodxx d4dfd1fb40 Introduced quaternion functions to replace vector matrix where size matters - created by Florian Feucht; Added option for pdata packets based on quaternion in Multiplayer game; Removed PF_LEVELLING from new player objects to prevent jittering in player banking 2012-05-21 17:06:47 +02:00
zicodxx 5d6f4222d7 now properly initialize all other parts of the new/old player object when restoring a coop savestate 2012-05-21 10:32:33 +02:00
zicodxx d58e6fc38f using our own functions for strdup and _splitpath with the d_ prefix for all platforms for consistency 2012-05-19 02:16:40 +02:00