Kp
|
a81afea7fe
|
Rename include/error.h to include/dxxerror.h
Avoid conflict with generic system header.
|
2012-07-07 18:35:06 +00:00 |
|
zicodxx
|
f4ab2e63af
|
Added dummy %s to prevent formatting untrusted literals - patch by Kp
|
2013-01-03 17:30:42 +01:00 |
|
zicodxx
|
7c5aaa29df
|
Redefined lotsa variables, functions and parameters as const and/or static - patch by Kp
|
2012-07-23 01:17:54 +02:00 |
|
Chris Taylor
|
8b8e5d2635
|
Call new obj_relink_all after playing a demo, so the editor is (hopefully) never faced with poorly linked objects and hence crashes
|
2012-04-17 17:15:09 +08:00 |
|
Chris Taylor
|
17bdf55a05
|
Call free_mission() if a demo is corrupt, so the editor doesn't load a corrupt level
|
2012-04-17 15:46:39 +08:00 |
|
Chris Taylor
|
aecfbbee23
|
Set object lifeleft to IMMORTAL_TIME if the byte read in demo playback is -1. This allows the objects to stay when playing a demo, going to the editor then playing the game from the editor
|
2012-04-17 15:36:23 +08:00 |
|
zicodxx
|
26bb1f6a34
|
Allow a total of 32 different player ship textures and stored N_PLAYER_SHIP_TEXTURES in player.h
|
2012-03-28 12:26:24 +02:00 |
|
zicodxx
|
aa8286c1d6
|
Fixed set but unused variables
|
2011-09-27 01:31:19 +02:00 |
|
zicodxx
|
236e1c97fc
|
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:36 +02:00 |
|
zicodxx
|
dd991fbf6b
|
Got rid of cfile code: Renamed cfile-functions to use PHYSFSX-naming convention, Replaced cfile-macros with proper PHYSFS(X) calls; Introduced PHYSFSX_exists() which can check case-sensitive or case-insensitive to give more flexibility with game content
|
2011-06-01 09:59:55 +02:00 |
|
zicodxx
|
8faed77f5f
|
Properly record the event of reset_rear_view() while switching levels to make it work right when rewinding as well; Properly record Countdown seconds for each newdemo frame instead of second change to get display showing up right while playback and still preserving backwards compability; Suspend Game_wind when playing endlevel movie while demo playback
|
2011-03-28 01:39:51 +02:00 |
|
zicodxx
|
fe84fa3a9a
|
Made GameTime to GameTime64 using fix64; Changed all structures saving GameTime64 for internal timer purposes to store fix64 and added converting functions to save such times in fix; For Savegames/Demos always reset GameTime64 to 0 while saving and putting all timer values to safe limits, Multiplayer objects are sent in similar fashion
|
2010-12-22 01:17:59 +01:00 |
|
Chris Taylor
|
846699a2e6
|
Fix errors for Mac OS 9, Mac OS X 'd2x' target builds again
|
2010-10-10 18:48:24 +08:00 |
|
kreatordxx
|
8172c34f7f
|
Link to PhysicsFS static library and use header from source for Mac OS X
|
2010-09-17 10:44:21 +00:00 |
|
zicodxx
|
6e39b9f25b
|
Using PHYSFSX_findFiles to make sure random demo playback will only find actual demo files and not quit autodemo; added DEMO_EXT for an universal definition of demo file extension
|
2010-09-02 13:58:06 +00:00 |
|
zicodxx
|
d99abc5afd
|
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
|
2c1045d4b5
|
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
|
8c19958db8
|
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
|
0ce37b89bb
|
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
|
c02ca51f4e
|
For starting demo, seperate hide_menus() and game_setup() since between this, demo must load the actual level and it's palette; Fixed small bug in interpolate_frame() causing interpolation happening in very first frame causing file read corruption
|
2010-06-20 20:32:30 +00:00 |
|
zicodxx
|
7fd13388fb
|
emoved PHYSFSX_getFreeDiskSpace and relying on success of buffered writing to see if demo recording must be stopped
|
2010-06-18 08:22:45 +00:00 |
|
kreatordxx
|
493b07e3da
|
Get rid of a heap of uses of Function_mode, quit properly (freeing all windows and asking for confirmation for game) when clicking close box
|
2010-04-04 01:31:48 +00:00 |
|
kreatordxx
|
13c192eb3f
|
Don't make another Game_wind when advancing a level, fixing failed asserts / slow turning
|
2010-02-08 05:34:43 +00:00 |
|
kreatordxx
|
afa0d75fb6
|
Create the main event loop and use it for the game and main menu
|
2010-02-07 04:34:21 +00:00 |
|
kreatordxx
|
9d7bce257c
|
Put the full_palette_save and palette_restore calls in the game handler for tidiness; remove leftover redundant digi_resume_digi_sounds calls
|
2010-02-05 02:31:36 +00:00 |
|
kreatordxx
|
5ac8cf2b2d
|
Send EVENT_KEY_COMMAND from key.c; add EVENT_NEWMENU_DRAW for state restore; place newmenu and listbox calls to callback so they can override ALL newmenu behaviour
|
2010-01-30 03:24:19 +00:00 |
|
zicodxx
|
1e6251a6ee
|
Resetting DemoDoLeft/Right correctly at start of each demo
|
2010-01-29 00:30:54 +00:00 |
|
zicodxx
|
61e67d9fe9
|
Improved Object signature assignment and made sure there will be no duplicates; Also used short-ranged values only so Demo system won't screw up
|
2010-01-28 15:26:27 +00:00 |
|
zicodxx
|
27b9a8c2a2
|
Added a new code to properly re-record view/cockpit-events at beginning and end of Demo recording so views will be fine if switched before recording started; Also added lost sequence to record Rear-view reset between levels; Last but not least, record wall tmaps in D1X-Rebirth so opened/blasted doors will be shown correctly if opened/blasted before recording; Everything done without breaking the Demo format
|
2010-01-28 01:08:36 +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 |
|
kreatordxx
|
3a116769be
|
Remove all uses of LeaveGame jmpbuf to allow more changing of main loop
|
2010-01-27 04:30:31 +00:00 |
|
zicodxx
|
422c745cfa
|
Once again improving Demo Interpolation code, regarding changes from rev993, reducing Viewport flicker and jitter
|
2010-01-26 12:04:50 +00:00 |
|
zicodxx
|
5eaf164d72
|
Removed the new Demo Interpolating code and added the improvements to the old one
|
2010-01-20 23:28:35 +00:00 |
|
kreatordxx
|
b6452e75b7
|
Change newmenu and listbox callback systems, adding use of d_event, for greater flexibility
|
2010-01-07 14:49:07 +00:00 |
|
zicodxx
|
7653e8ee12
|
New Interpolation method for demos and a small hack to fix this Interpolation if duplicate object signatures appear (mostly)
|
2010-01-07 00:01:36 +00:00 |
|
kreatordxx
|
19806aa7ec
|
Move newmenu_get_filename to menu.c, call it get_filename and have it use newmenu_listbox1; support long demo filenames
|
2009-12-08 11:01:36 +00:00 |
|
zicodxx
|
1603b87e40
|
Removing old use of variable already_showing_info which was removed from newmenu code
|
2009-12-07 15:00:49 +00:00 |
|
zicodxx
|
7449e5bac7
|
Removing old use of variable already_showing_info which was removed from newmenu code
|
2009-12-07 14:58:59 +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
|
00347f0bcb
|
Add endian converter for demos, read shareware demos, various bugfixes to demo system
|
2009-11-15 08:22:08 +00:00 |
|
kreatordxx
|
bf512bb9ec
|
Remove redundant conf.h directives
|
2009-04-30 13:01:31 +00:00 |
|
zicodxx
|
b3bf4813df
|
Abstracting networking protocols - Step 2: Introducing new structure to hold protocol-dependend and -independend information about Netgame and it's Players; Further isolation of the IPX code and renaming the netdrv_* code to ipxdrv_* as this is now actually IPX-only; Next up: Renaming network_* functions to net_ipx_*, writing wrappers for protocol dependend functions in multi.c, Implementing protocol selection and Cleanup
|
2009-03-20 12:10:38 +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
|
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
|
3531adace7
|
New condition to switch to Interpolated demo playback - the old one did NOT make ANY sense at all
|
2009-01-22 12:30:32 +00:00 |
|
kreatordxx
|
777f76aedf
|
Get Mac command keys working, MACINTOSH code cleanup, update Xcode project
|
2008-12-07 12:26:43 +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
|
6d35c8d91f
|
Fixed scores write (wasn't PhysFS); Fixed PLAYING_BUILTING_MISSION in D1X; Better call for DoJasonInterpolate in demo code (hopefully)
|
2008-06-14 23:29:39 +00:00 |
|
kreatordxx
|
a7d9bba643
|
get it to work for Mac OS 9
|
2008-04-24 14:27:54 +00:00 |
|