kreatordxx
|
98cf9b90ca
|
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
|
842af496ca
|
Added event_flush to take place in game_flush_inputs which will clean SDL events which may be buffered while event_process was suspended; suspend Game_Wind while loading restoring save state while playing a level to properly flush controls and reset timer; when toggeling cursor, also directly modify the mouse to wanted behaviour instead of waiting for mouse_update_cursor_and_grab
|
2010-07-30 17:59:21 +00:00 |
|
zicodxx
|
8c93390f4b
|
Fix for last commit - forgot to add libs recognized by sdl-config
|
2010-07-30 12:10:28 +00:00 |
|
zicodxx
|
cd13732735
|
restricted parsing of sdl-config to *NIX and Mac builds as it's static on Win32 anyways; added verbosebuild as SCons option to print out all compiler/linker messages
|
2010-07-30 07:34:33 +00:00 |
|
zicodxx
|
6af139181b
|
Using rather sane values for gluPerspective - fixing Z-Fighting bugs on Intel chips; in Fullscreen toggle, always apply new viewing values independent of Screen_mode
|
2010-07-29 20:19:52 +00:00 |
|
kreatordxx
|
3dd7a7a627
|
Tidy up use of set_screen_mode
|
2010-07-29 08:30:46 +00:00 |
|
zicodxx
|
4a0d15fbcd
|
One more take on Mouse cursor friendliness: Merged mouse_toggle_cursor and mouse_toggle_grab; instead of trying to use SDL_GetAppState (which does not work as expected on Windows) to release mouse, use strict calls of mouse_toggle_cursor so we at least have a free mouse outside of Game_wind and Automap; decreased time to automatically hide cursor; added mouse_close to release mouse in case of emergency
|
2010-07-28 17:27:35 +00:00 |
|
zicodxx
|
60e93e4deb
|
Moved digi_set_digi_volume call from config loading to designated audio subsystem init function so it will be correctly set after the sound system is auctionlly initialized
|
2010-07-27 20:42:54 +00:00 |
|
zicodxx
|
f146a6b321
|
Fixing bug in MIDI header - format was written in size of int instead of short
|
2010-07-27 20:16:39 +00:00 |
|
zicodxx
|
4f5d6ea605
|
Fixing automatic mouse release function - still this does not seem to work in every case
|
2010-07-27 19:42:28 +00:00 |
|
kreatordxx
|
9e4b8db5f6
|
Show stars background for died in mine and secret level messageboxes; equalise fuelcen.h and cntrlcen.h
|
2010-07-27 11:41:43 +00:00 |
|
zicodxx
|
7acab7150c
|
Overhauling showing/grabbing cursor and also taking care of case if program looses focus; store old_delta_x/y in mouse info structure
|
2010-07-26 18:10:21 +00:00 |
|
kreatordxx
|
ee4f37903b
|
Fix crash caused by last commit (whoops)
|
2010-07-25 02:43:22 +00:00 |
|
kreatordxx
|
9f9e35689e
|
For menus, only call the user function for closing immediately before closing, fixing memory errors when the user function frees memory
|
2010-07-25 02:30:53 +00:00 |
|
kreatordxx
|
c7f5e7abd4
|
Actually commit d1x-rebirth/main/inferno.h
|
2010-07-25 01:25:19 +00:00 |
|
kreatordxx
|
d1dda5386e
|
Rewrite quit system, fixing *many* bugs with it :P
|
2010-07-25 01:22:44 +00:00 |
|
kreatordxx
|
5a66d422bd
|
Exit SDL_PollEvent early if window changes, to avoid menu problems when pressing keys fast; fix 'condition is always false' warning
|
2010-07-25 00:49:33 +00:00 |
|
zicodxx
|
b41faef1d3
|
Fixing crash when joinging game over UDP Netlist: when exiting the menu for any reason, return 0 instead of following the code and possibly lead to drawing text from a newly free'd pointer - D'OH
|
2010-07-21 16:58:38 +00:00 |
|
zicodxx
|
5c2fdc5063
|
Thanks to Marix for hinting me I should not init a pointer with quotes if I plan to allocate/free it... my stupid-level officially broke the record
|
2010-07-20 18:38:29 +00:00 |
|
zicodxx
|
764798b732
|
Removed redundant Winsock calls from Windows-specific IPX code - it's already in net_ipx.c
|
2010-07-19 18:28:33 +00:00 |
|
zicodxx
|
1c6c1b3a9d
|
Fixing some harmless compiler warnings caused by missing includes, missing newlines at end of file; cleaned up strutil.h
|
2010-07-19 18:17:08 +00:00 |
|
zicodxx
|
10c8ace1a2
|
In briefings make sure Current_color cannot exceed possible array bounds
|
2010-07-19 17:30:25 +00:00 |
|
zicodxx
|
bc775b1331
|
Introduced state_quick_item so we can safly check if there is a valid quicksave slot wihtout messing around with state_Default_item which is supposed to always show a valid slot in the first place
|
2010-07-19 17:07:12 +00:00 |
|
zicodxx
|
785fffca90
|
Did not close hmp after MIDI conversion which caused some unfree memory - fixed
|
2010-07-19 17:05:41 +00:00 |
|
zicodxx
|
9070771c47
|
Merged all HMP-related code into hmp.c/h; Also introduced new HMP to MIDI conversion functions based on JJFFE which use former Win32-related HMP-code - fixes some bugs in MIDI conversion and cleaner
|
2010-07-18 20:28:15 +00:00 |
|
zicodxx
|
c2603a0b49
|
For normal digital audio (11/22Khz) use buffer of 1024 for all platforms to prevent delay
|
2010-07-17 13:07:23 +00:00 |
|
zicodxx
|
23660d8040
|
Implenented POBOYS cheat as equivalent to D2's DELSHIFTB
|
2010-07-17 12:08:45 +00:00 |
|
zicodxx
|
4fdbda1689
|
Instead of screwing by possibly using negative array indicies in find_seg_side() return -1. In ordering segments make this result in unimportant order; Taking in some Asserts which were disabled years ago by me. Let's fix this for real when we get to it
|
2010-07-17 11:57:07 +00:00 |
|
zicodxx
|
81baeaeaa4
|
Removed OGL hack to fix overlapping room in D1 lvl19 and rather move vertex a little. Still a hack but now without messing Depth test
|
2010-07-17 11:19:29 +00:00 |
|
zicodxx
|
06cf80ab18
|
If newdemo_start_playback fails if random file is given set -autodemo to 0 to prevent endless loop
|
2010-07-16 13:03:12 +00:00 |
|
zicodxx
|
ac840f306b
|
Only use one single call of timer_get_fixed_seconds() for whole SDL event loop; Abstracted grabbing mouse and mouse cursor toogle to mouse functions instead of calling SDL functions inside of non-arch code; Automatically hide mouse cursor if it's not used for more than 3 seconds; Reworked placement of mouse grabbing toggle; Do not read any mouse input if -nomouse is given
|
2010-07-16 11:07:42 +00:00 |
|
zicodxx
|
4b407c62b8
|
Fixing showing options menu in demos - was still called (or rather not) by obsolete variable
|
2010-07-16 06:27:49 +00:00 |
|
kreatordxx
|
8c23459d9e
|
Make sure the right canvas is set for titles and briefings, fixing bug where briefing is shown in the cockpit when using 'freespace' cheat
|
2010-07-15 09:45:25 +00:00 |
|
zicodxx
|
9596e0fcf8
|
Scale tab stops in briefings to font-size correctly
|
2010-07-15 09:22:33 +00:00 |
|
zicodxx
|
2d739a2c46
|
Cleaned the variables used for newdemo code; Instead of giving both old and new values to special recording functions, added new variables to demo code serving this purpose and also checking for redundant record calls which only would waste bytes; Removed duplicated-object-id-hack which did not work as expected and caused jittering on playback; In that process, found a bug where Num_open_doors might nor be set correctly - cleaned that up a little and got also rid of one aweful goto; Made sure cloaked walls are recorded FPS-independent but rather fade-value-dependent
|
2010-07-15 06:09:23 +00:00 |
|
zicodxx
|
2cb3bac259
|
Cleaned the variables used for newdemo code; Instead of giving both old and new values to special recording functions, added new variables to demo code serving this purpose and also checking for redundant record calls which only would waste bytes; Removed duplicated-object-id-hack which did not work as expected and caused jittering on playback; In that process, found a bug where Num_open_doors might nor be set correctly - cleaned that up a little and got also rid of one aweful goto; Made sure cloaked walls are recorded FPS-independent but rather fade-value-dependent
|
2010-07-15 05:40:25 +00:00 |
|
zicodxx
|
280b635dbe
|
Addition for last revision - just screwed up my working copies
|
2010-07-13 06:45:15 +00:00 |
|
zicodxx
|
9933bb81ce
|
Added expandable classes for HUD messages (like D1X but slacked) to better handle Multi messages or redundant messages; Rewrote HUD code completely; Changes -playermessages to -multimessages since this is more appropriate; Removed remnants of -mprofile
|
2010-07-13 06:35:25 +00:00 |
|
zicodxx
|
47770df6ca
|
Fix for last revision - did not compile correctly
|
2010-07-09 13:47:11 +00:00 |
|
zicodxx
|
a8111d203d
|
Trying to improve reliability to find appropriate homing object by using vm_vec_mag/normalize instead of their *quick equivalents; Removed code which supposedly meant to track objects near reticle - don't like that
|
2010-07-09 07:58:48 +00:00 |
|
zicodxx
|
152ed8ea60
|
When reading mission file, check for sanity of possible breifing or ending to make sure author did not just screw up the file; Fixed slight bug when playing ending briefings from secret levels
|
2010-07-08 22:20:39 +00:00 |
|
zicodxx
|
52b57dbd31
|
When reading mission file, check for sanity of possible breifing or ending to make sure author did not just screw up the file; Fixed slight bug when playing ending briefings from secret levels
|
2010-07-08 22:12:53 +00:00 |
|
zicodxx
|
a792b3a197
|
Fixing typo
|
2010-07-08 10:59:51 +00:00 |
|
zicodxx
|
5c077028da
|
Also send event KEY_COMMAND if there's somethig in our Unicode buffer since not every Unicode key corresponds to a keysym on every layout
|
2010-07-08 10:55:20 +00:00 |
|
zicodxx
|
9dbd8ad144
|
Improved hanlding for closing sockets - doing via closing of Game_wind when available or in specific multi menus; Also handling GM_GAME_OVER setting over Game_wind closing as well if apprpriate - cleaner and helps to cleanup multi when mission is over
|
2010-07-08 09:35:59 +00:00 |
|
zicodxx
|
4c63f57aac
|
Reworked handling of Netlist now also showing full game info; Prevent Clients from sending lite_info; Make lite_info show numconnected instead of numplayers as this would show disconnected ones as well; Removed reusing ports on different instances in Windows build - only screws up several games running on one machine
|
2010-07-08 06:37:23 +00:00 |
|
zicodxx
|
ee3856285d
|
Fixing building on Windows if SDL_Mixer is not a target
|
2010-07-05 12:14:49 +00:00 |
|
zicodxx
|
c209b4c319
|
Reducing sending objects per frame from 20 to 1 again to reduce possibility of timeout on stressed systems
|
2010-07-05 12:12:12 +00:00 |
|
zicodxx
|
d15778e03c
|
When selecting coop game mode, make sure that besides max players menu values also actual player number is set and menu text is updated properly
|
2010-07-05 08:05:32 +00:00 |
|
zicodxx
|
a7497054c3
|
Addition for rev1152: After setting mouse button, reset mouse state properly
|
2010-07-05 07:53:38 +00:00 |
|