Commit graph

5489 commits

Author SHA1 Message Date
Kp cbd341e8ee Remove unused !FADE_FLATPOLY code 2014-08-16 21:52:56 +00:00
Kp 1cd6277a3f Move interpreter OP_ constants to static const 2014-08-16 21:52:37 +00:00
Kp bd739041f8 Remove special case for SP homing missiles
The special case let robot homing missiles track players without a line
of sight and prevented player homing missiles from tracking robots out
of the player's sight.
2014-08-16 21:52:25 +00:00
Kp e9e02355cc Fix crash on exiting game 2014-08-16 18:32:24 +00:00
Kp 9483cc7280 Compact find_goal_texture, multi_apply_goal_textures 2014-08-16 18:16:59 +00:00
Kp 14532e2a32 Use helper functions for apply_light 2014-08-16 18:15:16 +00:00
Kp 353e22d314 Default construct g3s_codes to 0/ff 2014-08-16 18:14:11 +00:00
Kp 2a3176dc98 Use array<> for segment members 2014-08-16 18:14:00 +00:00
Kp bd1ca6bf4d Rewrite find_seg_side to be iterator based 2014-08-16 17:59:36 +00:00
Kp 4b04ccc1c2 Pass quadint to fixdivquadlongu 2014-08-16 17:44:26 +00:00
Kp 0ec8b6671f Use native int64 math for fixmulaccum 2014-08-16 17:43:56 +00:00
Kp ceeaadb940 Add native int64 to quadint struct 2014-08-16 17:42:34 +00:00
Kp 47d0ecee39 Use array<> for get_side_verts 2014-08-16 17:42:23 +00:00
Kp e1cdd44998 Remove unused return value for g3_check_and_draw_poly 2014-08-16 17:35:44 +00:00
Kp 913a095be7 Remove unused return value of g3_draw_tmap 2014-08-16 17:35:44 +00:00
Kp a42a403198 Remove unused return value of g3_draw_morphing_model 2014-08-16 17:35:44 +00:00
Kp 0228b067c1 Remove unused return value of g3_draw_polygon_model 2014-08-16 17:35:44 +00:00
Kp 38c55434e4 Remove Microsoft-specific #define inline
Microsoft compilers currently cannot compile Rebirth, but even if they
could, they now understand the standard keyword inline.
2014-08-16 17:34:09 +00:00
Kp afd26ccd75 Add VS2013 build files
This does not compile yet, but commit the files to save others the work
of creating the framework.

Known issues:
- Some editor-specific files do not find their headers due to missing
  AdditionalIncludeDirectories
- VS2013.2 picks incorrect variadic template overloads.  VS2013.3 might
  do better.
- VS2013.2 C preprocessor mishandles C99 __VA_ARGS__ usage
2014-08-16 17:02:21 +00:00
Kp d945a95d47 Use std::default_delete<Mission> for Mission_ptr 2014-08-16 04:22:01 +00:00
Kp 621f947241 Switch builtin_mission_filename to d_fname 2014-08-16 04:20:48 +00:00
Kp c85819ac94 Forbid d_free on non-POD 2014-08-16 04:18:58 +00:00
Kp b8ee7b23df Use std::swap in promote(mle) 2014-08-16 04:18:49 +00:00
Kp 4d4dbab52f Use std::swap to implement EXCHG 2014-08-16 04:18:41 +00:00
Kp 3ecaf15d58 Add braces to fix gcc 4.6 build 2014-08-14 02:34:15 +00:00
Kp 414cf3b29b Remove useless buddy rediscovery loop
Assume Buddy_objnum will be set right.
2014-08-14 02:03:27 +00:00
Kp bf8d29b348 Remove useless buddy bot checks
These are only hit after the condition is assumed true.
2014-08-13 22:17:38 +00:00
Kp 55063abade Use static_assert to reject invalid vvalptridx_t constants 2014-08-13 22:10:20 +00:00
Kp 8cd2cd216d Fix Player_num regression in multiplayer startup 2014-08-13 03:20:59 +00:00
Kp d6b81d2fe3 Deduce create_bfs_list max_segs 2014-08-13 03:19:13 +00:00
Kp c3086f0875 Split out boss action messages 2014-08-13 03:19:13 +00:00
Kp 9979302303 Change IS_CHILD to inline function 2014-08-13 03:19:12 +00:00
Kp 915b78b5e1 Add vvalptridx_t for always-valid valptridx values 2014-08-13 03:19:12 +00:00
Kp 125d9257be Use special type names for segment/object numbers 2014-08-13 02:57:12 +00:00
Kp 2764e3652a Propagate use of objptridx_t 2014-08-13 02:56:58 +00:00
Kp 81c6f27f44 Change point_seg::segnum to short 2014-08-13 02:56:58 +00:00
Kp ec541f0cf2 Compact validate_modified_segments 2014-08-12 03:09:32 +00:00
Kp 276d70d4c9 Move find_connect_side validation into find_seg_side 2014-08-12 03:08:39 +00:00
Kp 3bc5d4ad23 Use std::accumulate for compute_seg_dynamic_light 2014-08-12 03:06:53 +00:00
Kp f492b736dd Use range_for to iterate segment codes 2014-08-12 03:01:43 +00:00
Kp bfda4c554e Inline med_get_vertex_list 2014-08-12 03:01:14 +00:00
Kp 31fe0dc9ce Reduce code duplication in !OGL g3_draw_bitmap 2014-08-12 03:01:05 +00:00
Kp bc721dbc8f Remove unused g3_draw_rod_tmap return value 2014-08-12 02:58:46 +00:00
Kp 2ae57a8529 Use array<> for find_joining_side_norms edge_verts 2014-08-12 02:58:08 +00:00
Kp b5693e65e0 Remove serial detail class_type_indirection 2014-08-12 02:56:59 +00:00
Kp 7888c13b6b Write point_seg carefully 2014-08-12 02:55:23 +00:00
Kp ecd0ff1557 Check whether C++ linker works 2014-08-12 02:31:31 +00:00
Kp cec32ce3f5 Move render state arrays onto stack 2014-08-12 02:28:03 +00:00
Kp 0ae2345cf4 Remove unnecessary throw
On error, partial_range will throw.
2014-08-09 21:22:25 +00:00
Kp 903258f54b Make valptridx constructors ready for constexpr
Wait on constexpr marking since array in <gcc-4.8 is not constexpr.
2014-08-09 17:38:45 +00:00