Kp
03fe3a6696
Move Polygon_models into LevelSharedPolygonModelState
2018-12-30 00:43:59 +00:00
Kp
4c7555216a
Move Dynamic_light into LevelUniqueLightState
2018-12-30 00:43:58 +00:00
Kp
6ee28c3fe0
Move Triggers to d_level_unique_trigger_state
2018-12-30 00:43:58 +00:00
Kp
4b125af449
Move ActiveDoors to d_level_unique_active_door_state
2018-12-30 00:43:58 +00:00
Kp
865bad8607
Move CloakingWalls to d_level_unique_cloaking_wall_state
2018-12-30 00:43:58 +00:00
Kp
9be3c8e2e8
Move Walls into d_level_unique_wall_state
2018-12-30 00:43:58 +00:00
Kp
b3cd7588ef
Move Delta_lights into d_level_shared_destructible_light_state
2018-12-30 00:43:58 +00:00
Kp
46644b4e91
Move Dl_indices into d_level_shared_destructible_light_state
2018-12-30 00:43:58 +00:00
Kp
040de5b10e
Rename ObjectState to LevelUniqueObjectState for consistency
2018-12-30 00:43:57 +00:00
Kp
1a5844e218
Move Vertices out of global scope
2018-12-30 00:43:57 +00:00
Kp
65225680c1
Move Num_vertices into d_level_shared_vertex_state
2018-12-30 00:43:57 +00:00
Kp
aa9e6da297
Pass Dl_indices as context
2018-12-30 00:43:57 +00:00
Kp
f7ad4d9b1a
Pass segments to find_point_seg
2018-09-19 02:13:30 +00:00
Kp
01512015a8
Move Num_segments to new d_level_shared_segment_state
2018-09-19 02:13:29 +00:00
Kp
93789f0666
Use valptridx for Dl_indices
2018-06-06 04:53:45 +00:00
Kp
6ab28cb8cb
Use enum for Difficulty_level
2018-05-12 18:24:19 +00:00
Kp
c9da856a90
Fix struct/class class-key mismatch in mglobal
...
clang warns when a type is declared with `struct`, then instantiated
with `class`. Change the declaration to `class` to match the
instantiation.
2018-04-03 03:20:08 +00:00
Kp
1c92b448c8
Add d_level_object_state to wrap Objects and related data
2018-03-12 03:43:46 +00:00
Kp
3f9b670fa3
Default to full template instantiation for AddressSanitizer builds
...
AddressSanitizer in gcc-7 inhibits deletion of certain otherwise
unnecessary nullptr checks, causing otherwise absent references to
class null_pointer_exception. As a convenience to AddressSanitizer
users, instantiate all valptridx templates when AddressSanitizer is
enabled. This is slightly excessive, but users building for
sanitization are not aiming for a minimal size build anyway.
2017-12-31 21:11:25 +00:00
Kp
4cec183386
Fix pch=0 build of similar/main/mglobal.cpp
...
Fixes: e859833f62
("Use valptridx for Players")
2017-08-16 01:54:26 +00:00
Kp
e859833f62
Use valptridx for Players
...
Currently, N_players is still a free variable and Players.count is
unused. Future work will replace N_players with Players.count.
2017-08-13 20:38:32 +00:00
Kp
5eec2a5ce5
Use valptridx for Vertices
2017-08-11 23:43:54 +00:00
Kp
34ee376c84
Add alternate valptridx error reporting mechanisms
2017-08-11 23:43:52 +00:00
Kp
d1c6b89f17
Move dsx::segment -> dcx::segment
...
d2x::segment has all members of d1x::segment, as well as two new members
exclusive to d2x::segment. Structure layout is such that d1x::segment
requires the same size allocation, and places anonymous pad members in
the locations that become named members in d2x::segment. Thus, reusing
d2x::segment for d1x::segment does not change the size of the structure
nor the offsets of any members used. This reuse may enable some
functions to be better shared by the dsx project.
2017-07-26 03:15:58 +00:00
Kp
54c573fb22
Adjust valptridx auto-instantiate for -O2 -fno-inline
2017-06-30 04:09:26 +00:00
Kp
0e57e9bbf7
Expand macro to fix gcc-7 portability warning
...
gcc-7 warns:
similar/main/mglobal.cpp:119:5: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]
#if DXX_VALPTRIDX_ENABLE_FULL_TEMPLATE_INSTANTIATION
Fix this by using the long form of the definition.
2017-06-10 03:31:03 +00:00
Kp
e4ce907c1d
Reduce scope of explicit instantiations
2017-06-07 02:44:54 +00:00
Kp
a8c3a7f10b
Alias Side_to_verts to Side_to_verts_int
2017-03-04 22:25:54 +00:00
Kp
1f434f98ad
Use valptridx for ActiveDoors
2016-12-10 17:51:08 +00:00
Kp
cb1410dd95
Use valptridx for CloakingWalls
2016-11-19 17:24:54 +00:00
Kp
9128ff7c35
Move Next_laser_fire_time to player_info
2016-07-06 01:54:26 +00:00
Kp
bd3db75108
Move Next_missile_fire_time to player_info
2016-07-06 01:54:26 +00:00
Kp
bb5d1bb7e5
Use valptridx array type for Walls
2016-02-06 22:12:54 +00:00
Kp
4f0cbcffa9
Use valptridx array type for Triggers
2016-02-06 22:12:53 +00:00
Kp
db9fb0ed42
Move more symbols into namespace dcx/dsx
2015-12-22 04:18:50 +00:00
Kp
26e948d5f1
Uninline namespace dsx
2015-12-13 18:00:49 +00:00
Kp
dc8c0323d8
Uninline namespace dcx
2015-12-13 18:00:49 +00:00
Kp
34d89d5139
Use inline namespace dsx for segment.h
2015-12-05 22:57:25 +00:00
Kp
e549f3451e
Use inline namespace dsx for object.h
2015-12-05 22:57:25 +00:00
Kp
228dd75260
Switch Side_to_verts to unsigned
2015-10-18 21:01:20 +00:00
Kp
5f29170702
Move valptridx error reporting out of main header
2015-10-13 02:43:25 +00:00
Kp
9ed4754009
Remove typedef valptridx<T>::array_managed_type managed_type##_array_t
2015-08-22 20:43:04 +00:00
Kp
2155c417cb
Move array_managed_type into valptridx<T>
2015-08-22 20:43:04 +00:00
zico
b04282e791
Using one global yet independent timeer for homing missiles similar to d_tick instead of having one in each missile object. Also decreased HOMING_TURNING_TIME to 25 FPS base
2015-05-30 18:29:41 +02:00
Kp
7bf49fe551
Fix clang -Wmissing-braces warnings
2015-03-22 18:49:21 +00:00
Kp
8f5e6df9a5
Use array<> for Side_to_verts
2015-02-05 03:03:50 +00:00
Kp
f31e9f76e0
Remove textures.h #include "piggy.h"
2015-01-29 04:27:35 +00:00
Kp
ff37e54087
Change Vertices to array<vertex>
2014-10-02 03:02:34 +00:00
Kp
703f60ac3f
Fix -Wtype-limits warnings
2014-09-21 21:41:55 +00:00
Kp
597a55558f
Use array<> for Segment_points
2014-08-08 03:02:43 +00:00