Kp
fea751bc62
Use std::string for mission path
2014-08-24 17:45:30 +00:00
Kp
0e211ebe32
Use vector<> for mle[]
2014-08-24 17:41:02 +00:00
Kp
ff1ce23d76
Initialize mission->filename consistently
2014-08-24 17:03:52 +00:00
Kp
3f3c3f8a33
Remove useless second sort of mission list
2014-08-24 03:46:18 +00:00
Kp
8d835f8e34
Reduce inclusion of compiler-begin.h
2014-08-24 03:36:35 +00:00
Kp
b95759aecc
Propagate use of objptridx
2014-08-23 23:53:56 +00:00
Kp
6a475c7d0e
Use common definition for remove_char
2014-08-23 16:27:28 +00:00
Kp
eefdce5b04
Reduce nesting of vms_vector::{x,y,z}
2014-08-22 02:27:13 +00:00
Kp
fc30079c0b
Remove use of vms_vector_array in check_point_to_face
2014-08-22 02:26:51 +00:00
Kp
39d29e17fa
Use pointer-to-member access in find_hitpoint_uv
2014-08-22 02:22:10 +00:00
Kp
f0c927babd
Fix !OGL build break from gr_fade_table array change
2014-08-20 02:15:23 +00:00
Kp
983a355d6f
Clean up vobjptridx_t handling in multibot
2014-08-20 02:14:29 +00:00
Kp
388405d04a
Use std::swap instead of inline swap
2014-08-20 01:50:40 +00:00
Kp
c102a507df
Move render Rotated_last into g3s_point p3_pad
2014-08-20 01:28:22 +00:00
Kp
cd9987968c
Fix bogus memory leak warning in digi_mixer.cpp
...
u_mem runs too early. Move the memory outside its view and rely on
Valgrind.
2014-08-20 01:28:12 +00:00
Kp
6629a928bc
Fix end-of-record check in config LastPlayer
2014-08-19 02:47:26 +00:00
zico
ee828c9b15
Removed conditional handling of collision point calculation from check_vector_to_sphere_1 due to testing showing too many problems which could not be solved without drastic changes. Calculate valid collision point in collide.cpp if necessary (CED, you were right :))
2014-08-18 12:09:54 +02:00
zico
cc2f1cb040
Have objects with PF_PERSISTENT (never supposed to stop) flag also trigger original condition in check_vector_to_sphere_1
2014-08-18 10:48:02 +02:00
Kp
ce8165fc6c
Add u_mem.h to mem.cpp to fix memdebug=1 build
2014-08-18 03:00:50 +00:00
Kp
778d399fc1
Fix render build failure for +debug no-editor
2014-08-18 00:11:51 +00:00
zico
d2b0a4d02d
Fixed incorrect/missing calculation of collision point in check_vector_to_sphere_1 and added special check in check_vector_to_object to only apply for certain objects; Removed extrapolation of physics as it would unintentionally cause premature collisions (requires further fixing of do_physics_sim and do_physics_sim_rot to properly scale to FrameTime)
2014-08-17 23:57:56 +02:00
Kp
66cb80c343
Propagate use of objptridx
2014-08-17 20:31:18 +00:00
Kp
001c0b6f51
Fix crash on failure to create mine exit explosion
2014-08-17 19:33:43 +00:00
Kp
56557a0443
Explicitly delete vvalptridx(valptridx&&)
2014-08-17 19:32:16 +00:00
Kp
83c6b60123
Use array<> for textures_list
2014-08-16 22:18:14 +00:00
Kp
99f1777983
Move point_list onto interpreter stack
2014-08-16 22:18:09 +00:00
Kp
dfb7026724
Only set canvas color if it is used
2014-08-16 21:58:37 +00:00
Kp
1d16377d48
Change isyou to your_index and promote it out a layer
...
There is only ever one record for which isyou is true.
2014-08-16 21:56:46 +00:00
Kp
4b7c823f2f
Remove write-only variable morph_uvls
2014-08-16 21:56:18 +00:00
Kp
d74e36507c
Propagate NULL arguments to g3_check_and_draw_poly
2014-08-16 21:54:48 +00:00
Kp
22a34809ee
Move interpreter g3s_lrgb onto stack
...
MAX_POINTS_PER_POLY is 25, so storing lrgb on the stack fits easily and
saves memory allocation/deallocation.
2014-08-16 21:53:29 +00:00
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
47d0ecee39
Use array<> for get_side_verts
2014-08-16 17:42:23 +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
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
b8ee7b23df
Use std::swap in promote(mle)
2014-08-16 04:18:49 +00:00
Kp
3ecaf15d58
Add braces to fix gcc 4.6 build
2014-08-14 02:34:15 +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
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
2ae57a8529
Use array<> for find_joining_side_norms edge_verts
2014-08-12 02:58:08 +00:00
Kp
7888c13b6b
Write point_seg carefully
2014-08-12 02:55:23 +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
d0db98fe01
Use array<> for netgame_info members
2014-08-09 16:43:55 +00:00
Kp
125218aa5a
Fix partial_range exception sending game information
...
Netgame.players is [MAX_PLAYERS], not [MAX_PLAYERS+4].
2014-08-09 04:14:54 +00:00
Kp
c2fb6c728f
Fix D1 homing weapon regression
...
01f1553
intended to make D1 not treat proximity mines as chaff.
Instead, it removed the test for whether the object was an acceptable
type. As a result, all homing weapons lock onto the nearest
non-excluded object of any type, which is the homing weapon itself. It
then flies in a straight line trying to catch itself.
2014-08-08 03:06:31 +00:00
Kp
79d2c968a3
Use array<> for Players
2014-08-08 03:02:59 +00:00
Kp
597a55558f
Use array<> for Segment_points
2014-08-08 03:02:43 +00:00
Kp
c8af6bba86
Throw on invalid homing_flag
2014-08-08 03:02:32 +00:00
Kp
9308162c80
Make alloc_vert/free_vert static
2014-08-08 03:02:24 +00:00
Kp
4029de77b0
Fix array underrun in redraw_messagestream
2014-08-08 02:54:50 +00:00
Kp
cb352968b8
Fix !OGL build in gr_internal_color_string
2014-08-08 02:52:56 +00:00
Kp
52527e48ee
Optimize out unused g3_set_special_render arguments
2014-08-08 02:52:35 +00:00
Kp
4ec010ec75
Pack render side edges
2014-08-08 02:51:31 +00:00
Kp
1c064b8efb
Remove unused find_hitpoint_uv l parameter
2014-08-08 02:51:02 +00:00
Kp
b276590998
Change gr_fade_table to array<array<>>
2014-08-08 02:50:27 +00:00
Kp
f47aa29cd9
Use color_t for color values
2014-08-08 02:07:47 +00:00
Kp
50f74d8216
Use remove_if to clean up junk point_seg
2014-08-08 02:06:38 +00:00
Kp
019c8dc342
Use unique_ptr for automap->edges
2014-08-07 03:17:37 +00:00
Kp
8d727b31b1
Use unique_ptr for automap->drawingListBright
2014-08-07 03:12:02 +00:00
Kp
1560dd43e1
Use unique_ptr for font->ft_bitmaps
2014-08-07 03:09:28 +00:00
Kp
fd6a7c218e
Use unique_ptr for font->ft_chars
2014-08-07 03:05:48 +00:00
Kp
4acbb40ad7
Use enum for window event result
2014-08-07 02:47:48 +00:00
Kp
553f17a3be
Initialize MarkerObject properly
2014-08-05 03:10:04 +00:00
Kp
16d45909b4
Use unique_ptr for OGL texbuf
2014-08-05 02:33:10 +00:00
Kp
11c22409ad
Use unique_ptr for circle_array_init_2
2014-08-05 02:32:55 +00:00
Kp
be86e384b8
Use unique_ptr for circle_array_init
2014-08-05 02:32:35 +00:00
Kp
81cb86f2e3
Use unique_ptr for hmp_file
2014-08-05 02:29:43 +00:00
Kp
e30af52b91
Improve collision detection switch
2014-08-04 03:07:06 +00:00
Kp
ea8fbe5d7b
Use object helper to iterate in render_segment
2014-08-03 03:17:34 +00:00
Kp
2246761818
Use object helper to iterate in paging_touch_segment
2014-08-03 03:17:34 +00:00
Kp
4702727a2f
Use object helper to iterate in powerup_grab_cheat_all
2014-08-03 03:17:34 +00:00
Kp
e9c5a64c7e
Use object helper to iterate in fvi
2014-08-03 03:17:34 +00:00
Kp
50fa311e71
Use object helper to iterate in check_object_object_intersection
2014-08-03 03:17:34 +00:00
Kp
acdbd20263
Use object helper to iterate in segment cleanup
2014-08-03 03:17:34 +00:00
Kp
d3927e4b9b
Use object helper to iterate in draw_seg_objects
2014-08-03 03:08:15 +00:00
Kp
b39b877bbb
Use object helper to iterate over rotate group
2014-08-03 03:08:15 +00:00
Kp
d536832239
Fix D1 exception when killed by materialization center
...
objptridx_t rejects NULL pointers
2014-08-02 23:17:15 +00:00
Kp
e04821e08f
Disable moving Viewer to slide object
...
Moving the Viewer changes the membership of segments, which would lead
to dangling and invalid indexes.
2014-08-02 00:46:56 +00:00
Kp
b29f2ef7bd
Replace hashtable with std::map
2014-08-02 00:46:56 +00:00