Kp
ee50d45e72
Pass window_send_event arg by &
2015-01-17 18:31:40 +00:00
Kp
f2797ddf1e
Pass gr_init_canvas arg by &
2015-01-17 18:31:40 +00:00
Kp
fccb6814f8
Pass gr_create_sub_canvas arg by &
2015-01-17 18:31:40 +00:00
Kp
c731558a94
Pass gr_init_sub_canvas arg by &
2015-01-17 18:31:40 +00:00
Kp
c2b7990550
Pass window_get_canvas arg by &
2015-01-17 18:31:40 +00:00
Kp
af16e4a2a3
Tighten grs_bitmap resource rules
2015-01-17 18:31:40 +00:00
Kp
d185324a26
Use range_for in menubar
2015-01-17 18:31:39 +00:00
Kp
20edba1fd1
Use gr_init_canvas in gr_create_canvas
2015-01-17 04:31:17 +00:00
Kp
81d763476e
Raise index_range_exception on bad index to valptridx
2015-01-17 04:31:17 +00:00
Kp
5775881de6
Refactor vm_vec_dot
2015-01-17 04:31:17 +00:00
Kp
d443e28147
Reuse mle_path as Mission_path
2015-01-15 04:30:03 +00:00
Kp
61ba3d1ba2
Centralize buddy search
2015-01-12 00:26:04 +00:00
Kp
266814e975
Inline gr_set_current_canvas with constant inputs
2015-01-12 00:26:03 +00:00
Kp
fd01d4c673
Reorder wall_is_doorway to favor likely results
2015-01-12 00:26:03 +00:00
Kp
ddc40a6634
Copy level name without modification
2015-01-12 00:26:03 +00:00
Kp
8c27a7d68e
Require known size for PHYSFSX_fgets
2015-01-12 00:26:03 +00:00
Kp
60576ce3e0
Generate fewer base_partial_range_error_t::prepare instances
2015-01-12 00:26:03 +00:00
Kp
484a2a705d
Use strcasecmp when available
2015-01-12 00:26:03 +00:00
Kp
b6a3735f53
Add convenience d_strnicmp for literal right side
2015-01-12 00:26:03 +00:00
Kp
fc30cdcc9b
Use ntstring for NetworkMessageMacro name
2015-01-12 00:26:02 +00:00
Kp
12770802ab
Use ntstring for guidebot name
2015-01-12 00:26:02 +00:00
Kp
44d5ae69c6
Pack wall
2015-01-12 00:26:02 +00:00
Kp
d7d6e5728d
Use array<> for ReticleRGBA
2015-01-12 00:26:02 +00:00
Kp
6ccf6ae96b
Use range_for in segment.cpp
2015-01-12 00:26:02 +00:00
Kp
ff493fcfce
Inline vm_vec_make
2015-01-12 00:26:02 +00:00
Kp
f0b47829ef
Add convenience ntstring::operator=(const char (&)[N])
...
OS X-specific configuration code assumes the ability to assign a literal
string to an ntstring. Add an operator= overload to support that.
Reported by kreatordxx: https://github.com/dxx-rebirth/dxx-rebirth/issues/30
2015-01-11 18:19:13 +00:00
Kp
3ad422a4be
Include <vector> in render.h
...
Some systems include <vector> as a side effect from other headers. OS X
Yosemite is not such a system.
Reported by kreatordxx: https://github.com/dxx-rebirth/dxx-rebirth/issues/29
2015-01-11 18:10:40 +00:00
Kp
5402e8c546
Add unchecked_partial_range for ranges without end
2015-01-11 05:08:30 +00:00
Kp
205b533c67
Fix d_strnicmp with zero length input
2015-01-11 05:08:30 +00:00
Kp
d5d416c62c
Use ntstring for Netgame.mission_name
2015-01-03 23:44:32 +00:00
Kp
4be02cd9c5
Add support for poison=overwrite
2015-01-03 23:44:32 +00:00
Kp
dc35b0ad88
Fix Win32 build
2015-01-03 23:44:32 +00:00
Kp
030a811661
Pass nullptr for Descent 1 state_save_all filename_override
2014-12-30 02:09:23 +00:00
Kp
b86870f5ef
Make d_debugbreak cold
2014-12-24 03:34:33 +00:00
Kp
78c3a6b770
Merge btb:pulls/21 into unification/master
2014-12-24 03:31:42 +00:00
Kp
fbac119095
Propagate use of objptridx_t
2014-12-23 04:20:27 +00:00
Kp
499b1d3b66
Use range_for for NumNetPlayerPositions
2014-12-23 04:20:27 +00:00
Kp
b96b6eb4cb
Make do_ai_robot_hit_attack player vobjptridx_t
2014-12-23 04:20:27 +00:00
Kp
702ea40ade
Move segment declarations to fwdsegment.h
2014-12-22 04:35:49 +00:00
Kp
2d8f8b5d4a
Reduce inclusion of wall.h
2014-12-22 04:35:49 +00:00
Kp
754c5342f9
Move wall declarations to fwdwall.h
2014-12-22 04:35:48 +00:00
Kp
03370ed3e5
Use ntstring for Netgame.mission_name
2014-12-22 04:35:48 +00:00
Kp
e166846dd1
Use ntstring for Netgame.game_name
2014-12-22 04:35:48 +00:00
Kp
bf97634b27
Hide marker _ when buffer full
2014-12-22 04:35:48 +00:00
Kp
a9998476a9
Use ntstring for UI_KEYPAD description
2014-12-22 04:35:48 +00:00
Kp
180999eed1
Fix crash loading player.ngp with bare equal
2014-12-22 04:35:48 +00:00
Kp
628156dbf7
Use array<ntstring> for CMMiscMusic
2014-12-22 04:35:48 +00:00
Kp
c7ae54c62a
Use ntstring for CMLevelMusicPath
2014-12-22 04:35:47 +00:00
Kp
1344fb2779
Fix crash choosing jukebox directory
...
newmenu_listbox1 returns immediately
2014-12-22 04:35:47 +00:00
Kp
df46499f85
Fix buffer overrun reading UI pad
2014-12-22 04:35:47 +00:00
Kp
681a6b3a9d
Fix crash loading descent.cfg with bare equal
...
Remove obsolete check for trailing newlines in strings. Fix failure to
null terminate strings. Refuse overlong strings. Refuse integers with
trailing garbage. Refuse integers out of range.
2014-12-22 04:35:47 +00:00
Kp
45af2bb137
Move d_fname helper methods to base class ntstring
2014-12-22 04:35:47 +00:00
Kp
ba88926780
Fix potential null dereference parsing UI pad
2014-12-22 04:35:47 +00:00
Kp
0af323c24d
Fix various buffer overruns parsing pad UI
2014-12-22 04:35:47 +00:00
Kp
0e45146202
Return unique_ptr from ui_gadget_add
2014-12-20 04:36:12 +00:00
Kp
b68a403e41
Use partial_range to load textures
2014-12-20 04:36:11 +00:00
Kp
2b2da39d84
Fix unique invocation in string_array_t tidy
2014-12-20 04:36:11 +00:00
Kp
3f84b8e165
Move valptridx checks inline
2014-12-20 04:36:10 +00:00
Kp
2766114959
Make PHYSFSX_gets_line_t::line_t be array<>
2014-12-20 04:36:10 +00:00
Kp
c53a8cc30f
Initialize buttontext in UI_KEYPAD constructor
2014-12-20 04:36:10 +00:00
Kp
0bf2a6eb80
Return unique_ptr from ui_add_gadget_button
2014-12-20 04:36:10 +00:00
Kp
c43feee61d
Return unique_ptr from ui_add_gadget_listbox
2014-12-20 04:36:10 +00:00
Kp
1d363bbd5d
Return unique_ptr from ui_add_gadget_scrollbar
2014-12-20 04:36:10 +00:00
Kp
3b4fbd0bd5
Return unique_ptr from ui_add_gadget_radio
2014-12-20 04:36:10 +00:00
Kp
b16e8ecbec
Return unique_ptr from ui_add_gadget_checkbox
2014-12-20 04:36:09 +00:00
Kp
413a316154
Return unique_ptr from ui_add_gadget_inputbox
2014-12-20 04:36:09 +00:00
Kp
89b1ff8795
Return unique_ptr from ui_add_gadget_userbox
2014-12-20 04:36:09 +00:00
Kp
e1bb249176
Remove unused UI_GADGET_KEYTRAP
2014-12-20 04:36:09 +00:00
Kp
8d487b4883
Return unique_ptr from ui_add_gadget_icon
2014-12-20 04:36:09 +00:00
Kp
f1885ee4d4
Pass creation context to new windows
2014-12-20 04:36:09 +00:00
Kp
cf5e5620aa
Deduce input box text length
2014-12-20 04:36:09 +00:00
Kp
80a21ab7d6
Remove obsolete hostage message support
...
This was never included in the game. Editor support for it is
incomplete and does not allow text entry. Remove it.
2014-12-20 04:36:09 +00:00
Kp
f0c8482b8b
Use unique_ptr for trigger_dialog
2014-12-20 04:36:08 +00:00
Kp
cf1d08c1b6
Use unique_ptr for hostage_dialog
2014-12-20 04:36:08 +00:00
Kp
dbe882ea42
Fix memory leak in ui_messagebox
2014-12-20 04:36:08 +00:00
Kp
7cbf3c1e0e
Use unique_ptr for browser
2014-12-20 04:36:08 +00:00
Kp
6a62d3b49d
Cache KeyPad[n] address
2014-12-20 04:36:08 +00:00
Kp
b9ceceda3a
Use array<char,100> for UI_KEYPAD::buttontext
2014-12-20 04:36:08 +00:00
Kp
5600cea3ac
Use array<unique_ptr<UI_KEYPAD>> for KeyPad
2014-12-20 04:36:08 +00:00
Kp
0f30d4eb72
Use PHYSFSX_gets_line_t for Current_level_palette
2014-12-20 04:36:08 +00:00
Kp
90666ba19b
Use PHYSFSX_gets_line_t for Current_level_name
2014-12-20 04:36:07 +00:00
Kp
9f44ccbbf3
Fix WORDS_NEED_ALIGNMENT build of interp.cpp
2014-12-19 02:19:29 +00:00
Kp
c1dc352a16
Pack Mission
2014-12-18 04:12:39 +00:00
Kp
137746e442
List initialize credits to zero
2014-12-18 04:12:38 +00:00
Kp
da6632a917
Use array<> for Robot_joints
2014-12-18 04:12:38 +00:00
Kp
9ffd958d3d
Create window_rendered_data locally
2014-12-18 04:12:38 +00:00
Kp
9916406d8f
Fix debug-build abort on matcen triggers
2014-12-14 21:02:40 +00:00
Kp
3423d94729
Disallow converting valptridx to void*
2014-12-14 05:23:00 +00:00
Kp
c75ccc5791
Reduce includes in clipper.h
2014-12-14 05:23:00 +00:00
Kp
e42b1f5b71
Return vertex_array_list_t from create_all_vertnum_lists
2014-12-14 05:23:00 +00:00
Kp
1960a2ebad
Return vertex_array_list_t from create_abs_vertex_lists
2014-12-14 05:23:00 +00:00
Kp
601290e674
Return vertex_array_list_t from create_all_vertex_lists
2014-12-14 05:23:00 +00:00
Kp
51b6fb1c95
Return get_side_verts by value
2014-12-14 05:23:00 +00:00
Kp
e54c2c79df
Use array<> for Sounds
2014-12-14 05:22:59 +00:00
Kp
80aa48efb4
Pass digi_*_start_sound soundobj as sound_object*
2014-12-14 05:22:59 +00:00
Kp
9ea8c8d7f1
Mark digi variables static
2014-12-13 17:47:10 +00:00
Kp
a622aecd58
Pass vcobjptridx_t to digi_ functions
2014-12-13 17:47:06 +00:00
Kp
adbff232c5
Split seg/obj vars of find_seg_side_face
2014-12-13 17:47:01 +00:00
Kp
2c2b6c67d2
Use array<> for g3ds_tmap::verts
2014-12-13 17:46:55 +00:00
Kp
0b086b1b0d
Optimize rendering
...
- Make Max_linear_depth_objects const
- Skip setup of object rendering if no objects to render
- Defer setting globals until after conditional confirms a segment will
render
2014-12-13 17:18:07 +00:00
Kp
84e3721ef0
Use partial_range for render list
2014-12-13 16:57:09 +00:00
Kp
69bc81681a
Move render_windows to per_segment_state_t::render_window
2014-12-13 16:54:16 +00:00
Kp
7c98dea8be
Pass render_frame arg by &
2014-12-13 04:11:21 +00:00
Kp
b79e432a3e
Pass render_mine arg by &
2014-12-13 04:11:16 +00:00
Kp
4bcf451745
Pass wake_up_rendered_objects arg by &
2014-12-13 04:11:07 +00:00
Kp
e027c821c9
Pass update_rendered_data arg by &
2014-12-13 04:11:04 +00:00
Kp
6e24954a97
Mark warn_printf static
2014-12-13 04:10:58 +00:00
Kp
c6043419e9
Use std::abort in Error
...
Error is called for fatal errors. Use std::abort to get a core dump.
2014-12-11 02:38:19 +00:00
Kp
7b234da185
Make digi_max_channels const
2014-12-11 02:35:55 +00:00
Kp
307ad30433
Remove unused digi_*_is_sound_playing
2014-12-11 02:34:54 +00:00
Kp
53366488ac
Remove unused digi_set_volume
2014-12-11 02:34:38 +00:00
Kp
6d2b707c3e
Move debug-only digi functions into !RELEASE
2014-12-11 02:34:32 +00:00
Kp
4d17f4e208
Remove unused r/g/b members of g3ds_vertex
2014-12-11 02:34:20 +00:00
Kp
f91a378f6e
Remove write-only per2_flag
2014-12-11 02:34:13 +00:00
Kp
a2703177b9
Move Error Int3 to after printing the message
2014-12-09 01:10:24 +00:00
Kp
84011e55d2
Use partial_range when searching HighestLevels
2014-12-08 04:49:20 +00:00
Bradley Bell
73690ed525
always_inline d_debugbreak() so that debugger stops in the source instead of dxxerror.h
2014-12-07 19:03:41 -08:00
Kp
bd6b9489c1
Fix off-by-one end causing memory corruption
2014-12-08 00:41:03 +00:00
Kp
33c118f999
Enable Int3 as d_debugbreak
...
Change Int3 from a no-op to a platform-specific trap to debugger.
Requested by btb: https://github.com/dxx-rebirth/dxx-rebirth/pull/18
2014-12-07 23:43:51 +00:00
Kp
6798c8410b
Refactor callsign_t constants
2014-12-07 00:53:15 +00:00
Kp
a0727f4f84
Throw on net_udp_read_sync_packet failure
...
Callers expect sane Player_num, but on failure, it is invalid.
Returning a failure status causes net_udp_level_sync to fault using
Players[Player_num].connected, so throw an exception instead.
2014-12-07 00:00:22 +00:00
Kp
9d700aab08
Make kill_matrix uint16_t, not short
2014-12-06 23:30:55 +00:00
Kp
cfe0f89dae
Use array<> for team_kills
2014-12-06 04:52:53 +00:00
Kp
bb8445f70c
Fix some -Wsign-compare warnings
2014-12-05 04:11:37 +00:00
Kp
0dfbe46318
Rewrite scale_line to use std::fill
...
Eliminate inline byte-by-byte store.
2014-12-05 04:11:37 +00:00
Kp
97718e9b9c
Refactor gr_ubitmap012
2014-12-05 04:11:37 +00:00
Kp
58c9c98124
Rewrite gr_linear_rep_movsdm with std::transform
...
Eliminate deprecated register.
2014-12-05 04:11:37 +00:00
Bradley Bell
fdf70b017e
<string> required for std::string
2014-12-04 18:11:57 -08:00
Bradley Bell
0cc88280ba
Simplify by using generic Info.plist, builtin substitions
2014-12-04 18:11:57 -08:00
Bradley Bell
3daa0f63b1
Add search SDL_mixer framework paths for headers instead of using <Framework/Header.h> notation
2014-12-03 15:14:18 -08:00
Kp
8b3d9b9d31
Bypass NULL check copying valptr_t
2014-12-02 04:36:19 +00:00
Kp
3097a5b247
Pass gr_bitblt_find_transparent_area arg by &
2014-12-02 03:35:01 +00:00
Kp
c990701d87
Pass show_fullscr arg by &
2014-12-02 03:35:01 +00:00
Kp
c89e3b7452
Pass gr_bitmapm arg as &
2014-12-02 03:35:01 +00:00
Kp
355df375a0
Pass gr_bitmap arg as &
2014-12-02 03:35:01 +00:00
Kp
5955bac683
Pass gr_bitmap_scale_to arg by &
2014-12-02 03:35:01 +00:00
Kp
6334327ccc
Remove unused gr_bm_bitblt
2014-12-02 03:35:01 +00:00
Kp
0375876a08
Pass gr_bm_ubitbltm arg by &
2014-12-02 03:35:01 +00:00
Kp
25948a4b96
Pass gr_bm_ubitblt00m arg by &
2014-12-02 03:35:01 +00:00
Kp
95539512d5
Pass pcx_read_bitmap arg by &
2014-12-02 03:35:01 +00:00
Kp
31d6b151da
Pass gr_bm_ubitblt arg by &
2014-12-02 03:35:01 +00:00
Kp
50e24ee0ef
Pass gr_bm_ubitblt00 arg by &
2014-12-02 03:35:01 +00:00
Kp
15f9d5d3f5
Pass ogl_ubitblt arg by &
2014-12-02 03:35:01 +00:00
Kp
e7aae37c8d
Pass ogl_ubitblt_i arg by &
2014-12-02 03:35:01 +00:00
Kp
7031c809fc
Pass gr_ubitmapm arg by &
2014-12-02 03:35:01 +00:00
Kp
5eddc2c197
Make bitmap bm_data const where easy
2014-12-02 03:24:38 +00:00
Kp
e90549d9a8
Use range_for on Orb_icons
2014-12-02 03:23:21 +00:00
Kp
ec8738ca62
Merge branch 'btb/osx-fixes' into unification/master
...
Merge Mac OS X specific fixes from btb. The Windows and Linux builds
are unaffected. The OS X changes look sane, but cannot be tested here.
Changes not specific to OS X were previously committed separately.
Requested by btb: https://github.com/dxx-rebirth/dxx-rebirth/pull/12
2014-12-01 23:47:10 +00:00
Kp
690dec3342
Workaround compilers mishandling template-template arguments
...
Visual Studio 2013 Update 4 and Clang 3.4 fail to parse
valptridx_template_t related argument lists because they misinterpret
the unspecialized inner template name as a reference to the current
specialization. This seems to be nonconforming in C++11.
All gcc versions supported by Rebirth parse this sample program
correctly, but neither Visual Studio nor clang accept it.
template <template <typename> class>
struct A
{
};
template <typename>
struct B
{
B(A<B>);
};
In <https://stackoverflow.com/questions/17687459/clang-not-accepting-use-of-template-template-parameter-when-using-crtp >, a user saw a similar failure and received the answer:
Your code is legal.
From the C++11 Standard, section 14.6.1:
Like normal (non-template) classes, class templates have an injected-class-name (Clause 9). The injected-class-name can be used as a template-name or a type-name. When it is used with a template-argument-list, as a template-argument for a template template-parameter, or as the final identifier in the elaborated-type- specifier of a friend class template declaration, it refers to the class template itself.
Looks like your version of clang is still implementing the old rule.
This failure was first seen with Visual Studio 2013, but ignored because
Visual Studio has so many other problems parsing Rebirth. Now that it
has been reported to affect clang as well, a workaround is clearly
needed. A fix was suggested by btb
<2f9543f981
>,
but that fix breaks gcc.
Rewrite the valptridx_template_t parameter passing to avoid mentioning
unspecialized template names as template parameters while defining the
class used as the parameter.
Reported by btb (clang): https://github.com/dxx-rebirth/dxx-rebirth/pull/12
2014-11-30 23:44:52 +00:00
Kp
cf31cc4a5d
Switch Laser_render to vobjptr_t
2014-11-30 22:09:23 +00:00
Kp
ea535b0e38
Pass gr_rle_expand_scanline arg as const
2014-11-30 22:09:22 +00:00
Kp
706782b275
Pass gr_rle_getsize arg as const
2014-11-30 22:09:22 +00:00
Kp
87b8721f0a
Replace gr_linear_stosd with macro
2014-11-30 22:09:22 +00:00
Kp
fd0b7acf53
Pass gr_bm_ubitblt0x_rle arg by &
2014-11-30 22:09:22 +00:00
Kp
9b2ef9cfa4
Pass gr_rle_expand_scanline_generic arg by &
2014-11-30 22:09:22 +00:00
Kp
63cbff3b82
Pass gr_bm_ubitblt00m_rle arg by &
2014-11-30 22:09:22 +00:00
Kp
96acf9edec
Pass gr_ubitmap00 arg by &
2014-11-30 22:09:22 +00:00
Kp
2697918223
Pass gr_bm_pixel arg by &
2014-11-30 22:09:22 +00:00
Kp
0b1aa34c43
Pass gr_set_super_transparent arg by &
...
Flip name of the boolean to match its function.
2014-11-30 22:09:21 +00:00
Kp
26f4aaa51b
Pass gr_set_transparent arg by &
2014-11-30 22:09:21 +00:00
Kp
e5acd8056d
Pass gr_set_bitmap_flags arg by &
2014-11-30 22:09:21 +00:00
Kp
cb939f32e0
Simplify decode_data
2014-11-30 22:09:21 +00:00
Kp
efa7566821
Pass colormap as array<>
2014-11-30 22:09:21 +00:00
Kp
d0abc13c94
Pass gr_create_sub_bitmap arg by &
2014-11-30 22:09:21 +00:00
Kp
ef539be1ab
Pass gr_init_bitmap_data arg by &
2014-11-30 22:09:21 +00:00
Kp
f6dde1c593
Pass gr_init_bitmap_alloc arg by &
2014-11-30 22:09:21 +00:00
Kp
53ce29e789
Pass gr_init_bitmap arg by &
2014-11-30 22:09:20 +00:00
Kp
594c597621
Pass gr_init_bitmap_data arg by &
2014-11-30 22:09:20 +00:00
Kp
0672cdff1b
Pass gr_set_bitmap_data grs_bitmap by &
2014-11-30 22:09:20 +00:00
Kp
97332b848c
Pass gr_free_bitmap_data arg by &
2014-11-30 22:09:20 +00:00
Kp
0236c237ed
Pass ogl_freebmtexture arg by &
2014-11-30 22:09:20 +00:00
Kp
a86313e746
Pass ogl_init_texture arg by &
2014-11-30 22:09:19 +00:00
Kp
bba9d90347
Use subscript notation in grs_bitmap bm_data
2014-11-30 22:09:19 +00:00
Kp
0790eda153
Use new/delete for grs_screen
2014-11-30 22:09:19 +00:00
Kp
9aa539c062
Return texmerge_get_cached_bitmap result by &
2014-11-30 22:09:19 +00:00
Kp
b4acc5b858
Pass gr_ubitmap arg by &
2014-11-30 22:09:19 +00:00
Kp
a035d813ea
Pass gr_ubitmapGENERIC arg by &
2014-11-30 22:09:19 +00:00
Kp
d2ce12c616
Pass gr_ubitmap012 arg by &
2014-11-30 22:09:18 +00:00
Kp
166f15617d
Pass ogl_ubitmapm_cs arg by &
2014-11-30 22:09:18 +00:00
Kp
4cadc18e52
Pass merge_textures_new arg by &
2014-11-30 22:09:18 +00:00
Kp
968f7ddc97
Pass gr_gpixel arg by &
2014-11-30 22:09:18 +00:00
Kp
ad3a240958
Pass ogl_ugpixel arg by &
2014-11-30 22:09:18 +00:00
Kp
634f97e8d2
Pass tmap drawer grs_bitmap by &
2014-11-30 22:09:18 +00:00
Kp
dd4a0db47f
Pass rle_expand_texture arg as const &
2014-11-30 22:09:17 +00:00
Kp
6ac655ec53
Pass various texture mapping args by &
2014-11-30 22:09:17 +00:00
Kp
2c07191681
Pass ntexture_map_lighted_linear arg by const &
2014-11-30 22:09:17 +00:00
Kp
62ebfe9626
Pass rle_expand_texture_sub arg by &
2014-11-30 22:09:17 +00:00
Kp
f89b57047a
Pass g3_draw_bitmap grs_bitmap by &
2014-11-30 22:09:17 +00:00
Kp
06b384e349
Pass scale_bitmap arg by &
2014-11-30 22:09:17 +00:00
Kp
e7c0c639aa
Include <memory>, not <utility> for std::addressof
...
Including utility works on Linux, but apparently fails on OS X 10.10.
Switch to <memory>, which also works on Linux, and which btb reports
works on OS X.
Reported by btb: https://github.com/dxx-rebirth/dxx-rebirth/pull/12
Fixed by btb: 2f4b2f031c
2014-11-30 17:04:49 +00:00
Kp
3cbb73c1f2
Fix prototype of Mac msgbox_warning
...
Reported by btb: https://github.com/dxx-rebirth/dxx-rebirth/pull/12
Fixed by btb: 2f4b2f031c
2014-11-30 17:03:54 +00:00
Kp
d149b9b9e8
Include <string> in partial_range.h for std::string
...
Reported by btb: https://github.com/dxx-rebirth/dxx-rebirth/pull/12
Fixed by btb: 93a80e56cd
2014-11-30 17:00:03 +00:00
Kp
5f38c85e02
Improve compiler error messages on failed const T* -> T* conversions
2014-11-27 03:25:21 +00:00
Kp
f9a339dfc8
Pass bash_to_shield arg as vobjptr_t
2014-11-26 04:02:08 +00:00
Kp
327fe23586
Fix -Wnarrowing in valptridx operator-
2014-11-26 03:00:58 +00:00
Kp
388dfb98a0
Move valptridx helpers out of macro
2014-11-25 04:02:01 +00:00
Bradley Bell
7f10bb28bf
use NSAlert for cocoa. Carbon support totally deprecated
2014-11-23 19:53:02 -08:00
Bradley Bell
1adb29da37
Revert "stub. CreateStandardAlert is dead"
...
This reverts commit f8761b0d11
.
2014-11-23 19:40:11 -08:00
Kp
2ddbdd6f11
Move processed into render_seg_map
2014-11-23 21:53:45 +00:00
Kp
c495f48ccd
Move Seg_depth into render_seg_map
2014-11-23 21:53:45 +00:00
Kp
d0090225b3
Fix segment_first/object_first mismatch
2014-11-23 21:41:30 +00:00
Bradley Bell
2f4b2f031c
message is constant
2014-11-23 04:26:58 -08:00
Bradley Bell
f8761b0d11
stub. CreateStandardAlert is dead
2014-11-23 04:12:29 -08:00
Bradley Bell
2f9543f981
fix for: template argument for template template parameter must be a class template or type alias template
2014-11-23 04:10:54 -08:00
Bradley Bell
93a80e56cd
basic_string is in <string>
2014-11-23 04:10:36 -08:00
Bradley Bell
47bc015972
addressof is part of <memory>
2014-11-23 04:09:26 -08:00
Kp
d63be88eb0
Propagate use of vsegptridx_t
2014-11-23 04:58:45 +00:00
Kp
80f3f83577
Use range_for for Delta_lights
2014-11-23 04:36:59 +00:00
Kp
80bbc9c69c
Use range_for on Dl_indices
2014-11-23 04:36:58 +00:00
Kp
1649fc791c
Use partial_range on Flickering_lights
2014-11-23 04:36:58 +00:00
Kp
f206b3b127
Reduce inclusion of object.h
2014-11-23 04:36:58 +00:00
Kp
88101f8f57
Move object declarations to fwdobject.h
2014-11-23 04:36:58 +00:00
Kp
4ad784028b
Pass scale_bitmap points in array<grs_point, 3>
2014-11-21 03:34:50 +00:00
Kp
c2544fe0d9
Move scale decoding array to local scope
2014-11-21 03:33:10 +00:00
Kp
0c76e47f59
Move rle decoding pointers to local scope
2014-11-21 03:32:25 +00:00
Kp
1d0ba034a5
Store rendered objects in vector
2014-11-21 03:16:00 +00:00
Kp
e56fe128e0
Remove DosShell
2014-11-19 04:19:43 +00:00
Kp
4eaf0ac4c3
Pass scale_up* bitmap arg by &
2014-11-19 04:18:12 +00:00
Kp
8c4fd12a82
Pass decode_row arg by &
2014-11-19 04:16:02 +00:00
Kp
ee8da79953
Simplify rle_remap offset setup
2014-11-19 04:14:33 +00:00
Kp
60d4b91782
Simplify rle_swap_0_255 offset setup
2014-11-19 04:14:10 +00:00
Kp
317fffe5da
Move #endif to cover functions that need trigger
2014-11-17 04:02:26 +00:00
Kp
57ed5c24fd
Add developer option to test header completeness
2014-11-17 04:02:25 +00:00
Kp
c72ec87296
Redirect g3_end_frame->ogl_end_frame
2014-11-16 19:14:51 +00:00
Kp
cdf0d887f6
Move temporary points onto stack
2014-11-16 19:14:51 +00:00
Kp
855b249555
Make g3s_point const only in OGL
2014-11-16 19:14:51 +00:00
Kp
177c935b9d
Move 3d/clipper.cpp to SDL-only build
2014-11-16 19:14:51 +00:00
Kp
cec58664ed
Return get_temp_point by &
2014-11-16 19:14:51 +00:00
Kp
c3ce8fe9e6
Move Mike's temporary texture onto stack
2014-11-16 19:14:50 +00:00
Kp
82467a49c9
Use array<> for polygon clipping points
2014-11-16 19:14:50 +00:00
Kp
11769c5fc0
Pass draw_tmap* arg as const
2014-11-16 19:14:50 +00:00
Kp
456158fe52
Fix SDL-only crash due to double Vbuf0
2014-11-16 19:14:50 +00:00
Kp
84fd2b027a
Clip tmap p3_z locally
2014-11-16 19:14:50 +00:00
Kp
b11069bc45
Use indexing in clip_plane
2014-11-16 19:14:50 +00:00
Kp
501f5e8557
Narrow some graphics parameters
2014-11-15 03:31:41 +00:00
Kp
2df4bea9b5
Use range_for in rle
2014-11-15 03:10:09 +00:00
Kp
c2d308807c
Make various g3s_point * const
2014-11-15 03:10:06 +00:00
Kp
3a73f2c9d0
Pass g3_draw_line as const
2014-11-15 03:10:04 +00:00
Kp
b456370291
Move Vbuf0/Vbuf1 into local scope
2014-11-13 04:07:06 +00:00
Kp
8e0d85b666
Pass g3_draw_tmap arg by &
2014-11-13 03:44:04 +00:00
Kp
841e037e15
Pass ogl_loadbmtexture_f arg by &
2014-11-13 03:42:41 +00:00
Kp
9baeb31162
Pass rle_end arg by &
2014-11-13 03:41:38 +00:00
Kp
baa39fe8f7
Add g3_rotate_point that returns result
2014-11-13 03:41:29 +00:00
Kp
d9e42e6bf3
Pass g3_draw_rod_tmap arg by &
2014-11-13 03:34:42 +00:00
Kp
e305bf8ebd
Pass calc_rod_corners arg by &
2014-11-13 03:34:35 +00:00
Kp
207dceba33
Pass g3_draw_sphere arg by &
2014-11-13 03:22:49 +00:00
Kp
ff13155fc2
Pass g3_project_point arg by &
2014-11-13 03:21:33 +00:00
Kp
aba13a0bd0
Pass g3_draw_line arg by &
2014-11-13 03:19:52 +00:00
Kp
c49880c8c6
Pass clip_line arg by *&, not **
2014-11-13 03:19:45 +00:00
Kp
c5fd8cb859
Pass g3_code_point arg by &
2014-11-13 03:16:17 +00:00
Kp
dc772c693d
Remove unused gr_bitblt_double mode
2014-11-12 03:48:22 +00:00
Kp
e756f37b0f
Trap bitmap coordinate overflow
2014-11-12 03:43:44 +00:00
Kp
fa136e7812
Drop redundant gr_set_bitmap_data in gr_init_bitmap_alloc
2014-11-12 03:22:20 +00:00
Kp
fda3fc33f3
Skip unnecessary sqrt for omega cannon
2014-11-11 04:25:47 +00:00
Kp
18e4ca1b2c
Fix SDL build after for propagation
2014-11-11 04:21:57 +00:00
Kp
d5d958af96
Add make_random_vector that returns result
2014-11-04 01:33:45 +00:00
Kp
e2741ce899
Add vm_extract_angles_matrix that returns result
2014-11-04 01:32:43 +00:00
Kp
df6b4bd783
Add vm_vec_rotate that returns result
2014-11-04 01:31:22 +00:00
Kp
cf4d216c41
Pass check_and_fix_matrix vms_matrix by &
2014-11-04 01:30:49 +00:00
Kp
3a24b20e15
Add vm_vector_2_matrix that returns result
2014-11-04 01:27:55 +00:00
Kp
141a7602d0
Add vm_angles_2_matrix that returns result
2014-11-04 01:24:08 +00:00
Kp
fd9a9a5166
Pass rotate_segment_new arg by &
2014-11-04 01:23:01 +00:00
Kp
c97f1136fa
Pass AttachSegmentNewAng arg by &
2014-11-04 01:20:07 +00:00
Kp
f5717c7db7
Pass med_rotate_segment vms_matrix by &
2014-11-02 03:44:31 +00:00
Kp
fed5d0e90f
Add vm_vec_perp that returns result
2014-11-02 03:44:27 +00:00
Kp
d76e259db5
Add vm_vec_cross that returns result
2014-11-02 03:44:12 +00:00
Kp
40eb2e6b01
Add vm_vec_scale_add that returns result
2014-11-02 03:43:57 +00:00
Kp
b32f5e5df3
Add vm_vec_copy_scale that returns result
2014-11-02 03:43:47 +00:00
Kp
dac7f5e13b
Pass get_angs_to_object arg by &
2014-11-02 03:42:02 +00:00
Kp
164ea2dc10
Pass calc_gun_point vector by &
2014-11-02 03:41:01 +00:00
Kp
bc3a76c673
Hoist gauge loop iterations
2014-11-01 15:28:07 +00:00
Kp
5952288b5d
Pass vm_extract_angles_vector_normalized vector by &
2014-11-01 14:55:54 +00:00
Kp
697bdcf078
Add vm_vec_normal that returns result
2014-11-01 03:17:48 +00:00
Kp
ff877834cb
Pass render_terrain vector by &
2014-11-01 03:12:57 +00:00
Kp
9aa0cf0b89
Pass read_model_guns vector as array &
2014-11-01 03:08:27 +00:00
Kp
7e3c7a413a
Pass obj_create_copy vector by const &
2014-11-01 03:06:04 +00:00
Kp
5f9b06cce9
Pass multi_send_robot_fire vector by const &
2014-10-30 03:37:22 +00:00
Kp
6024bf0369
Pass multi_send_controlcen_fire vector by &
2014-10-30 03:37:13 +00:00
Kp
8276bbc36a
Pass compute_object_light vector as const *
2014-10-30 03:36:22 +00:00
Kp
6d61198130
Pass compute_segment_center vector by &
2014-10-30 03:32:51 +00:00
Kp
c0004cf4bd
Pass pick_random_point_in_seg vector by &
2014-10-30 03:32:38 +00:00
Kp
8a89eff0bb
Pass compute_center_point_on_side vector by &
2014-10-30 03:32:27 +00:00
Kp
95c3dc81e6
Pass drop_marker_object arg by &
2014-10-30 03:19:32 +00:00
Kp
66a4b8b061
Add vm_vec_avg that returns result
2014-10-30 03:18:38 +00:00
Kp
a09fcd7753
Add vm_vec_add that returns result
2014-10-30 03:11:06 +00:00
Kp
5bb9c88979
Add vm_vec_sub that returns result
2014-10-29 03:24:31 +00:00
Kp
22ff219877
Factor out dividing vms_vector elements by a fix
2014-10-29 03:10:30 +00:00
Kp
53aa70cecb
Use vsegptridx_t
2014-10-28 03:08:51 +00:00
Kp
b871228f92
Pass create_morph_robot vector by const &
2014-10-28 01:47:18 +00:00
Kp
8a0582766a
Pass drop_powerup vector by const &
2014-10-28 01:46:07 +00:00
Kp
d14c0ba71c
Pass do_snipe_frame vector by &
2014-10-28 01:45:53 +00:00
Kp
b8b81ba5fc
Move PHYSFSX_writeAngleVec to gamesave.cpp
2014-10-26 22:56:50 +00:00
Kp
bf57d03930
Move PHYSFSX_writeMatrix to gamesave.cpp
2014-10-26 22:56:50 +00:00
Kp
44bd07d031
Make polymodel->n_models unsigned
2014-10-26 22:51:27 +00:00
Kp
44084ff261
Pass PHYSFSX_readVector vector by &
2014-10-26 22:08:58 +00:00
Kp
af318b9eb2
Pass PHYSFSX_writeVector vector by const &
2014-10-26 22:08:58 +00:00
Kp
f465c7972f
Move PHYSFSX_readVectorX to ai.cpp
2014-10-26 22:08:58 +00:00
Kp
69c052ccf6
Pass vms_vector_swap arg by &
2014-10-26 22:08:58 +00:00
Kp
f0d4c50fcc
Pass create_curve arg by &
2014-10-26 22:08:58 +00:00
Kp
ae6502f86b
Pass set_matrix_based_on_side arg by &
2014-10-26 22:01:18 +00:00
Kp
fc5b50c433
Pass med_create_new_segment arg by &
2014-10-26 22:01:13 +00:00
Kp
0e0eaff221
Pass g3_calc_point_depth arg by &
2014-10-26 22:01:04 +00:00
Kp
09835590f3
Pass g3_set_view_matrix arg by &
2014-10-26 22:01:00 +00:00
Kp
8aeeb3da0e
Pass bump_one_object vms_vector by const &
2014-10-26 21:44:38 +00:00
Kp
c87e84217b
Pass phys_apply_* vms_vector by const &
2014-10-26 21:37:34 +00:00
Kp
ad717e59e8
Pass laser vectors as const &
2014-10-26 21:37:27 +00:00
Kp
c7b2735e74
Mark vm_vector_2_matrix vectors const
2014-10-26 21:37:13 +00:00
Kp
68309dfef0
Pass extract_*_vector_from_segment arg by &
2014-10-26 21:37:06 +00:00
Kp
153ec60924
Remove unused vm_vec_to_angles
2014-10-26 21:36:57 +00:00
Kp
012435f5c4
Pass collide_*_and_* arg by &
...
Use const& where possible. Some are non-const due to the recent FVI
hack that resets the collision point late.
2014-10-26 21:36:40 +00:00
Kp
9a32e151ff
Pass check_effect_blowup vms_vector arg by &
2014-10-26 21:36:35 +00:00
Kp
fdfd849bd2
Pass explode_badass_weapon position by const &
2014-10-26 21:36:31 +00:00
Kp
7e955c2c7b
Pass object_create_explosion_sub position by &
2014-10-26 21:36:25 +00:00
Kp
258d6b4a04
Pass place_object vms_vector arg by &
2014-10-26 21:36:10 +00:00
Kp
2a5265493e
Pass obj_create position vms_vector by &
2014-10-26 21:35:16 +00:00
Kp
9dea4b4d88
Pass sound vms_vector arg by &
2014-10-26 21:33:50 +00:00
Kp
a79bb365f9
Pass get_seg_masks arg by &
2014-10-26 21:28:38 +00:00
Kp
3412bf4b3a
Make rotate_list input const
2014-10-26 03:24:09 +00:00
Kp
666dd75629
Return objptridx_t from find_escort
2014-10-25 16:40:20 +00:00
Kp
b77eb5424b
Move external_explosion into Objects
2014-10-25 16:40:18 +00:00
Kp
359fcb3ce7
Remove unused set_chase_matrix
2014-10-25 16:40:00 +00:00
Kp
3f85861892
Move side::illegal_type down
2014-10-25 16:11:24 +00:00
Kp
f08224e4ee
Move [gs]_*_id object helpers down
2014-10-25 16:11:23 +00:00
Kp
a32547af16
Pass position-related vms_vector arg by &
2014-10-22 02:46:03 +00:00
Kp
019b572c0e
Remove #define Segment2s Segments
2014-10-21 03:15:12 +00:00
Kp
944baf824d
Remove #define segment2 segment
2014-10-21 03:14:36 +00:00
Kp
32cb662f66
Remove unused s2s2(S)
2014-10-21 03:14:21 +00:00
Kp
62dc7a874f
Pass sockaddr by const &, not value
2014-10-18 23:37:34 +00:00
Kp
486707a9ef
Fix argument to net_udp_send_mdata_direct
...
Use argument, not global
2014-10-17 02:23:40 +00:00
Kp
aff354926e
Remove unused bash_to_shield parameter s
2014-10-17 02:07:52 +00:00
Kp
ad452193ad
Remove unused hostage_rescue parameter hostage_number
2014-10-17 02:05:37 +00:00
Kp
6299bb099a
Remove unused file/line from create_abs_vertex_lists
...
Exception handling generates automatic line information.
2014-10-16 02:47:17 +00:00
Kp
69f5e93382
Centralize game_render_frame_mono call to gr_flip
2014-10-16 02:44:43 +00:00
Kp
e7e23eb92e
Make unused_window_userdata_t const
2014-10-16 02:30:29 +00:00
Kp
7c76c68255
Make unused_newmenu_userdata_t const
2014-10-16 02:13:09 +00:00
Kp
d462cd11df
Fix gcc 4.6 build of vms_vector with explicit temporary
...
gcc 4.7 and later support brace initializing the base class
gcc 4.6 requires an explicit temporary to achieve the same result
2014-10-16 01:46:21 +00:00
Kp
fb641b3250
Wrap object iteration idiom
2014-10-12 23:05:46 +00:00
Kp
c704cc9fc9
Add const void* conversion to various types
...
Add operator const void*() to prevent accidental use of pointer
comparison. With the overload present, comparing two objects triggers
an ambiguous conversion to pointer, instead of comparing the pointer
values.
2014-10-12 22:11:28 +00:00
Kp
6977a0eb74
Add operator!= to callsign_t
2014-10-11 04:33:22 +00:00
Kp
c928c09884
Skip sqrt for homing check
2014-10-10 02:41:51 +00:00
Kp
eef8bb3365
Pass collide_two_objects vms_vector arg by &
2014-10-10 02:30:13 +00:00
Kp
bcb26678e2
Remove unused hitpt on check_volatile_wall
2014-10-10 02:29:47 +00:00
Kp
d72fcfeef1
Remove unnecessary UI_GADGET* casts
2014-10-04 22:36:13 +00:00
Kp
a8f853aa7a
Pass d_event arg by const&
2014-10-04 22:36:13 +00:00
Kp
8750b6a4ad
Switch d_event subclasses to C++ inheritance
2014-10-04 18:05:26 +00:00
Kp
3714c0c645
Use new serializer for writing segment side wall/tmap
2014-10-04 17:53:14 +00:00
Kp
af26259158
Remove unnecessary padding in segment sides
2014-10-04 17:53:03 +00:00
Kp
2a63700d95
Use magic type for wall magic constants
2014-10-04 17:31:13 +00:00
Kp
6971dfbf4a
Use symbolic *_none constants for -1
2014-10-04 17:31:13 +00:00
Kp
93113bc400
Pass player_is_visible_from_object arg by &
2014-10-02 03:02:38 +00:00