Commit graph

5403 commits

Author SHA1 Message Date
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 5b70836203 Fix -Werror leakage on failed CXXFLAGS-free tests 2014-09-17 02:11:43 +00:00
Kp 85b09fd380 Avoid redundant -Werror usage
If -Werror is set by the user, use -Wflag instead of -Werror=flag.
2014-09-17 02:09:53 +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 d1a36bfc6a Add option to rebuild vers_id when any object file changes 2014-09-13 22:10:24 +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 41bb341777 Split valptridx_t into pieces 2014-09-12 03:22:34 +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 ec4bb62a2c Add break missed in C++ inheritance conversion 2014-09-08 00:08:17 +00:00
Kp 01638a7eb0 Move N_render_segs into render_state_t 2014-09-07 23:56:37 +00:00
Kp 0387a2c771 Disallow using RAIIdmem::operator T* on rvalues 2014-09-07 23:56:37 +00:00
Kp 7d166a70e0 Prevent accidental RAIIdmem construction 2014-09-07 23:56:37 +00:00
Kp 425c4242c1 Use std::string for UI_GADGET_BUTTON text 2014-09-07 21:21:57 +00:00
Kp 57dc04a9bd Remove trailing ^Z 2014-09-07 20:26:38 +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 8321b90a9a Use C++ inheritance for UI gadgets 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 8c527c8e0a Name serial unaligned_storage union 2014-09-04 01:57:04 +00:00
Kp e503a64e31 Support other endian serialization 2014-09-04 01:53:11 +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