Commit graph

78 commits

Author SHA1 Message Date
Kp 7c76c68255 Make unused_newmenu_userdata_t const 2014-10-16 02:13:09 +00:00
Kp 7f648c0f5f Wrap segment iteration idiom 2014-10-12 23:10:05 +00:00
Kp fb641b3250 Wrap object iteration idiom 2014-10-12 23:05:46 +00:00
Kp 6977a0eb74 Add operator!= to callsign_t 2014-10-11 04:33:22 +00:00
Kp a8f853aa7a Pass d_event arg by const& 2014-10-04 22:36:13 +00:00
Kp 59cacbd8ce Move Allow_marker_view, AlwaysLighting into DXX_BUILD_DESCENT_II 2014-09-28 21:09:22 +00:00
Kp e6b9f3f923 Use typedef for player number 2014-09-21 22:10:12 +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 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 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
Adam Gensler e718103da6 fix incorrect tracker_register length 2014-08-27 14:08:09 -04: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 125d9257be Use special type names for segment/object numbers 2014-08-13 02:57:12 +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 4acbb40ad7 Use enum for window event result 2014-08-07 02:47:48 +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
Kp 33bf7b6e12 Use constant scan labels 2014-07-30 03:06:41 +00:00
Kp 2c8eca5229 Use constant status 2014-07-30 03:06:41 +00:00
Kp 593f4b08e0 Use unique_ptr for start_poll_data 2014-07-25 02:54:31 +00:00
Kp c1d184240d Use unique_ptr to manage fonts 2014-07-22 23:48:23 +00:00
Kp 7552ceb259 Remove unused arguments 2014-07-16 03:24:40 +00:00
Kp 92f7ace9ae Remove useless self assignment 2014-07-16 03:22:33 +00:00
Kp 5c30b2fefd Use operator= instead of memcpy 2014-07-05 19:25:41 +00:00
Kp 44d1924e96 Use special type for player callsign 2014-07-05 19:20:56 +00:00
Kp 1c55ca68ee List initialize UDP quaternionpos 2014-07-04 04:13:46 +00:00
Kp e259857fea List initialize UDP mdata pkt_num array 2014-07-04 04:12:45 +00:00
Kp a2f65bb467 List initialize UDP_mdata_queue 2014-07-04 04:11:45 +00:00
Kp 75379b5857 List initialize Active_udp_games 2014-07-04 04:10:01 +00:00
Kp 8a35164ae4 List initialize UDP sAddr 2014-07-04 04:09:46 +00:00
Kp 97d72b4dfe List initialize UDP hints 2014-07-04 04:09:26 +00:00
Kp 9b6bd1d17a Move sAddr initialization into udp_dns_filladdr 2014-07-04 04:09:25 +00:00
Kp d5b55cf512 List initialize kill_matrix 2014-07-04 04:07:14 +00:00
Matt Vandermeulen 28f307eb85 Fixes #5 - Byteswap header renamed to byteutil, plus sed magic
[Kp: switch to #pragma for byteutil.h]
2014-07-03 02:03:08 +00:00
Kp 78559cdc62 Cast network buffers for compatibility with Win32 prototype
Win32 deviates from BSD and sets the buffer type as char*
2014-06-28 03:52:37 +00:00
Kp 71e7458bd8 Avoid memory corruption when moving UDP queues
Passing overlapping ranges to memcpy leads to undefined behavior.  Some
versions of glibc copy backwards, causing incorrect results when the
ranges overlap.  Switch to std::move to guarantee a copy forward and to
ensure proper handling of any future class members.

See https://lwn.net/Articles/414467/
2014-06-27 03:11:39 +00:00
Kp 6091496b28 Unpack UDP_mdata_info 2014-06-26 03:17:23 +00:00
Kp c7b161cf2d Unpack UDP_frame_info 2014-06-26 03:17:23 +00:00
Kp 291d11d17e Unpack UDP_sequence_packet 2014-06-26 03:17:23 +00:00
Kp 65fedf7b59 Unpack netgame_info 2014-06-26 03:17:23 +00:00
zico f6a18e05a6 Reworked packet loss prevention system to send and receive protected packets in correct order 2014-06-24 14:49:18 +02:00
Kp e5673ae8ea Pass pnum to boss action 2014-06-08 00:05:33 +00:00
zico ad7cb106bc Changed custom D1X license to GPLv3 2014-06-01 19:55:23 +02:00
zico 090e4c5f1d Reverted commit 8f112d669c. 2014-06-01 19:10:38 +02:00
zico a5893af38b Reverted commit 0c10c9db7f. 2014-06-01 19:09:42 +02:00
Kp a2427f58b5 Use special type to reduce pointer/index conversions 2014-01-12 19:32:12 +00:00