Commit graph

230 commits

Author SHA1 Message Date
Kp d5657d7cf8 Remove unused include/tracker/tracker.h 2013-03-09 20:29:20 +00:00
Kp 847248f739 Remove unused header files 2013-03-22 03:04:00 +00:00
Kp 19b77c4e5c Support versions of gcc < 4.6
GCC 4.6 accepts the earlier form without comment, but GCC 4.5 chokes on it.
2013-03-22 03:04:00 +00:00
Kp fe7cf3bc1d Move segment handling from editor.h 2013-03-16 03:10:55 +00:00
Kp 07e436db5b Remove unused include/descent.xpm 2013-03-09 21:30:58 +00:00
Kp f16f2cf85a Remove unused include/i86.h 2013-03-09 20:29:20 +00:00
Kp 73779bc1fc Remove unused include/d1x.xpm 2013-03-09 20:29:20 +00:00
Kp cc1dfbab96 Remove unused include/checker.h 2013-03-09 20:29:20 +00:00
Kp ccc104dbb1 Push down inclusion "args.h" from physfsx.h into sources
This is not needed for the header, and makes the header non-common.
2013-03-03 19:41:09 +00:00
Kp f3562a1a38 Rename include/error.h to include/dxxerror.h
Avoid conflict with generic system header.
2012-07-07 18:35:06 +00:00
Kp 6ee5bbc03e Remove obsolete include/archinc.h 2013-03-03 17:50:54 +00:00
Kp d920420cf6 Remove unnecessary program-specific references in pstypes.h 2013-03-03 01:01:28 +00:00
Kp a4068234b4 Normalize whitespace in copyright header to match D2X-Rebirth 2013-02-24 02:39:48 +00:00
Kp 38c7b828b5 Remove DPMI support and BITMAP_SELECTOR 2013-02-25 02:01:24 +00:00
Kp 3edbfa2c90 Normalize comments and whitespace to match D2X 2013-02-25 02:00:02 +00:00
Kp c6155f63ce Remove RCS comment to synchronize code with D2X 2013-02-22 04:30:51 +00:00
Kp 7b2cbd5dc3 Normalize comments and whitespace to match D2X 2013-02-22 04:30:38 +00:00
zicodxx a43f7df8d0 Added option to hide mouse cursor (without disabling the mouse completely) 2013-01-08 17:47:02 +01:00
zicodxx 07f3bac4cd Removed redundant/obsolete declarations - patch by Kp 2013-01-03 16:54:46 +01:00
zicodxx f127189b89 Moved pow2ize declaration to ogl_init.h - patch by Kp 2013-01-03 16:17:54 +01:00
zicodxx bb17123c5b Move declaration of gr_rle_expand_scanline_generic() to rle.h - patch by Kp 2012-11-02 18:41:39 +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 503de276ac Renamed __format to __attribute_gcc_format due to possible C++ conflict; allow arguments - patch by Kp 2012-11-02 18:16:13 +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 bf2031071f Removed 'new' from prototypes; Declared ogl_do_palfx(), ogl_close_pixel_buffers(), ogl_init_pixel_buffers() in gr.h - patches by Kp 2012-11-02 17:51:21 +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 690a99c15d Compile out memory checker if not enabled - patch by Kp 2012-09-02 19:17:17 +02: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
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 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 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 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
zicodxx 2c9ee20981 using our own functions for stricmp, strnicmp, strlwr, strupr, strrev with a d_ prefix for all platforms for consistency 2012-05-19 01:36:41 +02:00
zicodxx 8967ae77fe 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:27 +02:00
zicodxx e3a21dce5e Fixed some non-critical compiler warnings; Now compiling with -std=c99 -pedantic and fixed warnings (except for editor build) caused by this 2012-05-14 12:20:27 +02:00
Chris Taylor 7b9f0f8d17 Rename MessageBox to ui_messagebox to avoid a conflict with Windows' MessageBox 2012-04-17 16:02:32 +08:00
Chris Taylor e1eaf7cc65 Clicking on mine elements in the editor now works in ogl 2012-04-15 13:43:41 +08:00
Chris Taylor 1e77cbdf30 Fix crash when loading a level in the editor 2012-04-14 13:28:30 +08: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 8a437a759c Get the clock, 'keypad' info, texture choosing page and object choosing page to draw (latter two just show black squares for ogl) 2012-04-09 10:12:58 +08: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
Chris Taylor 1237649a99 Make 2d/font.c more similar between d1x-rebirth and d2x-rebirth 2012-03-30 20:35:39 +08:00
Chris Taylor 8b757570d5 Update the canvas data pointers for all windows after changing the screen mode, so the main menu draws properly after leaving the editor 2012-03-24 14:43:08 +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 b94d8f127e Remove redundant ui_event_process and duplicate mouse.c in ui/. All editor input is now event-based. 2012-03-18 18:04:16 +08:00
Chris Taylor 6983a906a3 Make editor_handler into a proper callback, iron some problems out. Seems to draw a different bunch of stuff now (still erroneous) 2012-03-18 16:01:53 +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
Chris Taylor cdfd06bbd6 Use the gadget-sent events in the dialogs in ui 2012-03-05 19:07:57 +08:00