Kp
0e65268037
Detect writing pointers
2014-09-28 21:41:06 +00:00
Kp
6b7b991bc4
Detect writing excessive data from non-integers
2014-09-28 21:37:37 +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
89a77c4869
Remove never used vm_vec_avg4
2014-09-28 21:09:32 +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
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
93bb883563
Use array<> for weapon_info fields
2014-09-27 17:15:17 +00:00
Kp
afd995aa22
Centralize N_D2_* constants in bm.h
2014-09-27 15:42:45 +00:00
Kp
8be687984b
Remove unneeded rle_position_t constructor
2014-09-26 02:57:03 +00:00
Kp
85d04abf60
Propagate for variables in common/ui/menu.cpp
2014-09-26 02:42:15 +00:00
Kp
d47ecc3bef
Propagate for variables in common/ui/keypress.cpp
2014-09-26 02:42:15 +00:00
Kp
b0e2188dd2
Propagate for variables in common/ui/keypad.cpp
2014-09-26 02:42:15 +00:00
Kp
92cf115de1
Propagate for variables in common/ui/file.cpp
2014-09-26 02:42:15 +00:00
Kp
e7bd80c9c8
Propagate for variables in common/ui/dialog.cpp
2014-09-26 02:42:15 +00:00
Kp
f744b53cc2
Propagate for variables in common/texmap/tmapflat.cpp
2014-09-26 02:42:15 +00:00
Kp
04b75b979a
Propagate for variables in common/texmap/scanline.cpp
2014-09-26 02:42:15 +00:00
Kp
c698bb0082
Propagate for variables in common/misc/hmp.cpp
2014-09-26 02:42:14 +00:00
Kp
528633eb55
Propagate for variables in common/editor/func.cpp
2014-09-26 02:42:14 +00:00
Kp
488713fe93
Propagate for variables in common/arch/sdl/rbaudio.cpp
2014-09-26 02:42:14 +00:00
Kp
e2d6174694
Propagate for variables in common/arch/sdl/joy.cpp
2014-09-26 02:42:14 +00:00
Kp
b642c1ba43
Propagate for variables in common/3d/draw.cpp
2014-09-26 02:42:14 +00:00
Kp
e6904ab13b
Propagate for variables in common/3d/clipper.cpp
2014-09-26 02:42:14 +00:00
Kp
25597f2328
Propagate for variables in common/2d/scalec.cpp
2014-09-26 02:42:14 +00:00
Kp
ea5be05645
Propagate for variables in common/2d/rle.cpp
2014-09-26 02:42:14 +00:00
Kp
d869b08e27
Propagate for variables in common/2d/rect.cpp
2014-09-26 02:42:14 +00:00
Kp
2664f2475c
Propagate for variables in common/2d/line.cpp
2014-09-26 02:42:14 +00:00
Kp
d81c49a433
Propagate for variables in common/2d/box.cpp
2014-09-26 02:42:13 +00:00
Kp
66f4155a5f
Propagate for variables in common/2d/bitmap.cpp
2014-09-26 02:42:13 +00:00
Kp
b3c5421a46
Propagate for variables in common/2d/bitblt.cpp
2014-09-26 02:42:13 +00:00
Kp
53035620d5
Fix clang build of wall constants
2014-09-22 03:35:34 +00:00
Kp
3f3b8084d1
Fix non-gcc build of physfsx.h
2014-09-22 03:34: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
703f60ac3f
Fix -Wtype-limits warnings
2014-09-21 21:41:55 +00:00
Kp
2c8a07cfa7
Use vector<uint8_t> to manage current_music_hndlbuf
2014-09-20 23:14:03 +00:00
Kp
2a0917cea4
Simplify MIDI header setup
2014-09-20 23:12:42 +00:00
Kp
ba907fd6e3
Eliminate message<...> for common UDT serialization
2014-09-20 23:04:16 +00:00
Kp
d889dd9b7d
Pass serial::pad by-value
2014-09-20 22:44:46 +00:00
Kp
fece9f51a4
Optimize serial using __builtin_bswap if available
2014-09-20 22:15:32 +00:00
Kp
c7d9477fca
Optimize serial copies of byte arrays
...
Switch from a range_for copying bytes to use of copy_n.
2014-09-20 18:14:00 +00:00
Kp
d263380179
Force partial_range offset/length to size_t
2014-09-19 02:58:25 +00:00
Kp
ef42a7cdad
Compact version number definition
2014-09-17 02:45:32 +00:00
Kp
2f7b9a7aa7
Use C++ memory management for window
2014-09-17 02:45:23 +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
cdda53a2e8
Compact pad_storage
2014-09-17 02:44:45 +00:00
Kp
5571cf75ef
Ignore -udp_myport requests for reserved port
2014-09-17 02:16:33 +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
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
41bb341777
Split valptridx_t into pieces
2014-09-12 03:22:34 +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
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
d312248d45
Return int_fast32_t from find_connect_side
2014-09-06 04:06:18 +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
df3f2fe2fe
Simplify ogl/sdl texture mapping
2014-09-02 22:13:15 +00:00
Kp
efbd624f61
Disallow implicitly copying bytebuffer_t
2014-09-02 22:11:31 +00:00
Kp
cdaa4a8329
Make g3_check_and_draw_* inline
2014-08-27 03:16:51 +00:00
Kp
f9e9f0faa9
Use RAIIdmem for gadgets
2014-08-27 03:15:06 +00:00
Kp
e77f02700a
Use unique_ptr for current_music
2014-08-27 02:52:21 +00:00
Kp
5f5bd4e01d
Throw runtime_error on bad HMP decode
...
Returning 0 writes a zero into the length field, which will likely break
things later. Throw an exception to make bad HMPs obvious.
2014-08-26 03:19:59 +00:00
Kp
3e8ec8932f
Use array<> for player_config
2014-08-26 02:59:01 +00:00
Kp
1f0bf71c5e
Fix off-by-one in PHYSFSX_puts_literal
2014-08-26 02:41:33 +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
8d835f8e34
Reduce inclusion of compiler-begin.h
2014-08-24 03:36:35 +00:00