Commit graph

1504 commits

Author SHA1 Message Date
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
Kp 1d4ceba9ee Propagate for variables in similar/editor/ksegsize.cpp 2014-09-26 02:42:11 +00:00
Kp 646686ebc7 Propagate for variables in similar/editor/ksegsel.cpp 2014-09-26 02:42:11 +00:00
Kp 25ad93fa40 Propagate for variables in similar/editor/kbuild.cpp 2014-09-26 02:42:11 +00:00
Kp 8d26cdf0ae Propagate for variables in similar/editor/eswitch.cpp 2014-09-26 02:42:11 +00:00
Kp e4c699083d Propagate for variables in similar/editor/eobject.cpp 2014-09-26 02:42:11 +00:00
Kp 655ed9ef60 Propagate for variables in similar/editor/elight.cpp 2014-09-26 02:42:11 +00:00
Kp cddf466e42 Propagate for variables in similar/editor/curves.cpp 2014-09-26 02:42:11 +00:00
Kp 5acd673b59 Propagate for variables in similar/editor/autosave.cpp 2014-09-26 02:42:11 +00:00
Kp b724966511 Propagate for variables in similar/main/texmerge.cpp 2014-09-26 02:42:10 +00:00
Kp 9eae0f808e Propagate for variables in similar/main/scores.cpp 2014-09-26 02:42:10 +00:00
Kp 7f7e046172 Propagate for variables in similar/main/powerup.cpp 2014-09-26 02:42:10 +00:00
Kp 29a2e905fb Propagate for variables in similar/main/polyobj.cpp 2014-09-26 02:42:10 +00:00
Kp 6d73413170 Propagate for variables in similar/main/player.cpp 2014-09-26 02:42:10 +00:00
Kp 788a3c37ea Propagate for variables in similar/main/physics.cpp 2014-09-26 02:42:10 +00:00
Kp 458f31f70a Propagate for variables in similar/main/paging.cpp 2014-09-26 02:42:10 +00:00
Kp 3c199e3b91 Propagate for variables in similar/main/mission.cpp 2014-09-26 02:42:10 +00:00
Kp cb2b1ad746 Propagate for variables in similar/main/lighting.cpp 2014-09-26 02:42:10 +00:00
Kp 24697ba109 Propagate for variables in similar/main/laser.cpp 2014-09-26 02:42:09 +00:00
Kp 561ffc61e4 Propagate for variables in similar/main/kmatrix.cpp 2014-09-26 02:42:09 +00:00
Kp 64fab7512a Propagate for variables in similar/main/kconfig.cpp 2014-09-26 02:42:09 +00:00
Kp 481a95a62b Propagate for variables in similar/main/iff.cpp 2014-09-26 02:42:09 +00:00
Kp 9e273d9283 Propagate for variables in similar/main/gameseg.cpp 2014-09-26 02:42:09 +00:00
Kp 738b56e20f Propagate for variables in similar/main/gamesave.cpp 2014-09-26 02:42:09 +00:00
Kp caac52e606 Propagate for variables in similar/main/gamerend.cpp 2014-09-26 02:42:09 +00:00
Kp fc28611f52 Propagate for variables in similar/main/gamefont.cpp 2014-09-26 02:42:09 +00:00
Kp b307e994d0 Propagate for variables in similar/main/gamecntl.cpp 2014-09-26 02:42:09 +00:00
Kp db6fc94f47 Propagate for variables in similar/main/game.cpp 2014-09-26 02:42:08 +00:00
Kp d2a74cb52b Propagate for variables in similar/main/fuelcen.cpp 2014-09-26 02:42:08 +00:00
Kp 5e932daf16 Propagate for variables in similar/main/credits.cpp 2014-09-26 02:42:08 +00:00
Kp 5149df504d Propagate for variables in similar/main/collide.cpp 2014-09-26 02:42:08 +00:00
Kp ec06f5e018 Propagate for variables in similar/main/object.cpp 2014-09-26 02:42:08 +00:00
Kp fc25f00eb1 Propagate for variables in similar/main/endlevel.cpp 2014-09-26 02:42:08 +00:00
Kp 9eda412dff Use symbolic constant wall_none 2014-09-21 23:05:14 +00:00
Kp 7b36462700 Pass multiplayer message type to multi_process_data 2014-09-21 22:10:21 +00:00
Kp e6b9f3f923 Use typedef for player number 2014-09-21 22:10:12 +00:00
Kp 6d5b9e3004 Move MAX_BITMAPS_PER_BRUSH definitions to piggy.h 2014-09-21 21:53:54 +00:00
Kp 5caf3206fc Convert gamemine.cpp to use range_for 2014-09-21 21:46:21 +00:00
Kp 613e98e1f9 Convert ai.cpp to use range_for 2014-09-21 21:46:12 +00:00
Kp 703f60ac3f Fix -Wtype-limits warnings 2014-09-21 21:41:55 +00:00
Kp e22923e004 Use unique_ptr for grs_canvas 2014-09-17 02:45:12 +00:00
Kp 5f8ede8d8f Remove state_save_old_game
Saving old player structure is broken since d9e2337 switched to saving
the pointer to sg_player instead of the value of sg_player.  No one
reported it in 6 years, so remove it.
2014-09-17 02:45:02 +00:00
Kp 5571cf75ef Ignore -udp_myport requests for reserved port 2014-09-17 02:16:33 +00:00
Kp 9ccc5400fb Refactor UDP_MyPort handling
Store as short, not string.

