Commit graph

1504 commits

Author SHA1 Message Date
Kp fdfd849bd2 Pass explode_badass_weapon position by const & 2014-10-26 21:36:31 +00:00
Kp 7e955c2c7b Pass object_create_explosion_sub position by & 2014-10-26 21:36:25 +00:00
Kp 258d6b4a04 Pass place_object vms_vector arg by & 2014-10-26 21:36:10 +00:00
Kp 2a5265493e Pass obj_create position vms_vector by & 2014-10-26 21:35:16 +00:00
Kp 9dea4b4d88 Pass sound vms_vector arg by & 2014-10-26 21:33:50 +00:00
Kp a79bb365f9 Pass get_seg_masks arg by & 2014-10-26 21:28:38 +00:00
Kp 3412bf4b3a Make rotate_list input const 2014-10-26 03:24:09 +00:00
Kp 666dd75629 Return objptridx_t from find_escort 2014-10-25 16:40:20 +00:00
Kp b77eb5424b Move external_explosion into Objects 2014-10-25 16:40:18 +00:00
Kp 359fcb3ce7 Remove unused set_chase_matrix 2014-10-25 16:40:00 +00:00
Kp a32547af16 Pass position-related vms_vector arg by & 2014-10-22 02:46:03 +00:00
Kp 84f86e68c3 Simplify collide_robot_and_controlcen 2014-10-21 03:16:50 +00:00
Kp 019b572c0e Remove #define Segment2s Segments 2014-10-21 03:15:12 +00:00
Kp 944baf824d Remove #define segment2 segment 2014-10-21 03:14:36 +00:00
Kp bbba6255ab Use RAIIsocket for UDP_Socket[] 2014-10-21 02:37:00 +00:00
Kp 4c4eff5a6d Fix Win32 build breaks caused by wrong sized std::size_t 2014-10-19 21:04:16 +00:00
Kp 6c79770b1c Remove useless build-breaking assignment on Win32 2014-10-19 17:19:55 +00:00
Kp 82b4a078bd Fix buffer size mismatch on Win32 2014-10-19 17:17:54 +00:00
Kp 2645d41b5f Convert net_udp to range_for 2014-10-19 03:54:18 +00:00
Kp 62dc7a874f Pass sockaddr by const &, not value 2014-10-18 23:37:34 +00:00
Kp 54f635c5cc Use operator== to compare sockaddr 2014-10-18 23:20:39 +00:00
Kp 486707a9ef Fix argument to net_udp_send_mdata_direct
Use argument, not global
2014-10-17 02:23:40 +00:00
Kp aff354926e Remove unused bash_to_shield parameter s 2014-10-17 02:07:52 +00:00
Kp 3c4fb4a361 Remove unused fix_illegal_wall_intersection parameter origin 2014-10-17 02:06:55 +00:00
Kp ad452193ad Remove unused hostage_rescue parameter hostage_number 2014-10-17 02:05:37 +00:00
Kp 6d292d3b47 Remove cast of list_dir_el 2014-10-17 01:59:12 +00:00
Kp 5885fa2f4f Remove unused draw_ammo_info parameter primary 2014-10-17 01:57:30 +00:00
Kp 6299bb099a Remove unused file/line from create_abs_vertex_lists
Exception handling generates automatic line information.
2014-10-16 02:47:17 +00:00
Kp 69f5e93382 Centralize game_render_frame_mono call to gr_flip 2014-10-16 02:44:43 +00:00
Kp 2acd037c21 Use move for cheat_buffer 2014-10-16 02:37:20 +00:00
Kp e7e23eb92e Make unused_window_userdata_t const 2014-10-16 02:30:29 +00:00
Kp 7c76c68255 Make unused_newmenu_userdata_t const 2014-10-16 02:13:09 +00:00
Kp 9a404670d5 Fix non-debug build with -Wtype-limits 2014-10-14 02:35:11 +00:00
Kp 7f648c0f5f Wrap segment iteration idiom 2014-10-12 23:10:05 +00:00
Kp 157b4317c8 Combine Station iteration loops 2014-10-12 23:07:12 +00:00
Kp fb641b3250 Wrap object iteration idiom 2014-10-12 23:05:46 +00:00
Kp c704cc9fc9 Add const void* conversion to various types
Add operator const void*() to prevent accidental use of pointer
comparison.  With the overload present, comparing two objects triggers
an ambiguous conversion to pointer, instead of comparing the pointer
values.
2014-10-12 22:11:28 +00:00
Kp 6977a0eb74 Add operator!= to callsign_t 2014-10-11 04:33:22 +00:00
zico 737b66fb96 Fixed multi_all_players_alive(), making sure player is playing and not a ghost; Fixed comparison of callsign_t checks in state.cpp; Added additional check for player status before saving game in case things chenged while host decides upon savegame 2014-10-10 13:20:48 +02:00
Kp 9174c800b0 Enable silent alignment fixup if WORDS_NEED_ALIGNMENT 2014-10-10 02:43:14 +00:00
Kp c928c09884 Skip sqrt for homing check 2014-10-10 02:41:51 +00:00
Kp eef8bb3365 Pass collide_two_objects vms_vector arg by & 2014-10-10 02:30:13 +00:00
Kp bcb26678e2 Remove unused hitpt on check_volatile_wall 2014-10-10 02:29:47 +00:00
Kp d72fcfeef1 Remove unnecessary UI_GADGET* casts 2014-10-04 22:36:13 +00:00
Kp a8f853aa7a Pass d_event arg by const& 2014-10-04 22:36:13 +00:00
Kp 8750b6a4ad Switch d_event subclasses to C++ inheritance 2014-10-04 18:05:26 +00:00
Kp 3714c0c645 Use new serializer for writing segment side wall/tmap 2014-10-04 17:53:14 +00:00
Kp ec1eb03cc2 Move d2x-rebirth/main/segment.cpp -> similar/main/segment.cpp 2014-10-04 17:53:09 +00:00
Kp af26259158 Remove unnecessary padding in segment sides 2014-10-04 17:53:03 +00:00
Kp 93b2129a71 Combine EVENT_UI_DIALOG_DRAW blocks 2014-10-04 17:53:03 +00:00
Kp 2a63700d95 Use magic type for wall magic constants 2014-10-04 17:31:13 +00:00
Kp 6971dfbf4a Use symbolic *_none constants for -1 2014-10-04 17:31:13 +00:00
Kp 184f828a91 Move iff_read_animbrush array<unique_ptr<grs_bitmap>> down 2014-10-04 15:02:03 +00:00
Kp 93113bc400 Pass player_is_visible_from_object arg by & 2014-10-02 03:02:38 +00:00
Kp 1aadba5837 Pass do_firing_stuff arg by & 2014-10-02 03:02:38 +00:00
Kp 3d6d2d3f14 Pass make_random_vector arg by & 2014-10-02 03:02:38 +00:00
Kp e2aaef3aaf Pass lead_player arg by & 2014-10-02 03:02:37 +00:00
Kp 258b94f5c4 Move ai_fire_laser_at_player D2-only arg into ifdef 2014-10-02 03:02:37 +00:00
Kp 02fd23f6af Pass player_is_visible_from_object arg by const & 2014-10-02 03:02:37 +00:00
Kp 649704a37c Pass med_create_segment arg as & 2014-10-02 03:02:37 +00:00
Kp 51470e5b4a Pass sort_seg_list arg as & 2014-10-02 03:02:37 +00:00
Kp ca3a4524a2 Pass med_extract_*_vector_from_segment_side arg as & 2014-10-02 03:02:37 +00:00
Kp bee7a203d8 Pass med_rotate_group arg as const & 2014-10-02 03:02:37 +00:00
Kp c705265ccc Pass move_object_to_vector arg as const & 2014-10-02 03:02:37 +00:00
Kp ad562e14a4 Remove unused curve_dir 2014-10-02 03:02:36 +00:00
Kp 07be2e3951 Pass curve_dist p0 by & 2014-10-02 03:02:36 +00:00
Kp 5b97433ce5 Make various ai functions take const vms_vector& 2014-10-02 03:02:36 +00:00
Kp 16b87b350f Pass const vms_vector* to ai_follow_path 2014-10-02 03:02:36 +00:00
Kp 2ceabf5034 Pass g3_add_delta_vec arg by & 2014-10-02 03:02:36 +00:00
Kp adae9888b9 Pass g3_rotate_delta_vec arg by & 2014-10-02 03:02:36 +00:00
Kp 8aa9f071e6 Pass med_point_2_vec v by & 2014-10-02 03:02:36 +00:00
Kp d0dd976fdb Pass g3_point_2_vec v by & 2014-10-02 03:02:36 +00:00
Kp 2434b20445 Pass g3_draw_bitmap pos by const & 2014-10-02 03:02:35 +00:00
Kp 35529bacd6 Use reference for rotate_list pnt 2014-10-02 03:02:35 +00:00
Kp 68211d20d3 Pass g3_rotate_point arg by & 2014-10-02 03:02:35 +00:00
Kp ade7aa2a5f Pass g3_start_instance_angles arg by const & 2014-10-02 03:02:35 +00:00
Kp 586f9ec0ee Pass draw_polygon_model arg by const & 2014-10-02 03:02:35 +00:00
Kp dc5a0bcb98 Pass g3_start_instance_matrix arg by & 2014-10-02 03:02:35 +00:00
Kp b2ab0e48da Pass g3_check_normal_facing arg by & 2014-10-02 03:02:35 +00:00
Kp 6b93309ae5 Pass vm_vec_make arg by & 2014-10-02 03:02:35 +00:00
Kp 0ab9650bae Use std::bitset for render.cpp object_rendered 2014-10-02 03:02:34 +00:00
Kp 33033ee0b2 Use std::bitset for say_totals used_objects 2014-10-02 03:02:34 +00:00
Kp ff37e54087 Change Vertices to array<vertex> 2014-10-02 03:02:34 +00:00
Kp 04de7920ed Pass vm_dist_to_plane arg by & 2014-10-01 02:28:42 +00:00
Kp b65e9ecb61 Pass vm_extract_angles_vector arg by & 2014-10-01 02:28:42 +00:00
Kp faeeef9b52 Pass vm_extract_angles_matrix arg by & 2014-10-01 02:28:42 +00:00
Kp 3743882fa4 Use vm_matrix_x_matrix 2 arg form where viable 2014-10-01 02:28:42 +00:00
Kp 83ccb15459 Pass vm_matrix_x_matrix arg by & 2014-10-01 02:28:42 +00:00
Kp 5af79382a5 Pass vm_vec_rotate arg by & 2014-10-01 02:28:42 +00:00
Kp 99f681c8ea Pass vm_vector_2_matrix arg by & 2014-10-01 02:28:42 +00:00
Kp e6cb533007 Pass vm_vec_ang_2_matrix arg by & 2014-10-01 02:28:42 +00:00
Kp d238b4a562 Pass vm_angles_2_matrix arg by & 2014-10-01 02:28:42 +00:00
Kp b26f385b0e Pass vm_vec_delta_ang_norm arg by & 2014-10-01 02:28:42 +00:00
Kp feb7d028e4 Pass vm_vec_delta_ang arg by & 2014-10-01 02:28:42 +00:00
Kp f509b49dc3 Pass vm_vec_normal arg by & 2014-10-01 02:28:42 +00:00
Kp a99466f8c8 Pass vm_vec_crossprod arg by & 2014-10-01 02:28:42 +00:00
Kp 73545f1dab Pass vm_vec_normalized_dir_quick arg by & 2014-10-01 02:28:41 +00:00
Kp b5f443f21e Pass vm_vec_normalized_dir arg by & 2014-10-01 02:28:41 +00:00
Kp 0b691365a7 Pass vm_vec_copy_normalize arg by & 2014-10-01 02:28:41 +00:00
Kp 1fff2db9a8 Pass vm_vec_dist_quick arg by & 2014-10-01 02:28:41 +00:00
Kp ac39749382 Pass vm_vec_dist arg by & 2014-10-01 02:28:41 +00:00
Kp 3bb04d0d07 Clear unowned font pointer when font is freed 2014-10-01 02:14:41 +00:00
Kp 2ad59572e0 Use vector to manage string array memory 2014-09-29 00:02:43 +00:00
Kp 0d0297553e Simplify bm_free_extra_models 2014-09-28 21:55:59 +00:00
Kp 05a91f9b58 Pass vm_vec_scale_add2 arguments by & 2014-09-28 21:43:14 +00:00
Kp 4104bf4f11 Pass vm_vec_scale_add arguments by & 2014-09-28 21:43:14 +00:00
Kp b5949cc4a0 Pass vm_vec_copy_scale arguments by & 2014-09-28 21:43:14 +00:00
Kp 7dff3c7fa9 Pass vm_vec_avg arguments by & 2014-09-28 21:43:01 +00:00
Kp d6c06e40e7 Pass vm_vec_sub2 arguments by & 2014-09-28 21:43:00 +00:00
Kp 0b2636d535 Pass vm_vec_add2 arguments by & 2014-09-28 21:43:00 +00:00
Kp ba0b91554c Remove vm_vec_dotprod -> vm_vec_dot redirect 2014-09-28 21:41:59 +00:00
Kp 00b59c3058 Pass vm_vec_dot arguments by & 2014-09-28 21:11:48 +00:00
Kp 321bbe37d8 Pass vm_vec_sub arguments by & 2014-09-28 21:11:45 +00:00
Kp 2107b52764 Pass vm_vec_add arguments by & 2014-09-28 21:11:40 +00:00
Kp 6c30bb5d98 Pass vm_vec_scale2 dest by & 2014-09-28 21:11:36 +00:00
Kp 74925e9b45 Pass vm_vec_scale dest by & 2014-09-28 21:11:05 +00:00
Kp 69968349cb Pass vm_transpose_matrix m by & 2014-09-28 21:11:04 +00:00
Kp f12273746f Pass vm_vec_zero v by & 2014-09-28 21:11:04 +00:00
Kp a620a59bda Pass vm_vec_normalize_quick v by & 2014-09-28 21:11:04 +00:00
Kp a550673639 Pass vm_vec_normalize v by & 2014-09-28 21:11:03 +00:00
Kp dfdd4ddd29 Pass vm_vec_mag_quick v by const& 2014-09-28 21:11:03 +00:00
Kp 1e6bf36e20 Pass vm_vec_mag v by const& 2014-09-28 21:11:03 +00:00
Kp 7ddba1d15e Pass vm_vec_negate v by reference 2014-09-28 21:09:37 +00:00
Kp d9a3bf5a57 Move terrain y cache onto stack 2014-09-28 21:09:27 +00:00
Kp 59cacbd8ce Move Allow_marker_view, AlwaysLighting into DXX_BUILD_DESCENT_II 2014-09-28 21:09:22 +00:00
Kp c0023cad51 Fix memory leak writing hoard data 2014-09-27 23:14:50 +00:00
Kp dc511d0a5c Pass array<> to iff_read_animbrush 2014-09-27 23:06:33 +00:00
Kp a5723ed187 Adjust Player_num checks for unsigned Player_num 2014-09-27 22:57:15 +00:00
Kp 78ad2adabf Write weapon_info carefully 2014-09-27 22:46:25 +00:00
Kp 382afad2b8 Refactor weapon_info_read_n
Fix potential for initializing .children to wrong value with old data
files.  Currently, this cannot be hit because no caller uses the right
combination of arguments to cause it.

