Commit graph

1341 commits

Author SHA1 Message Date
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