Kp
2ad9437257
Use unique_ptr for BitmapBits
2014-07-25 02:54:31 +00:00
Kp
593f4b08e0
Use unique_ptr for start_poll_data
2014-07-25 02:54:31 +00:00
Kp
af912ea84d
Use unique_ptr for level_names
2014-07-25 02:54:31 +00:00
Kp
d1eaa1819c
Use unique_ptr for secret_level_names
2014-07-25 02:54:31 +00:00
Kp
3bf30f9cf7
Use unique_ptr for secret_level_table
2014-07-25 02:54:31 +00:00
Kp
675e13dbbf
Use unique_ptr for text strings
2014-07-25 02:54:31 +00:00
Kp
e7cdb4307c
Use unique_ptr for overwritten_text
2014-07-25 02:54:31 +00:00
Kp
6020c9c013
Use d_fname for DOS filenames
2014-07-25 02:54:31 +00:00
Kp
2ddc37d804
Write tmap_info carefully
2014-07-25 02:54:31 +00:00
Kp
79708e14f4
Use unique_ptr for alternate_ham_file
2014-07-25 01:48:36 +00:00
Kp
2a5a81936a
Allocate automap through new for constructor calls
2014-07-25 01:47:07 +00:00
Kp
7f1ccd298b
Use unique_ptr for light_array
2014-07-22 23:48:24 +00:00
Kp
9778c1a151
Use unique_ptr to manage sub bitmaps
2014-07-22 23:48:24 +00:00
Kp
323e796cd0
Use unique_ptr to manage grs_bitmap
2014-07-22 23:48:24 +00:00
Kp
6826e966a7
Use unique_ptr for Current_mission
2014-07-22 23:48:23 +00:00
Kp
ce1729f23a
Use unique_ptr<> for briefing
2014-07-22 23:48:23 +00:00
Kp
e19d43f92f
Fix crash parsing bad mission file
2014-07-22 23:48:23 +00:00
Kp
fbf1c1f413
Throw on too many fonts open
2014-07-22 23:48:23 +00:00
Kp
c1d184240d
Use unique_ptr to manage fonts
2014-07-22 23:48:23 +00:00
Kp
bd1c6d8c5d
Reduce header includes of physfsx.h
2014-07-22 23:48:23 +00:00
Kp
e20301c7e3
Refactor kick_player out of multi_send_message_end
2014-07-22 23:48:23 +00:00
Kp
b2f8088a75
Use find_if to traverse key_properties
2014-07-22 23:48:23 +00:00
Kp
3a35179e50
List initialize avg_color_rgb
2014-07-19 03:09:58 +00:00
Kp
4c58f80f6b
List initialize Dynamic_light in set_dynamic_light
2014-07-19 03:09:26 +00:00
Kp
6370292202
Pass array<> to create_*_vertex_lists
2014-07-17 03:29:57 +00:00
Kp
1864b023d2
List initialize Seg_orientation
2014-07-17 03:29:57 +00:00
Kp
d3d457cf19
Pass array<> to gr_list_modes to preserve size information
2014-07-17 03:29:57 +00:00
Kp
d135e93b94
Use std::min_element to find least vertex
2014-07-17 03:29:57 +00:00
Kp
c69ff037d6
Remove useless self assignment
2014-07-16 03:25:28 +00:00
Kp
7552ceb259
Remove unused arguments
2014-07-16 03:24:40 +00:00
Kp
37f20ebfa7
Use specific num_frames test in convert_vclip
2014-07-16 03:23:49 +00:00
Kp
bb66bbbff7
Remove always-true tests
2014-07-16 03:23:14 +00:00
Kp
ec7eab42d6
Change print_trigger_message to avoid -Wstring-plus-int
2014-07-16 03:22:43 +00:00
Kp
92f7ace9ae
Remove useless self assignment
2014-07-16 03:22:33 +00:00
Kp
50e4c92390
Remove write-only variable count in compute_average_rgb
2014-07-16 03:21:04 +00:00
Kp
cf7bdf3261
Remove long-unused verify
2014-07-16 03:21:04 +00:00
Kp
dbb7be37bb
Set safe defaults for eclip in D1
2014-07-16 03:21:04 +00:00
Kp
6d30980b88
Avoid pointer subtraction searching group list
2014-07-16 03:21:04 +00:00
Kp
3946be044c
Replace newmenu template specializations with free functions
2014-07-16 03:21:04 +00:00
Kp
9f685a0d0a
List initialize unicode_frame_buffer
2014-07-16 03:14:04 +00:00
Kp
dc87c78fd2
Mark grs_bitmap as prohibit_void_ptr
2014-07-16 03:14:04 +00:00
Kp
22e630f0ce
Fix apply_light_to_segment propagation for unusual connections
...
30 entries is insufficient.
2014-07-14 02:17:40 +00:00
Kp
41e016954a
Remove unused add_flicker
2014-07-14 02:17:40 +00:00
Kp
5a90ab4197
Reduce reindexing of SoundObjects
2014-07-14 02:17:40 +00:00
Kp
cb1337f8ae
Switch digi_unxlat_sound to throw on error
2014-07-14 02:17:40 +00:00
Kp
afeaa09e9a
Replace vm_copy_transpose_matrix with vm_transposed_matrix
...
Also, delete obsolete broken inlining support.
2014-07-14 02:17:40 +00:00
Kp
4c7249a016
Return vms_matrix from vm_matrix_x_matrix
2014-07-14 02:17:40 +00:00
Kp
08d72ae525
Mark find_connected_distance vms_vector const
2014-07-13 22:57:45 +00:00
Kp
03574d0f5e
Change vm_vec_* macros to inline functions
2014-07-13 03:43:32 +00:00
Kp
e765fd74fc
Move Highest_segment_index into Segments
2014-07-13 03:43:32 +00:00
Kp
b2a7195643
Remove unused multi_dump_robots
2014-07-13 03:43:32 +00:00
Kp
dd70a3f03d
Use array<> for PowerupsInMine, MaxPowerupsAllowed
2014-07-12 19:23:37 +00:00
Kp
6091ac10e6
Avoid integer underflow in powerup counting
2014-07-12 19:23:12 +00:00
Kp
1e84c245e1
Use range_for for multi_strip_robots
2014-07-12 19:23:10 +00:00
Kp
722164b322
Fix free_object_slots undercounting
...
Modifying num_to_free while using it results in freeing too few
elements. Capture num_to_free once before modifying it.
2014-07-12 17:31:55 +00:00
Kp
c1aebe6771
Remove unused OBJ_FLARE
2014-07-12 16:38:33 +00:00
Kp
fa24a40033
Move Highest_object_index into Objects[]
2014-07-06 03:34:43 +00:00
Kp
08546489c3
Require integral index to Objects[]
2014-07-06 03:34:43 +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
cb1ca2da72
Reduce reallocations reading configuration
2014-07-05 17:37:09 +00:00
Kp
b999507c2f
Simplify feedback_result preparation
2014-07-05 03:48:58 +00:00
Kp
43d22c968f
Short circuit callsign collision check
2014-07-05 03:48:58 +00:00
Kp
7e7c85ac94
Refactor kill name preparation
2014-07-05 03:48:58 +00:00
Kp
9fa292c36d
Rework -pilot handling
2014-07-05 03:48:57 +00:00
Kp
689c2496d0
Unify IFF palette handling
2014-07-05 03:48:57 +00:00
Kp
c0e6804fb0
Use assignment for vms_vector_array in fvi
2014-07-05 03:48:57 +00:00
Kp
e16d22183d
Use array for con_buffer
2014-07-05 03:48:57 +00:00
Kp
831ab8393d
Use move to reduce copies in unibuffer_shift
2014-07-05 03:48:57 +00:00
Kp
b89a2328ca
List initialize terrain save_row
2014-07-04 04:17:37 +00:00
Kp
1e5b19c175
List initialize scores
2014-07-04 04:16:48 +00:00
Kp
944f5eca99
List initialize render structures
2014-07-04 04:16:29 +00:00
Kp
1aee6da0e7
List initialize piggy temporary bitmap
2014-07-04 04:15:35 +00:00
Kp
c6c197b419
List initialize object on reset
2014-07-04 04:15:04 +00:00
Kp
8eccadd28a
List initialize newdemo structures
2014-07-04 04:14:22 +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
ba5b1a8e7c
List initialize temporary robot object
2014-07-04 04:07:14 +00:00
Kp
d5b55cf512
List initialize kill_matrix
2014-07-04 04:07:14 +00:00
Kp
51cdce44f1
List initialize perturb_array omega blobs
2014-07-04 03:56:41 +00:00
Kp
ede54be258
List initialize mine_top_fileinfo
2014-07-04 03:56:41 +00:00
Kp
786063665c
Fix incomplete memset of pick_connected_segment seg_queue
2014-07-04 03:56:41 +00:00
Kp
fda2bf70aa
List initialize Controls
2014-07-04 03:56:41 +00:00
Kp
bc7a8eb600
List initialize ai_local ailp
2014-07-04 03:56:40 +00:00
Kp
a48e3e421a
List initialize Mouse
2014-07-04 03:56:40 +00:00
Kp
f092095727
List initialize SDL_Event event
2014-07-04 03:56:40 +00:00
Kp
256e86b2b6
List initialize grd_curscreen
2014-07-04 03:56:40 +00:00
Kp
e63e46f8f0
List initialize PCX header
2014-07-04 03:46:40 +00:00
Kp
048d4bcc8f
List initialize bitmap
2014-07-04 03:45:35 +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
9f03076a58
Remove write-only variable Beam_brightness
2014-07-02 02:31:32 +00:00
Kp
36685d3938
Fix off-by-one bugs in bmread workaround
2014-07-02 02:29:35 +00:00
Kp
6222b58bbc
Move uvl_list into g3_draw_rod_tmap
2014-07-01 03:10:56 +00:00
Kp
b6033c49f2
Use unsigned transparent bitmap bounds
2014-07-01 01:34:16 +00:00
Kp
3abc33d6cc
Optimize gr_rle_decode
2014-06-30 23:56:51 +00:00
Kp
deb700950f
Work around bmread use of uninitialized memory
...
bmread copies from a stale pointer into a local buffer. If the stale
pointer points to null bytes, this is stupid but harmless. If the stale
pointer points to a large run of non-null bytes, this crashes the game.
Modify PHYSFSX_fgets to clear the unused portion of the return buffer to
work around this bmread bug. Otherwise using shareware data crashes the
game at startup.
2014-06-28 23:30:46 +00:00
Kp
d6c012ce4d
Fix brown-wall robots in D1 non-editor build
...
tmap == -1 means no override, but 7b33018c
changed the comparison to be
true when given negative inputs. Since -Wsign-compare is off, this was
not caught by the compiler.
2014-06-28 15:29:25 +00:00
Kp
d0b3d9e32e
Force desired conversion in render_object_search
2014-06-28 04:13:42 +00:00
Kp
11cbbf66fc
Fix Win32 newmenu_do build failure
2014-06-28 03:54:36 +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
a301eb97ed
Cast fix64->unsigned long in HUD
...
Fix format warning when unsigned long is smaller than fix64
2014-06-28 03:50:08 +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
Kp
e99b496d72
Unpack game_cheats
2014-06-26 03:17:23 +00:00
Kp
93e90b6f0b
Unpack cheat_codes[]
2014-06-26 03:17:23 +00:00
zico
56769113e5
Removed PKilledFlags-hack since not being necessary anymore with ordered traffic
2014-06-24 14:52:18 +02: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
da1bd2fd08
Precompute collision tables
2014-06-24 03:40:31 +00:00
Kp
ecce4c6745
Ignore INI lines that start with ;
2014-06-22 21:56:41 +00:00
Kp
b3c953375c
Read lines in blocks
2014-06-22 21:56:03 +00:00
Kp
3bdeab03a7
Unify dumpmine tmap loop
2014-06-22 21:02:49 +00:00
Kp
e6655f9481
Use std::vector for lrgb_list
2014-06-22 21:01:31 +00:00
Kp
b9de0787ce
Optimize multi_send_drop_marker
2014-06-22 20:59:04 +00:00
Kp
362f0a5d23
Use array<> for Point_segs
2014-06-22 20:56:47 +00:00
Kp
c4b31f875f
Use array<> for MarkerMessage
2014-06-22 18:53:42 +00:00
Kp
78143eb045
Read walls carefully
2014-06-21 23:56:27 +00:00
Kp
b3dc2a1bc0
Move D1X trigger read out of line
2014-06-21 23:56:27 +00:00
Kp
993f778e61
Write active_door carefully
2014-06-20 02:59:53 +00:00
Kp
5af9e8d5b2
Use array<> for ActiveDoors
2014-06-20 02:59:53 +00:00
Kp
2e95d8c0a8
Use array<> for Walls
2014-06-20 02:59:53 +00:00
Kp
176525cf71
Read cloaking_wall structures carefully
2014-06-20 02:59:53 +00:00
Kp
0ef949ab9e
Use array<> for CloakingWalls
2014-06-20 02:59:53 +00:00
Kp
d3ecca360c
Read matcen_info structures carefully
2014-06-20 02:59:53 +00:00
Kp
2d26de003a
Read trigger structures carefully
2014-06-20 02:59:53 +00:00
Kp
3c6f787e15
Use array<> for Polygon_models
2014-06-20 02:59:53 +00:00
Kp
58350edab7
Convert polymodel_read_n to call polymodel_read
2014-06-20 02:59:53 +00:00
Kp
7b33018cb5
Use array<> for Textures
2014-06-20 02:59:53 +00:00
Kp
3200823a8b
Use array<> for TmapInfo
2014-06-20 02:59:53 +00:00
Kp
be8c9d5d2d
Split out trigger_write
...
Conditional trigger_write is hard to read.
2014-06-20 02:59:53 +00:00
Kp
8cc3e2c9e9
Use array<> for Triggers
2014-06-20 02:59:53 +00:00
Kp
fa77105084
Simplify D2X trigger upgrade code
2014-06-20 02:59:53 +00:00
Kp
952fc31449
Simplify d1_matcen_info_read
2014-06-20 02:59:53 +00:00
Kp
92814475a9
Use array<> for RobotCenters
2014-06-20 02:59:52 +00:00
Kp
8e7b2f7d15
Fix range in disable_matcens
...
Num_robot_centers is for RobotCenters[], not Station[].
2014-06-15 22:19:26 +00:00
Kp
64b78e0061
Fix copy-paste bug for multiplayer weapon sound
...
Send SOUND_GOOD_SELECTION_SECONDARY for changing secondaries.
2014-06-15 04:00:18 +00:00
Kp
d510438fd4
Use array<> for WallAnims
2014-06-15 03:35:21 +00:00
Kp
bd35eb7469
Use array<> for wclip arrays
2014-06-14 23:13:38 +00:00
Kp
1cf1373fb2
Use array<> for control_center_triggers members
2014-06-14 23:13:38 +00:00
Kp
9ab8a587b8
Write FuelCenter structures carefully
2014-06-14 23:13:38 +00:00
Kp
4bc9475076
Use array<> for Station
2014-06-14 23:13:37 +00:00
Kp
93ec327a10
Write powerup_type_info structures carefully
2014-06-14 23:13:37 +00:00
Kp
7c62bf98ef
Use array<> for Powerup_info
2014-06-14 01:15:33 +00:00