Commit graph

996 commits

Author SHA1 Message Date
Chris Taylor e1eaf7cc65 Clicking on mine elements in the editor now works in ogl 2012-04-15 13:43:41 +08:00
zicodxx 2a15431ec7 When possibly sending player positions prior to firing, do that before messing multibuf; Added more strict sanity checks for outgoing and incoming multi packets; Moved some general game stuff from net_udp_init() to multi_new_game() 2012-04-15 03:05:25 +02:00
Chris Taylor b80b863f49 Fix bugs switching between game and editor and back: make sure ModeFlag is set to 0 before it has any chance to show an alert message, fixing a crash; allow OBJ_NONE in Assert; make Game_wind invisible when loading editor in case we show an alert; call mouse_flush() in ui_init() to fix mouse issues 2012-04-14 17:41:50 +08:00
Chris Taylor ef6e5180db Delete-E while playing a level now works properly - it closes Game_wind and sets Cursegp if necessary when going to the editor 2012-04-14 15:06:12 +08:00
Chris Taylor 4c9ac01f4b Don't bother generating a game text file (.txm) every time a level is loaded, even if the EDITOR is compiled. Just when a level is saved 2012-04-14 14:22:18 +08:00
Chris Taylor 1e77cbdf30 Fix crash when loading a level in the editor 2012-04-14 13:28:30 +08:00
Chris Taylor 81cf0853f0 Fix crash when loading a level in the editor 2012-04-14 12:23:49 +08:00
zicodxx 2baf397a68 Removed redundant call of songs_stop_all() when starting credits; Added failsafe for loop in case MHDR_DONE flag is not properly set by MIDI device; Added more verbosity for hmp_reset() 2012-04-12 19:45:44 +02:00
zicodxx 9990b806a5 Fixed some Multiplayer bugs: Reactor invulnerable time did not checked for hours spent in level so reactor would become invulnerable again after 60 minutes; Fixed the fix (heh) for misordered explode/reappear packets; Reset Player_eggs_dropped when initializing new ship so eggs are properly dropped when player disconnects two times without respawning; Cleaned player disconnecting a little bit and made code more straightforward 2012-04-12 02:15:23 +02:00
Chris Taylor 7ef1431885 Editor exits cleanly when clicking the close box, no more redundant gr_uscanline call in gl_urect for ogl (an initial attempt to fix the previous bug) 2012-04-09 20:40:55 +08:00
Chris Taylor d9bc0a16ff No setting the screen mode when calling a newmenu function, so if it shows the 'Save Mine' messagebox in the editor, it won't change the screen resolution and trash everything. (If this causes problems, we can make it use the MessageBox if it's still in the editor, nm_messagebox otherwise) 2012-04-09 19:18:49 +08:00
zicodxx 999e008dc6 in software rendering scale savestate thumbnail to correct size 2012-04-09 00:19:11 +02:00
zicodxx 9825e264d5 plasma fire can ignite bombs which are dropped while firing. to compensate added a timed check where at least one projectile must be older than 200ms to trigger a possible collision. this fixes this issue if the player is moving away from the bomb 2012-04-08 16:59:50 +02:00
zicodxx ba75f1237e added specification for Descent: Destination Saturn briefing screen to properly show briefings; added different briefing structure for Descent 1 Shareware which has a slightly different order of the usual briefings 2012-04-08 15:47:50 +02:00
zicodxx d39d58a585 record shields if player is invulnerable to get proper shield display in demo playback if player respawns with invulnerability on 2012-04-07 16:13:10 +02:00
zicodxx 9ca56e4039 fixed glitch when reappear and explode packets are misordered, rendering player invisible 2012-04-07 12:32:22 +02:00
zicodxx abb2c08af3 made choose_drop_segment more similar to D2X-Rebirth and let fallback correctly check for reactor segment 2012-04-07 10:57:55 +02:00
zicodxx 4f8a60983e Introduced fixmul64 returning fix64 type to use with check_point_to_face() and prevent fix overflow with very large faces; on the way cleaned up NO_FIX_INLINE remnants and replaced QLONG with fix64 2012-04-05 02:41:56 +02:00
Chris Taylor 2d8c86eaf1 Make all drawing in the editor single buffered, since the whole screen is double buffered. Fixes crash - but only shows a black screen and the menu for ogl 2012-03-31 12:27:10 +08:00
zicodxx 0dae4f8206 Fixed Redbook playback which was not repeating the CD after finishing 2012-03-29 14:49:44 +02:00
zicodxx 1a76d33345 Immediately relay pdata packets from clients to others which should reduce artificial delay; allow sending of pdata packet when firing if enough time has passed since last update; only answer full game info requests 2 times per second and lite info 8 times per second 2012-03-29 10:15:58 +02:00
zicodxx aa257e0727 We might want to try compiling before committing something, right? 2012-03-28 21:47:13 +02:00
zicodxx 0e55ac91da Added forgotten D2 powerup capping code when starting level which hopefully fixes massive powerup loss 2012-03-28 21:45:40 +02:00
zicodxx 6251eb2eb0 Dynamically allocate line to read from descent.cfg and ensure a safe length 2012-03-28 13:43:31 +02:00
zicodxx 32ebfab29d Allow a total of 32 different player ship textures and stored N_PLAYER_SHIP_TEXTURES in player.h 2012-03-28 12:26:19 +02:00
zicodxx 4ddf79e16f Since the kicked message is shown after player is technically removed from the game we do not know hosts name anymore. Message changed accordingly 2012-03-28 12:09:19 +02:00
zicodxx d583415cfb in netgame info screen some setting-descriptions were interchanged and displayed wrong toggles 2012-03-28 12:02:15 +02:00
zicodxx 945d50ec76 Fixed double wall-object-damage introduced 20111124 by applying more strict rules to wall-colliding and wall-scraping where latter now is player-exclusive 2012-03-28 11:02:30 +02:00
zicodxx f4dfae832f properly disable cheats when loading a saved game so only cheats that were stored are re-enabled 2012-03-28 10:07:12 +02:00
zicodxx 766f48084c Allow .flac to be a filename extension for sng file and jukebox 2012-03-28 10:03:18 +02:00
zicodxx 3554fd442c Fix compile-time error when building without editor 2012-03-28 09:56:31 +02:00
Chris Taylor 05722dec97 Remove all remaining uses of Function_mode, checking for the existence of EditorWindow where necessary instead 2012-03-19 14:08:25 +08:00
Chris Taylor 15a6a81176 The editor now falls back to the main event loop in inferno.c, File->Exit now works as intended and get closer to making the editor and game work together 2012-03-19 13:48:35 +08:00
Chris Taylor f98753fa38 Do a bit of a tidy up for the editor, dump code from editor() within the loop into new editor_handler() 2012-03-18 12:11:55 +08:00
zicodxx af6caef756 Unbuffered writing of gamelog.txt has it's own argument and is not triggered by -verbose argument anymore; Also increases verbosity of packet-loss-prevented packets by showing their types when added to queue 2012-01-09 15:19:12 +01:00
zicodxx 1a89c345a8 Just as in Descent 2, let flares die in lava 2011-11-25 22:45:40 +01:00
zicodxx 49649ab697 calling scrape_object_on_wall in each case of HIT_WALL more reliable to properly do hazard surface damage and prevent weapon objects from possibly sliding against walls 2011-11-24 11:30:29 +01:00
zicodxx 84b60ab017 Smoothed disabling of friendly fire to re-enable splash damage possible when friendly fire is disabled 2011-11-24 11:04:43 +01:00
zicodxx 517bc77692 Sliders can now be operated with Numpad arrows if numlock if off 2011-11-14 22:14:52 +01:00
zicodxx 2b6a62a5b9 Do not attempt to check for MULTI_PROTO_VERSION when requesting lite_info 2011-11-03 14:26:43 +01:00
zicodxx 1371874e0d Introduced extra short based on MULTI_PROTO_VERSION for version-independent Multiplayer-compability-check; Changed version to 0.57.2 to make new version checking not cause problems with stable release 0.57.1; Removed old version_major/minor variables from netgame and player structures since DXX handles this independently; Cleaned up old version stuff and copyright messages 2011-11-02 01:04:38 +01:00
Chris Taylor 8e0579c4a6 Fix comparison is always false warning 2011-10-09 20:07:21 +08:00
Chris Taylor 5f87108ba4 Initialise dyn_light using memset, fixing a warning 2011-10-09 18:25:33 +08:00
zicodxx fb775b35c3 Fixed set but unused variables 2011-09-27 01:31:17 +02:00
zicodxx bcdbff0665 Avoided variable array initializations which some compilers do not like; Also made sure declarations happen first inside (sub)functions; Fixed set but unused variables 2011-09-26 23:00:23 +02:00
zicodxx aafc5ec877 Gave throttle it's own sensitivity and deadzone settings; Added patch by Hans de Goede to let Slide-On and Bank-On settings use invert settings from Slide- and Bank-axes 2011-09-26 20:22:35 +02:00
zicodxx c2b3c64314 Code consistency checks by _Tyr_; Fixed set but unused variables 2011-09-26 19:03:12 +02:00
zicodxx 22316fa5d6 Code consistency checks by _Tyr_; Fixed set but unused variables 2011-09-26 18:58:06 +02:00
zicodxx 80e69421d8 Fixed misuse of gr_bitblt_find_transparent_area() caused rear view to be shifted on some cockpits 2011-09-25 01:01:51 +02:00
zicodxx 0df7146226 Reworked wall_toggle() to work with index for segnum instead of a pointer, hopefully making the consistency check less error prone 2011-09-24 22:03:33 +02:00