Centralize reset-to-default.  Fixes sometimes resetting to hardcoded
default instead of GameArg default.

Centralize and improve error check.  Now rejects privileged ports
consistently.
2014-09-17 02:13:13 +00:00
Kp f5c950df69 Throw exception on corrupt weapon list 2014-09-17 02:11:59 +00:00
Kp 191ecd2cdc Remove write-only field matcen_info::interval 2014-09-17 02:07:55 +00:00
Kp 4b2ad9e3df Remove write-only field matcen_info::hit_points 2014-09-17 02:07:50 +00:00
Kp f0a1146b29 Unify MULTI_ROBOT_EXPLODE
Derive thief state locally.  Remove unused player number.  Use new
serializer.
2014-09-14 01:14:33 +00:00
Kp 44827606bc Use serialize for multi_claim_robot 2014-09-13 23:45:13 +00:00
Kp a11c4aed3d Shorten vers_id command line 2014-09-13 22:09:32 +00:00
Kp f5ee5f8813 Use array<> for side 2014-09-13 22:05:52 +00:00
Kp 039bf2f0b7 Fix crash on failure to create afterburner blob
Fix crash on failure to recreate thief.
2014-09-13 22:01:17 +00:00
Kp cbe07f023c Reduce scope of for variables 2014-09-13 21:45:21 +00:00
Kp 49734df8a4 Use partial_range to search netgame list 2014-09-13 21:44:42 +00:00
Kp e9d01c493e Move uvl_copy up 2014-09-13 00:34:18 +00:00
Kp 26dfce97f9 Remove duplicate code for calling check_face 2014-09-12 23:13:32 +00:00
Kp 822d3c7518 Avoid reloading Player_num when clearing player callsigns 2014-09-12 02:43:37 +00:00
Kp 9ea72090a2 Fix return semantics of net_udp_send_request 2014-09-12 02:43:36 +00:00
Kp f7f416c3cb Trap blown bitmap overflow 2014-09-11 22:16:18 +00:00
Kp 008caf8161 Simplify sort_seg_children 2014-09-08 03:31:05 +00:00
Kp 0c7e5aa178 Avoid slicing obj_create return value 2014-09-08 03:24:48 +00:00
Kp 01638a7eb0 Move N_render_segs into render_state_t 2014-09-07 23:56:37 +00:00
Kp e8f4b20d1d Use special type for PHYSFSX_fgets 2014-09-07 20:07:20 +00:00
Kp 07176ece8b Add Valgrind poison stubs 2014-09-07 19:39:18 +00:00
Kp a02f78a171 Move saving window pointer into helper 2014-09-07 19:04:07 +00:00
Kp fdef9fd04f Use C++ allocation for window-specific data 2014-09-07 19:04:07 +00:00
Kp ff052c4fa1 Wrap pause window message in structure 2014-09-07 19:04:07 +00:00
Kp ff31905181 Use unique_ptr for grs_subcanvas 2014-09-07 19:04:06 +00:00
Kp 73a0aee004 Use accessor for side::type 2014-09-06 22:36:58 +00:00
Kp 02e2e77ee6 Tighten processing of WALL_IS_DOORWAY flags 2014-09-06 22:26:11 +00:00
Kp 3573d680ef Optimize set_ambient_sound_flags 2014-09-06 04:08:44 +00:00
Kp f5e7516448 Overwrite oldest earthshaker even if not done
Otherwise the newest earthshaker will be lost.
2014-09-06 04:07:45 +00:00
Kp d312248d45 Return int_fast32_t from find_connect_side 2014-09-06 04:06:18 +00:00
Kp 36183e1388 Optimize render compare_children 2014-09-06 04:01:32 +00:00
Kp 5576a65dac Check length of g3 tmap inputs 2014-09-04 03:02:21 +00:00
Kp 6af1b910df Short circuit ambient_mark_bfs test for child segments 2014-09-04 02:24:54 +00:00
Kp 5f4342fb01 Short circuit build_segment_list CC_BEHIND check 2014-09-04 01:51:03 +00:00
Kp c773ef560e Inline disabled render features 2014-09-03 01:56:54 +00:00
Kp 21a4cd3f5f Inline migrate_objects 2014-09-03 01:38:00 +00:00
Kp 9558abf7d3 Inline no_migrate_segs 2014-09-03 01:35:06 +00:00
Kp 697e34cdb7 Inline new_seg_sorting 2014-09-03 01:34:05 +00:00
Kp 31088e180e Inline behind_check 2014-09-03 01:33:52 +00:00
Kp 6069c3db71 Inline window_check 2014-09-03 01:33:46 +00:00
Kp 215c66595b Copy morphing g3s_uvl onto stack 2014-09-03 01:32:34 +00:00
Kp c057ee57ed Cache calls of WALL_IS_DOORWAY 2014-09-02 22:15:07 +00:00
Kp df3f2fe2fe Simplify ogl/sdl texture mapping 2014-09-02 22:13:15 +00:00
Kp d41883c771 Remove unused variables to calm clang 2014-09-02 22:11:22 +00:00
Kp 7f6299aaa7 Use built-in __linux__ instead of custom __LINUX__ 2014-09-02 22:10:34 +00:00
Kp e00224d44d Fix signature of sort predicate 2014-08-30 22:38:26 +00:00
Kp 88a7ddc286 Make cycle corruption check stricter 2014-08-29 02:38:02 +00:00
Adam Gensler e718103da6 fix incorrect tracker_register length 2014-08-27 14:08:09 -04:00
Kp 4fb1c7236d Remove bogus PHYSFS_readSBE32 return test
PHYSFS_readSBE32 returns 0 or 1, never EOF.
2014-08-26 03:21:55 +00:00
Kp 12ba6d7c1e Use new/delete for credits 2014-08-26 03:21:39 +00:00
Kp c371559007 Move mission get_parm_value::buf onto caller stack 2014-08-26 03:19:29 +00:00
Kp 3da454fd43 Validate cycle order on load 2014-08-26 02:59:17 +00:00
Kp 3e8ec8932f Use array<> for player_config 2014-08-26 02:59:01 +00:00
Kp 3d5ff5239a Fix writing D2 savegames
Escort_goal_index is an object number, but must occupy 4 bytes in the
save file for compatibility with older versions.
2014-08-24 20:59:03 +00:00
Kp 765b8fc0b1 Relax assert that fails for D1 v1.0 POF
Zico reports that D1 v1.0 game data fails Assert(id < r->n_guns).  Relax
the assertion to avoid the failure.
2014-08-24 18:30:25 +00:00
Kp 94550355a8 Use make_unique instead of bare new 2014-08-24 18:28:09 +00:00
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
Kp b732be702a Fix mismatched new/free 2014-08-01 03:34:08 +00:00
Kp 7133d75698 Propagate loop variable to silence gcc 4.6 warning
Suppress warning about changed variable scope under new ISO C++ rules.
2014-08-01 03:34:08 +00:00