Commit graph

1521 commits

Author SHA1 Message Date
Kp c31f5e8d1f Remove unused StartNewLevel parameter 'secret_flag' 2013-03-23 20:50:35 +00:00
Kp e8390669f5 Rename old_matcen_info to reflect that it is the D1 matcen_info 2013-03-23 21:31:49 +00:00
Kp bbd182b113 Fix bogus optimization in robot maker paging
The optimization meant to skip materialization centers which had no
robots enabled, but had two bugs.  It tested for a NULL address instead
of inspecting the bits in robot_flags[0], which caused the test to
always succeed.  It also ignored robot_flags[1], so a materialization
center with only high end robots would be wrongly skipped.

Remove the test, since the loop is cheap and handles all cases
correctly.
2013-03-23 21:20:41 +00:00
Kp 1eac5d4f37 Always use int[] for matcen robot flags 2013-03-23 21:15:14 +00:00
Kp 58892f5c27 Add stubs to hide editor reactor differences from D1X 2013-03-23 20:03:11 +00:00
Kp b2da5385e2 Remove N_controlcen_guns cache
Get the counter directly from the relevant reactor model
2013-03-23 19:15:12 +00:00
Kp 8768441da9 Move reactor Gun_dir,Gun_pos into struct object 2013-03-23 19:09:44 +00:00
Kp 9036214d0b Remove unused main/desc_id.h 2013-03-22 03:03:21 +00:00
Kp 5019ce9514 Remove unused header files 2013-03-17 22:54:53 +00:00
Kp 3c317cf3e1 Restructure struct segment to align better 2013-03-16 02:54:33 +00:00
Kp 644f7ce9c2 Move segment2 back to segment
The structure already exceeds 512 bytes, so combine the two to make the
code look more like D1X.
2013-03-17 18:55:32 +00:00
Kp 75dff94ac0 Support versions of gcc < 4.6
GCC 4.6 accepts the earlier form without comment, but GCC 4.5 chokes on it.
2013-03-17 18:24:11 +00:00
Kp d732d505f6 Move prototype of which_bomb to weapon.h 2013-03-10 03:11:16 +00:00
Kp 68260da95b Remove unused editor/kgroup.c 2013-03-09 21:30:58 +00:00
Kp 3ff4726702 Remove unused arch/linux files 2013-03-09 20:29:20 +00:00
Kp 769abf99a1 Remove unused arch/include/gui.h 2013-03-09 20:29:20 +00:00
Kp 2a3524cd66 Move segment handling from editor.h 2013-03-16 03:10:55 +00:00
Kp 8ff1613c2a Remove various unused misc files 2013-03-10 00:17:59 +00:00
Kp b1b6310c1f Remove unused include/pa_enabl.h 2013-03-09 20:29:20 +00:00
Kp 20f5b8d5a9 Remove unused editor/macro.c 2013-03-09 21:30:58 +00:00
Kp 93fec3e081 Remove unused d2x-rebirth/ui/barbox.c 2013-03-09 21:30:58 +00:00
Kp dbe7272448 Remove unused include/descent.xpm 2013-03-09 21:30:58 +00:00
Kp bd5ed83680 Remove unused d2x-rebirth/ui/number.c 2013-03-09 21:30:58 +00:00
Kp 71f41f0636 Remove unused include/i86.h 2013-03-09 20:29:20 +00:00
Kp ec88046928 Remove unused include/d1x.xpm 2013-03-09 20:29:20 +00:00
Kp ea44bbf0c7 Remove unused include/checker.h 2013-03-09 20:29:20 +00:00
Kp d133a037b8 Remove unused 2d/scale.c 2013-03-09 20:29:20 +00:00
Kp f6410413b2 Remove unused function pcx_get_dimensions 2013-03-10 22:49:57 +00:00
Kp cf613c84ca Fix bug that last object is skipped when caching OGL textures 2012-12-08 21:57:29 +00:00
Kp 33c95b5134 Fix light save bug in large levels 2012-11-25 02:39:45 +00:00
Kp 2ef100dafd Fix automap save bug in large levels 2012-11-25 02:38:50 +00:00
Kp eac771f01e Fix ancient bug that read Segments[-2].verts during endlevel sequence 2012-12-09 04:02:34 +00:00
Kp 2e01c75e98 Fix wrong length passed to PHYSFSX_fgets 2012-07-15 18:42:41 +00:00
Kp a45411b31f Switch from C99 to Gnu99 to make editor build work 2013-03-09 22:11:54 +00:00
Kp 76296effd5 Remove unused file 2d/tmerge.c 2013-03-03 23:59:29 +00:00
Kp 06a5fa1407 Remove unused file misc/byteswap.c 2013-03-03 23:54:12 +00:00
Kp 9edfd78dcc Use #ifdef, not #if, to test WORDS_BIGENDIAN
On little endian machines, WORDS_BIGENDIAN is undefined, so testing
using #if triggers warning -Wundef.
2013-03-03 23:46:22 +00:00
Kp ac82280250 Remove unnecessary __pack__ on Arg 2013-03-03 22:46:50 +00:00
Kp b9d5e894b9 Reorder Descent II specific arguments to be together 2013-03-03 22:46:28 +00:00
Kp ae72cf6700 Remove unnecessary prototype of AppendIniArgs 2013-03-03 22:43:40 +00:00
Kp d6dba018c7 Remove -D_REENTRANT and instead pass -pthread
Pass -pthread to let gcc define threading, instead of using -D_REENTRANT
directly.
2013-03-03 22:24:12 +00:00
Kp 3fdb558ecb Move compiler flags out of SConstruct preprocessor line 2013-03-03 22:23:44 +00:00
Kp 5f7853fa57 Remove inferno.h include of pstypes.h
Also remove unused macros WIN and WINDOS.
2013-03-03 19:58:10 +00:00
Kp 8d39b2b7ae 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 a81afea7fe Rename include/error.h to include/dxxerror.h
Avoid conflict with generic system header.
2012-07-07 18:35:06 +00:00
Kp 5b82e04194 Add const markers to missed vecmat functions
This aligns the code with D1X-Rebirth.
2013-03-03 01:16:22 +00:00
Kp e87d5dba08 Remove unnecessary program-specific references in pstypes.h 2013-03-03 01:01:28 +00:00
Kp 22d38bcace Prepare for files to be in a subdirectory 2013-03-03 02:20:54 +00:00
Kp 66cf62e359 Normalize whitespace in copyright header to match D1X-Rebirth 2013-02-24 02:40:43 +00:00
Kp 67f433b3f1 Move register_program into subclass 2013-03-02 23:58:29 +00:00