Rely on partial_range to report invalid custom files.
2014-09-27 21:21:58 +00:00
Kp afd995aa22 Centralize N_D2_* constants in bm.h 2014-09-27 15:42:45 +00:00
Kp cef8ab0cbd Propagate for variables in similar/arch/sdl/mouse.cpp 2014-09-26 02:42:13 +00:00
Kp f82835c7df Propagate for variables in similar/arch/sdl/key.cpp 2014-09-26 02:42:13 +00:00
Kp f6fc4d9797 Propagate for variables in similar/arch/sdl/gr.cpp 2014-09-26 02:42:13 +00:00
Kp 5ed9acb187 Propagate for variables in similar/arch/sdl/digi_mixer.cpp 2014-09-26 02:42:13 +00:00
Kp ba70c83575 Propagate for variables in similar/arch/sdl/digi_audio.cpp 2014-09-26 02:42:13 +00:00
Kp 47bc7d9937 Propagate for variables in similar/arch/sdl/digi.cpp 2014-09-26 02:42:13 +00:00
Kp 917ca43524 Propagate for variables in similar/arch/ogl/gr.cpp 2014-09-26 02:42:13 +00:00
Kp f05cf4567c Propagate for variables in similar/mem/mem.cpp 2014-09-26 02:42:12 +00:00
Kp 690fc5276c Propagate for variables in similar/misc/physfsx.cpp 2014-09-26 02:42:12 +00:00
Kp 84e5cee376 Propagate for variables in similar/misc/args.cpp 2014-09-26 02:42:12 +00:00
Kp 55b0dea7c6 Propagate for variables in similar/2d/font.cpp 2014-09-26 02:42:12 +00:00
Kp ea2dc18896 Propagate for variables in similar/editor/texture.cpp 2014-09-26 02:42:12 +00:00
Kp 81a23a319e Propagate for variables in similar/editor/texpage.cpp 2014-09-26 02:42:12 +00:00
Kp 502fb1fee8 Propagate for variables in similar/editor/objpage.cpp 2014-09-26 02:42:12 +00:00
Kp 91ea146e06 Propagate for variables in similar/editor/mine.cpp 2014-09-26 02:42:12 +00:00
Kp b26bee1277 Propagate for variables in similar/editor/medwall.cpp 2014-09-26 02:42:12 +00:00
Kp 7b4e682668 Propagate for variables in similar/editor/medrobot.cpp 2014-09-26 02:42:12 +00:00
Kp 3a2d3f4d61 Propagate for variables in similar/editor/medmisc.cpp 2014-09-26 02:42:11 +00:00
Kp 340220db99 Propagate for variables in similar/editor/ktmap.cpp 2014-09-26 02:42:11 +00:00